Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 07-27-2004, 03:16 AM   #1
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Rep: Reputation: 30
a portable ./configure --prefix option

I'm trying to install gtetrinet in such a way that it can easily be moved to a different directory. Unfortunately, ./configure expands any --prefix environment variables I set. For example, if I use --prefix $(HOME)/games, it gets installed to /home/joe/games, with all the paths hard-wired into the executable. This is fine for playing the game in /home/joe, but it doesn't work if I try to move it to /home/foo on a different machine. Is there a way to fix this?
Old 07-27-2004, 04:14 AM   #2
Senior Member
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
is there some reason why you have to move it and not compile it again on the target ???
I think it would be very unlikely that link paths are hard wired......
I think more likely you just aren't moving the whole thing.....
or binary incompatability with the target system..
different version of gnome different glibc different gcc or whatever ??
what error messages do you get when you run it on the new target and it fails????
besides the execulable i would imagine you need to move the whole
--prefix/gtetrinet directory structure resursively
also some stuff by convention is not effected by --prefix and may have hard coded paths
i'm not sure -- gconf is a huge mystery to me !
other files would be in all the folders of
and images in
and gnome schema file most lkely in
Old 07-27-2004, 04:34 AM   #3
Registered: Sep 2003
Location: Australia
Distribution: Gentoo
Posts: 465

Original Poster
Rep: Reputation: 30
I want to play it on computers at university but I only have write permissions on my home folder. I also need to put it in some other people's home folders so they can play too. I can't compile it at university because they don't have all the developement libs installed and I don't have an infinite disk quota.

I don't think the linking will be a problem. The problem is that getrinet looks in /home/joe/games/share/gtetrinet/themes/default for a png file. If it can't open that directory, it pops up an infinite string of dialogue boxes saying it can't find the theme file - reverting to default. If I could change the path it looks in to $HOME/games/share/gtetrinet/themes/default then I wouldn't have a problem


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
./configure --prefix= plan9 Slackware 5 01-03-2013 04:44 AM
KTorrent Install Help... ./configure step fails. Prefix??? kimothy Linux - Newbie 4 10-16-2005 03:22 PM
./configure --prefix=/??? mykrob Linux - Newbie 7 06-24-2004 09:59 AM
kde prefix error when running ./configure hoopyfrood Linux - Software 1 04-25-2004 05:40 PM
prefix argument to ./configure luck___ Linux - Software 2 03-13-2004 02:22 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration