LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   problem during ./configure (https://www.linuxquestions.org/questions/linux-newbie-8/problem-during-configure-364925/)

umgambit 09-19-2005 12:32 PM

problem during ./configure
 
When compiling amarok 1.3.1 from source, i got the following error:

checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!

I solved this by:
./configure --x-includes='/usr/X11/include' --x-libraries='/usr/X11/lib'

which are the usual locations of these dependencies.

But then I got another error:

configure: error: We need a working libXext to proceed. Since configure
can't find it itself, we stop here assuming that make wouldn't find
them either.

I have no idea of how to correct this.
Furthermore, i have the files libXext.so.6 and libXext.so.6.4
in /usr/X11R6/lib ....!

Any ideas?
Thanks,
Filipe

freakyg 09-19-2005 03:54 PM

just edit your /etc/ld.so.conf file and include the needed $PATH variables

/usr/X11/include/lib
/usr/X11R6/lib

and then re-source it..........
Code:

ldconfig

tkedwards 09-20-2005 12:20 AM

Quote:

just edit your /etc/ld.so.conf file and include the needed $PATH variables
I don't think ldconfig and /etc/ld.so.conf have anything to do with the $PATH or any other environment variable. When you run ldconfig it goes through the entries in /etc/ld.so.conf (and /etc/ld.so.conf.d/) and uses those to update the /etc/ld.so.cache file, which in turn is used by the ld.so run-time linker.

Environment variables are set in /etc/profile, /etc/bashrc, ~/.bash_profile, ~/.bashrc and so on and although the ld.so linker will pay attention to the LD_LIBRARY_PATH environment variable, if its set, this has nothing to do with ldconfig or /etc/ld.so.conf. See man ldconfig man ld.so

Quote:

/usr/X11/include/lib
/etc/ld.so.conf is only for directories which have libraries, the linking system can't do anything with include files :)



Quote:

umgambit:I solved this by:
./configure --x-includes='/usr/X11/include' --x-libraries='/usr/X11/lib'

which are the usual locations of these dependencies.
Well on my Mandriva system, which claims to be FHS and LSB compliant, its /usr/X11R6/include/ for the includes and /usr/X11R6/lib/ for the libs. Assuming those are the correct locations its probably just that the configure script was written before the FHS standard or something like that.


Quote:

configure: error: We need a working libXext to proceed. Since configure
can't find it itself, we stop here assuming that make wouldn't find
them either.

I have no idea of how to correct this.
Furthermore, i have the files libXext.so.6 and libXext.so.6.4
in /usr/X11R6/lib ....!

You're pointing the configure script to /usr/X11/lib - why are you pointing it there if you're X library files are in /usr/X11R6/lib? What's actually in /usr/X11/lib?

reddazz 09-20-2005 05:33 AM

You need to install the xorg development libraries and then configure amarok as follows,
Code:

$./configure --prefix=`kde-config --prefix`


All times are GMT -5. The time now is 09:05 PM.