--- Em sex, 23/3/12, Ken Moffat escreveu:
> De: Ken Moffat
> Assunto: Re: [blfs-support] PyGObject-3.0.4 and PYTHONPATH (was:
> MesaLib-8.0.1 Questions)
> Para: "BLFS Support List"
> Data: Sexta-feira, 23 de Março de 2012, 10:15
> On Thu, Mar 22, 2012 at 08:58:27PM
> -0700, Fernando de Oliveira wrote:
> > --- Em sex, 23/3/12, ... [Alex]
> escreveu:
> >
> > > De:... [Alex]
> > > Assunto: [blfs-support] MesaLib-8.0.1 Questions
> > > Para: blfs-support
> > > Data: Sexta-feira, 23 de Março de 2012, 0:38
> >
> >
> > Alex set:
> >
> > > PYTHONPATH=/usr/lib/python2.6/site-packages
> >
> > Then, I set:
> >
> > PYTHONPATH=/usr/lib/python2.7/site-packages
> >
> > Alex, thanks for this post. I was having a rough time
> trying to "make install" pygobject-3.0.3, then
> pygobject-3.0.4. After PYTHONPATH set, "make install"
> finally succeeded for pygobject-3.0.4 (did not try 3.0.3,
> any more).
> >
> > []s,
> > Fernando
>
> Is this a system where you have upgraded Python ?
No. It is my new LFS 7.1:
# cat /etc/lfs-release
SVN-20120311
> If not, are you
> doing something unusual (perhaps RPM-style installs) ?
I believe not. As I wrote in my post about the mountfs script issue to
lfs-support, yesterday, I am trying to be as close as possible to the book.
Some time ago, we used to need setting PYTHONPATH, which seems not to be the
case any more.
Tail of the log with the errors, before I succeeded to "make install":
"...
----------------------------------------------------------------------
Libraries have been installed in:
/usr/lib/python2.7/site-packages/gi
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,-rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/lib/python2.7/site-packages/gi" || /bin/mkdir -p "/usr/lib/python2
.7/site-packages/gi"
/usr/bin/install -c -m 644 __init__.py types.py module.py importer.py
'/usr/lib/python2.7/site-packages/gi'
Traceback (most recent call last):
File "/usr/lib/python2.7/site.py", line 62, in <module>
import os
File "/usr/lib/python2.7/os.py", line 49, in <module>
import posixpath as path
File "/usr/lib/python2.7/posixpath.py", line 17, in <module>
import warnings
File "/usr/lib/python2.7/warnings.py", line 8, in <module>
import types
File "types.py", line 26, in <module>
from . import _gobject
ValueError: Attempted relative import in non-package
make[3]: ** [install-pygiPYTHON] Erro 1
make[3]: Saindo do diretório
`/media/dados/home/fernando/tmp/paco-build-2012.03.22/pygobject-3.0.3/gi'
make[2]: ** [install-am] Erro 2
make[2]: Saindo do diretório
`/media/dados/home/fernando/tmp/paco-build-2012.03.22/pygobject-3.0.3/gi'
make[1]: ** [install-recursive] Erro 1
make[1]: Saindo do diretório
`/media/dados/home/fernando/tmp/paco-build-2012.03.22/pygobject-3.0.3/gi'
make: ** [install-recursive] Erro 1
real 0m18.728s
user 0m25.916s
sys 0m6.662s
END - Building pygobject-3.0.3 - Qui Mar 22 23:55:46 BRT 2012"
Tried with make -j1, make -j1 install, the same result.
And as i said, after PYTHONPATH was set, i.e. "corrected", no errors.
To be more precise: I had
PYTHONPATH=:/opt/gnome/lib/python2.7/site-packages
(with the colons) and changed to
# echo $PYTHONPATH
/usr/lib/python2.7/site-packages:/opt/gnome/lib/python2.7/site-packages
So, perhaps the incomplete PYTHONPATH was confusing "make"?
I always found confusing gnome's intruction of setting PYTHONPATH which had not
previously been set.
"Add to your system or personal profile:
export PATH=$PATH:/opt/gnome-3.2.2/bin
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome-3.2.2/lib/pkgconfig
export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/opt/gnome-3.2.2/share/pkgconfig
export GNOME_LIBCONFIG_PATH=/usr/lib:/opt/gnome-3.2.2/lib
export PYTHONPATH=$PYTHONPATH:/opt/gnome-3.2.2/lib/python2.7/site-packages"
>
> ĸen
[]s,
Fernando
--
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page