Change Linux install directory

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
James
New user
Posts: 1
Joined: 21 May 2009, 23:19

Change Linux install directory

Post by James »

Hi,

I've compiled WZ2100 from source on my Ubuntu computer, but I want to install it within my home directory so that it doesn't interfere with the Ubuntu package I have installed. Is there any way of doing this?

I've compiled using configure && make.

Thanks,

--James.
stiv
Warzone 2100 Team Member
Warzone 2100 Team Member
Posts: 876
Joined: 18 Jul 2008, 04:41
Location: 45N 86W

Re: Change Linux install directory

Post by stiv »

Distribution packages normally get installed into /usr. Add-on packages you compile yourself normally use /usr/local. You can change this by running ./configure --prefix=some-dir where some-dir is the base directory. example: ./configure --prefix=$HOME

./configure --help is your friend. It will also show you how to add a prefix or suffix to the executable name.