compile help (solved)

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help

compile help (solved)

Postby Linux n00b on Sat Sep 06, 2008 8:59 am

I want to install something that has no update in the available packs, so the only option is to compile it myself instead of waiting for someone to package the latest release.

Anyway, I have never done compile before, and I'm unsure if I understood the instructions correctly.

I downloaded the gz file, the general instructions I found online was:

tar -zxvf file.tar.gz
then
./configure
then
make
then
su
then
make install

Can someone help me with the ./configure part? It doesn't sounds right. If I extract the gz file, my understanding is it will be extracted to the folder where the gz file is. For me, it will be a folder inside my home download folder.
./ means the current folder which is not the same location where the file configure (from the extract) located. How does that work? I feel the instructions was for someone who already knew what he/she is doing, not for someone new (which it should be, after all, the people already knew don't need it).
Last edited by Linux n00b on Sun Sep 07, 2008 1:35 am, edited 1 time in total.
The difference between genius and stupidity is that genius has its limits.
-- Albert Einstein
User avatar
Linux n00b
Level 3
Level 3
 
Posts: 144
Joined: Sat Jul 05, 2008 9:55 am

Linux Mint is funded by ads and donations.
 

Re: compile help

Postby Google Spider on Sat Sep 06, 2008 9:13 am

Yes, you will have to first cd into the newly created directory; then run configure.

http://www.control-escape.com/linux/lx- ... #configure
Google Spider
Level 2
Level 2
 
Posts: 86
Joined: Thu Apr 03, 2008 10:45 am

Re: compile help

Postby Linux n00b on Sat Sep 06, 2008 9:29 am

Thanks, am I right that "./configure", "make" and "make install" all should happen at the same location (where the extracted files are).

Another question, would sudo do the job, or I have to be root?
The difference between genius and stupidity is that genius has its limits.
-- Albert Einstein
User avatar
Linux n00b
Level 3
Level 3
 
Posts: 144
Joined: Sat Jul 05, 2008 9:55 am

Re: compile help

Postby nperry on Sat Sep 06, 2008 10:12 am

Linux n00b wrote:Thanks, am I right that "./configure", "make" and "make install" all should happen at the same location (where the extracted files are).

Another question, would sudo do the job, or I have to be root?


Yeah in the same location.

sudo make install - Would work the same of going into a su session.
nperry
Level 1
Level 1
 
Posts: 3
Joined: Sat Sep 06, 2008 5:58 am

Re: compile help

Postby Linux n00b on Sat Sep 06, 2008 9:55 pm

I've done the first step, all seemed fine:

Configuration complete. Run 'make dep' to generate dependencies
and 'make' followed by 'make install' to compile and install.

Then I run sudo make dep, but got this, should I worry or I can skip it?

Makefile:380: .depend: No such file or directory
Generating dependencies...
/bin/sh: g++: not found
make: *** [.depend] Error 127
The difference between genius and stupidity is that genius has its limits.
-- Albert Einstein
User avatar
Linux n00b
Level 3
Level 3
 
Posts: 144
Joined: Sat Jul 05, 2008 9:55 am

Re: compile help

Postby Google Spider on Sat Sep 06, 2008 11:21 pm

Install g++ and then try again. You can apt-get install g++ from the repository.
Google Spider
Level 2
Level 2
 
Posts: 86
Joined: Thu Apr 03, 2008 10:45 am

Re: compile help (solved)

Postby Linux n00b on Sun Sep 07, 2008 1:36 am

Thanks mate, I thought I have all those C++ and lib installed. It is now installed, I just need to learn how to use it. :D
The difference between genius and stupidity is that genius has its limits.
-- Albert Einstein
User avatar
Linux n00b
Level 3
Level 3
 
Posts: 144
Joined: Sat Jul 05, 2008 9:55 am

Re: compile help (solved)

Postby dnmint on Sun Sep 07, 2008 1:54 am

Useful to me too. Thanks
ImageDNMint
User avatar
dnmint
Level 4
Level 4
 
Posts: 393
Joined: Sat Jun 21, 2008 5:00 pm
Location: Hyderabad, India ( mostly travelling)

Linux Mint is funded by ads and donations.
 

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 24 guests