Sida 1 av 1

Bibliotek inte hittat...

Postat: 21 aug 2010, 22:50
av Emil.s
Vid ./configure:

Kod: Markera allt

checking for libtorrent... configure: error: Package requirements (libtorrent >= 0.12.6) were not met:            
                                                                                                                  
No package 'libtorrent' found                                                                                     
                                                                                                                  
Consider adjusting the PKG_CONFIG_PATH environment variable if you                                                
installed software in a non-standard prefix.                                                                      
                                                                                                                  
Alternatively, you may set the environment variables libtorrent_CFLAGS                                            
and libtorrent_LIBS to avoid the need to call pkg-config.                                                         
See the pkg-config man page for more details. 

Kod: Markera allt

emil@Sandnabba: ~/sources/rtorrent/rtorrent $> ls -l /usr/local/lib/libtorrent.*                                  
-rwxr-xr-x 1 root root      989 2010-08-21 22:25 /usr/local/lib/libtorrent.la                                     
lrwxrwxrwx 1 root root       20 2010-08-21 22:25 /usr/local/lib/libtorrent.so -> libtorrent.so.13.0.0
lrwxrwxrwx 1 root root       20 2010-08-21 22:25 /usr/local/lib/libtorrent.so.13 -> libtorrent.so.13.0.0
-rwxr-xr-x 1 root root 11265161 2010-08-21 22:25 /usr/local/lib/libtorrent.so.13.0.0

Kod: Markera allt

emil@Sandnabba: ~/sources/rtorrent/rtorrent $> cat /etc/ld.so.conf                                                
include /etc/ld.so.conf.d/*.conf                                                                                  
include /usr/local/lib
ldconfig är kört....

Tips någon? :)

EDIT:
Funkade fint i 9.10, problem i 10.04.

Re: Bibliotek inte hittat...

Postat: 21 aug 2010, 23:30
av Bowmore
Antar att libtorrent.pc inte finns med under /usr/lib/pkgconfig

Kod: Markera allt

sudo apt-get install libtorrent-dev

Re: Bibliotek inte hittat...

Postat: 21 aug 2010, 23:48
av Konservburk
Bowmore skrev:Antar att libtorrent.pc inte finns med under /usr/lib/pkgconfig

Kod: Markera allt

sudo apt-get install libtorrent-dev
Antar att den annars finns i /usr/local/lib/pkgconfig, varför även detta borde gå bra:

Kod: Markera allt

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure

Re: Bibliotek inte hittat...

Postat: 22 aug 2010, 00:38
av Emil.s
Konservburk skrev:
Bowmore skrev:Antar att libtorrent.pc inte finns med under /usr/lib/pkgconfig

Kod: Markera allt

sudo apt-get install libtorrent-dev
Antar att den annars finns i /usr/local/lib/pkgconfig, varför även detta borde gå bra:

Kod: Markera allt

PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ./configure
Aha! Det var så man skulle skriva. Förstod inte riktigt hur man skulle sätta PKG_CONFIG_PATH. Trodde man skulle ge den till configure scriptet.

Löstes iallafall genom att installera libtorrent med "--prefix=/usr".