using make install

Posted on 2003-12-05
Last Modified: 2013-11-13
I want to install libnet on a Linux system however parts of the filesystem are RO on this system that are normaly RW on most system. libnet wants to use the RO parts, how can I tell make install to put the files in a differnt spot?

Thank you for your time,
Question by:Arrummzen
  • 2
  • 2
LVL 24

Expert Comment

ID: 9887413
u can try any of this option.

If the RPM is incompatible only because of installation path differences, you can either try to 'relocate' it:

rpm -i --relocate oldpath=newpath

or - before you install it - you link the RPMs installation directory to the one preferred by your system, e.g.

ln -s /usr /opt/kde
for SuSE's or Caldera's KDE RPMs
if your case u have to see where it install lets say /opt/old_path (which is RO).

ln -s /RW_path /opt/old_path

Author Comment

ID: 9887422
'If the RPM is incompatible only because of installation path differences, you can either try to 'relocate' it:"

Im not using an rpm, My system uses an Intel PXA 255 NOT an x86 CPU. An rpm of x86 binnarys is useless to me. however beacuse C is platform independent I can recompile libnet for my syste.

I need to get it working using only the GNU build tools.

Thank you for your time,
LVL 24

Accepted Solution

shivsa earned 250 total points
ID: 9887428
when u configure there is option in configure.

./configure [--prefix=PREFIX]

This will test your system and decide the versions that will work for you
(user-level, Linux module, or both). It will tell you what is wrong if it
cannot compile a version. Run

      ./configure --help

to see more options for `./configure'.
After running `./configure', the `make install' command will install the user-level executable and all
under PREFIX (which defaults to /usr/local).

so u have to change the PREFIX value while running configure.

Author Comment

ID: 9887463
Good answer, thats what I needed to know. I thought it would be a option to make install, but I guess it was a configure option.

Thank you for your time,

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question