LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   What command do I use to fix ./configure problem? (https://www.linuxquestions.org/questions/linux-software-2/what-command-do-i-use-to-fix-configure-problem-459574/)

Adrian Baker 06-29-2006 05:11 PM

What command do I use to fix ./configure problem?
 
hi all
I've been struggling for days with this problem, and before you ask yes I've searched everywhere for a solution!!

I'm trying to install Xine to play my DVDs but am having problems following the instructions at http://www.xinehq.de/index.php/faq.

I've downoaded and unpacked the xine-lib tarball as instructed and then issueed the commands:

./configure
make install

This all seemed to work Ok and a search shows Xine-lib to be installed at:
/usr/src/packages/BUILD/xine-lib-1.1.1 on my system (Suse 10.0)

OK, then I unpacked and tried to instal the Xine frontend, xine-ui but when I issued the command ./configure i had lines and lines of installation messages, followed by the final error message shown below:




Quote:

checking for off_t... (cached) yes
checking for size_t... (cached) yes
checking for xine-config... no
checking for XINE-LIB version >= 1.0.0... no
*** The xine-config script installed by XINE could not be found
*** If XINE was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the XINE_CONFIG environment variable to the
*** full path to xine-config.
configure: error: *** You should install xine-lib first ***
AHBlaptop:/home/adrian/Desktop/xine-ui-0.99.4 #

I'm still a newbie, but the message is clear and the helpline at Xine's homepage warns of this problem and says that:


Quote:

If you have installed xine-lib to a non-standard prefix, make sure that you have $prefix/bin in your PATH and that your linker finds libs in $prefix/lib - otherwise trying to build modules that rely on xine-lib will fail with configure complaining about not finding certain parts of libxine. Using bash you can do something like:

export PATH="$prefix/bin:$PATH"
export LD_LIBRARY_PATH="$prefix/lib:$LD_LIBRARY_PATH"

to make sure libxine can be found by the frontend(s).

This is the bit I don't understand - what exactly do i use in the prefix command?

I tried

./configure --prefix=/usr/src/packages/BUILD/xine-lib-1.1.1/bin

and

./configure --prefix=/usr/src/packages/BUILD/xine-lib-1.1.1/misc

and various other commands, but still get the same error message. My xine-config file can be found at /usr/src/packages/BUILD/xine-lib-1.1.1/misc/xine-config


I'm sure that i'm nearly there, but i just can't work out exactly what to do. I'd appreciate some CLEAR instructions if anyone can help.

Incidentally, I've tried using YAST to install Xine but keep getting messages that i must download win32 codecs firstb which Yast then fails to do. (I've installed thes manually)

reddazz 06-29-2006 05:34 PM

Get the xine rpms from here.

bathory 06-29-2006 05:40 PM

Quote:

This all seemed to work Ok and a search shows Xine-lib to be installed at:
/usr/src/packages/BUILD/xine-lib-1.1.1 on my system (Suse 10.0)
I guess this is the place you used to built the library. If you ran just ./configure (without --prefix=/some/dir) it should be installed in /usr/local
If that's the case then $prefix=/usr/local and you have to follow the instructions given, i.e. run:
Code:

export PATH="/usr/local/bin:$PATH"
export LD_LIBRARY_PATH="/usr/local/lib:$LD_LIBRARY_PATH"

before running ./configure for xine-ui.

Anyway it's better to use the rpms, from the link provided by reddazz

Adrian Baker 06-30-2006 01:27 PM

Thanks for the offered help.

Redezz - I have tried the RPm's but it always fails to install. yast tells me that I haven't got win32 codecs, and then cant find "win32codec-all-20060611-0.pm" on the update server. However, I do have the win32 codecs installed as Mplayer uses them to play DVDs! If i search Google for the file win32codec-all-20060611-0.pm then no webpages are found? I just don't understand this....

I have more codecs than know what to do with! I have codecs at:
/usr/lib/codecs
/usr/local/lib/codecs

Also at /usr/lib/codecs are other directories with the names codecs;4498721e and nine similar directories with slightly different numbers.


Bathory, you write:
Quote:

I guess this is the place you used to built the library. If you ran just ./configure (without --prefix=/some/dir) it should be installed in /usr/local
I did just use ./configure but this didn't install Xine-lib in /usr/local Shall I copy the directory and put a copy there?

Still very confused........

Adrian Baker 06-30-2006 02:06 PM

I searched again and found an rpm for the missing codec:

win32codec-all-20060611-0.pm.rpm

I tried to install this with Yast and got the following error message:


Quote:

ERROR(InstTarget:E_RpmDB_subprocess_failed)
---
error: unpacking of archive failed on file /usr/lib/codecs: cpio: rename failed - Is a directory

2006-06-30 19:55:03 w32codec-all.rpm install failed
rpm output:
error: unpacking of archive failed on file /usr/lib/codecs: cpio: rename failed - Is a directory

2006-06-30 20:02:04 w32codec-all.rpm install failed
rpm output:
error: unpacking of archive failed on file /usr/lib/codecs: cpio: rename failed - Is a directory

What does the error message mean at the end? I've tried this several times with other win32 codec rpms and I'm pretty sure that that is why i have so many differently numbered codec directories at
/usr/lib/codecs

I'm very very puzzled...... Anyone?

reddazz 06-30-2006 02:18 PM

If you are having problems installing via YAST, why not do it from the command line (#rpm -Uvh somepackage.rpm). The rpms from the xine nightly builds site do not require win32 codecs, so I don't think they are the ones you tried to install. I am guessing, you tried the ones from the packman repo. If you need win32 codecs you can also download them from a packman site and install them manually.

Adrian Baker 06-30-2006 02:27 PM

Thanks for the quick reply :)

I tried installing as you suggest and get the same error message:

Quote:

AHBlaptop:/home/adrian/Desktop # rpm -Uvh w32codec-all-20060611-0.pm.0.i586.rpm
warning: w32codec-all-20060611-0.pm.0.i586.rpm: V3 DSA signature: NOKEY, key ID 5277a2fa
Preparing... ########################################### [100%]
1:w32codec-all ########################################### [100%]
error: unpacking of archive failed on file /usr/lib/codecs: cpio: rename failed - Is a directory
AHBlaptop:/home/adrian/Desktop #
What exactly needs renaming here?

Regarding your other suggestion, I'm pretty sure that that IS where I got the Xine rpms from.

reddazz 06-30-2006 04:14 PM

Your package could be corrupt. Try downloading it again from here.

Adrian Baker 07-02-2006 04:11 AM

Thanks. Tried that... Exactly the same error message!

Mplayer is fine for DVDs, but I would like to find out what I'm doing wrong, or whats going wrong. This rather annoying problem is certainly helping me to understand Linux more, and thats why I'm so keen to find a solution.


All times are GMT -5. The time now is 02:44 PM.