webForumDet fria alternativet

lib grej

5 svar · 149 visningar · startad av benken

benkenMedlem sedan feb. 2003250 inlägg
#1

Detta stod när jag kompilerade libgphoto2,
men hur gör jag det??? Fattar inget, har läst manualer, men det funkar inte....

Libraries have been installed in:
/usr/local/lib/gphoto2/2.1.1

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.

Jag måste göra detta för att jag ska kunna installera gphoto2, men jag vet inte nått om det....

LMDMedlem sedan jan. 200398 inlägg
#2

Nej, varför det?

"If you ever happen to want to link against installed libraries ".

Det enda det säger är ju att om du t ex skulle skriva ett eget program som vill länka mot de libbarna så får du följa instruktionerna.

benkenMedlem sedan feb. 2003250 inlägg
#3

Jo, men när jag ska installera gphoto2, så står det

checking for libgphoto2 >= 2.1.1... Package libgphoto2 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libgphoto2.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libgphoto2' found

ioförsig, är kanske inte samma sak :? men vad ska jag göra??

GunnarDMedlem sedan juni 20014 290 inlägg
#4

I filen /etc/ld.so.conf lägger du till följande rad:

/usr/local/lib/gphoto2/2.1.1

Därefter kör du kommandot "ldconfig"

benkenMedlem sedan feb. 2003250 inlägg
#5

ldconfig ?

fanns inte...

benkenMedlem sedan feb. 2003250 inlägg
#6

Fanns visst sen, (lång sökväg)

men det funkar inte endå,. samma fel...

129 ms totalt · 3 externa anrop · v20260731065814-full.30151723
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
126 ms — hämta tråd, inlägg och bilagor (db)