biblioteki [linux]

0

witam !
nie mogę sobie poradzic z raczej oklepanym problemem
otoz chodzi o instalacje bibliotek w linuxie (debian)
posadzilem sobie pkgconfig, z moich obserwacji wynika ze wszystkie sciezki się zgadzają, jednak pojawia się problem. Chcialem zainstalować GTK, wyczytalem ze najpierw potrzeba glib i pango, zatem sciągąłem ich źródła. Zaczynam kompiliację Pango, zwrócił że potrzebuje najpierw Glib, zatem skompilowałem glib (były klopoty ale poszło), biorę się znów za Pango i co ciekawe ./configure dalej zwraca mi:
" checking for GLIB ... configure: error:
Glib 2.14.0 or better is required. The latest version of Glib is always available from ftp://ftp.gtk.org/."
hmmm trochę mnie to zdenerwowalo ponieważ glib sam posadzilem...
ponadto parę linijek wyzej mam "checkin for Cairo ... no"
a tą bibliotekę również zainstalowalem... choć ją posadzilem z paczek
proszę o jakieś wskazówki, to dla mnie b. ważne !

0

ldconfig
i po sprawie,
jednak pojawił się inny problem bez równie łatwego rozwiązania...
otóż, kompiluję bibliotekę i oto co zwraca

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether  accepts -g... no
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for some Win32 platform... no
checking for native Win32 platform... no
checking for aclocal flags... 
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.5.7... 
*** 'pkg-config --modversion glib-2.0' returned 2.16.3, but GLIB (2.12.4)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.16... yes
checking for GLIB - version >= 2.0.0... 
*** 'pkg-config --modversion glib-2.0' returned 2.16.3, but GLIB (2.12.4)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GLib. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
no

wywalenie nowej wersji biblioteki sprawia ze Glib jest w ogóle nie widziany, natomiast zainstalować wersji 2.12.4 nie moge ponieważ jest za stara dla moich potrzeb. Nie wiem co mam robić...
w ogóle tej wersji 2.12.4 znaleźć nie mogę. Tym bardziej dziwi mnie dlaczego system ją wykrywa...
Czy tym razem ktoś mi pomoże ?
z góry dziękuję

0

Hm, sam prosiles sie zeby zrobic sobie kuku - po co instalujesz gtk ze zrodel? Takich bibliotek jak gtk, qt czy libc w ogole nie powinno sie instalowac ze zrodel. W repozytorium Sida sa te same wersje ktore chcesz zainstalowac.

Sprobuj znalezc glib 2.12.4, zainstalowac (make install), odinstalowac (make uninstall) i wtedy probuj.

Mozesz tez sprobowac usunac sciezke do 2.12.4 z PKB_CONFIG_PATH tak jak ci zasugerowali. Jak widac instalacja nowszej wersji glib nie nadpisala starej.

0

spróbowalem tak zrobić jednak nie udalo się,
co ciekawe problem udało mi się rozwiązać po paru godzinach gooooglowania :)
export LD_LIBRARY_PATH=/usr/local/lib
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig
export PATH=/usr/local/lib:$PATH
niestety trzebabylo wprowadzic zmienną LD LIBRARY... no ale dzięki temu poszło elegancko

0

dziękuję za odpowiedź !

1 użytkowników online, w tym zalogowanych: 0, gości: 1