?
Solved

./configure to a specified location URGENT

Posted on 2006-06-24
10
Medium Priority
?
206 Views
Last Modified: 2013-12-16
Hi all,

I have started to learn about installing files on my webserver, and am really wanting to be able to install a certain file to a certain folder called test...

So far I have been doing this:

./configure

and this saves all the information in the root directory (am I right in saying this?)

I would like it to go to a specific folder called 'test'

So I have been trying

./configure prefix=$HOME


I was looking around on the web and found the above, so figured to try

./configure prefix=$HOME/test



But it isnt there....

I am awarding 500 points as this is urgent and hopefully a quick solution.

Cheers for your help in advance folks,

Kevin
0
Comment
Question by:oconnork00
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
10 Comments
 
LVL 24

Expert Comment

by:slyong
ID: 16976640
./configure doesn't install the files.  configure just do some test on your system and take the file Makefile.in to generate a Makefile.  Normally you follow by the command:

$ make
# make install

and you will find the program(s) installed into the directory that you specified in perfix.
0
 
LVL 2

Author Comment

by:oconnork00
ID: 16976648
Ok, this is the bit I am not sure of...

Can you give me an example of how this would work?

./configure prefix=$test

I had tried this and there was no folder created called test, nor any files...

I think I am not really understanding this am I?!

So, with that in mind how do I get it to make it into the 'test' folder?

Thanks slyong

kevin
0
 
LVL 24

Expert Comment

by:slyong
ID: 16976664
Hi Kevin,

If you check your files (using ls -l) you should see that the Makefile is newly created.  The prefix that you specified is taken in by configure and put into Makefile.  So when do you make and make install, the make will take the prefix and put the files into where you specified as prefix.
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
LVL 2

Author Comment

by:oconnork00
ID: 16976684
Ok, so could you give me an example of a prefix, preferably using what i have above...


If you could show me from ./configure it would be great (PS I am installing maildrop incase you are wondering)

Cheers,

Kevin
0
 
LVL 22

Expert Comment

by:pjedmond
ID: 16976699
Normal process for installing software would be:

./configure                (This creates the makefile setting paths to various commands, works out architecture and optimisations and any other bits requires)
make                        (Normally this compiles the code)
make install               (Normally this bit does the installing)

Various customisations relating to directories etc are often possible. The correct place to specify these, and the various 'make' options e.g.:

make
make install
make clean             (Conventionally used to delete all *.o files before recompiling)
make uninstall         (Not always avaialble)

are conventionally detailed in either the README.txt oe INSTALL.txt file or similar. Obviously depending on the programmer, he could change the various options to whatever they think would be of use for the program.

(   (()
(`-' _\
 ''  ''



0
 
LVL 24

Expert Comment

by:slyong
ID: 16976729
Hi Kevin,

This is the normal procedure that you do:

1) Download maildrop
2) Unpack it (tar xjf courier-sox-0.06.tar.bz2)
3) cd courier-sox-0.06
    3.1) At this moment, you can check and you will find that there is no Makefile (there is Makefile.am and Makefile.in, but not Makefile).
4) If you only do ./configure, maildrop will be installed into /usr/local by default.  If you want to install it into /usr instead of /usr/local, you should do ./configure --prefix=/usr
5) Next you do "make" to compile the programs (after make the programs are not installed yet).
6) After that you do "make install" then the programs will be installed into (if you --prefix=/usr) /usr/lib two file: "libsocks.so" and "libsockswrap.so", /usr/bin/socksify, /usr/include/socks.h, and some other files... (You can read up in the INSTALL file).
0
 
LVL 24

Accepted Solution

by:
slyong earned 2000 total points
ID: 16976738
Hi Kevin,

Sorry, I suddently realized that you want to install the programs into your home directory.  Try to do this:

$ mkdir -p $HOME/test
$ ./configure --prefix=$HOME/test
$ make clean
$ make
$ make install

and then check your $HOME/test directory
0
 
LVL 2

Author Comment

by:oconnork00
ID: 16976773
Perfect, thank Slyong...

Could you answer me a quick one, I have a folder called maildrop in my ftp client but I cant delete it, do you know the command in SSH for me to do this?

If it is complex I will ask it in another Q.

Cheers,
Kevin
0
 
LVL 24

Expert Comment

by:slyong
ID: 16976843
Hi Kevin,

You could do:

ssh yourid@yourmachine.com
rm -rf /folder/you/want/to/delete

be very careful with "rm -rf" command, if you delete the wrong folder, you system will rendered useless.

Regards,
slyong
0
 
LVL 2

Author Comment

by:oconnork00
ID: 16976859
Cheers Slyong,

Much appreciated.

I have asked another Q, http://www.experts-exchange.com/Operating_Systems/Linux/Linux_Administration/Q_21898136.html


Perhaps you can help?


Cheers for all the support

Kevin
0

Featured Post

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month14 days, 2 hours left to enroll

801 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