LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-23-2008, 06:34 PM   #1
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Installing from Source: How to Know What I Need?


I am attempting to compile ccd2iso from source. I've installed gcc. Below are my commands, and their output. It's not working. From the output, how do I know what I need to make it work properly?

Code:
[root@localhost ccd2iso-0.3]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdlib.h... (cached) yes
checking for an ANSI C-conforming const... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
It's obviously broken in this next section, but I don't know how to fix.
Code:
[root@localhost ccd2iso-0.3]# make
make  all-recursive
make[1]: Entering directory `/home/user/Desktop/ccd2iso-0.3'
Making all in src
make[2]: Entering directory `/home/user/Desktop/ccd2iso-0.3/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/user/Desktop/ccd2iso-0.3/src'
make[2]: Entering directory `/home/user/Desktop/ccd2iso-0.3'
make[2]: Leaving directory `/home/user/Desktop/ccd2iso-0.3'
make[1]: Leaving directory `/home/user/Desktop/ccd2iso-0.3'
Code:
[root@localhost ccd2iso-0.3]# make
make  all-recursive
make[1]: Entering directory `/home/user/Desktop/ccd2iso-0.3'
Making all in src
make[2]: Entering directory `/home/user/Desktop/ccd2iso-0.3/src'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home/user/Desktop/ccd2iso-0.3/src'
make[2]: Entering directory `/home/user/Desktop/ccd2iso-0.3'
make[2]: Leaving directory `/home/user/Desktop/ccd2iso-0.3'
make[1]: Leaving directory `/home/user/Desktop/ccd2iso-0.3'
[root@localhost ccd2iso-0.3]# 
[root@localhost ccd2iso-0.3]# make install
Making install in src
make[1]: Entering directory `/home/user/Desktop/ccd2iso-0.3/src'
make[2]: Entering directory `/home/user/Desktop/ccd2iso-0.3/src'
test -z "/usr/local/bin" || mkdir -p -- "/usr/local/bin"
  /usr/bin/install -c 'ccd2iso' '/usr/local/bin/ccd2iso'
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/user/Desktop/ccd2iso-0.3/src'
make[1]: Leaving directory `/home/user/Desktop/ccd2iso-0.3/src'
make[1]: Entering directory `/home/user/Desktop/ccd2iso-0.3'
make[2]: Entering directory `/home/user/Desktop/ccd2iso-0.3'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/user/Desktop/ccd2iso-0.3'
make[1]: Leaving directory `/home/user/Desktop/ccd2iso-0.3'
 
Old 10-23-2008, 06:40 PM   #2
Total-MAdMaN
Member
 
Registered: May 2008
Distribution: Gentoo
Posts: 306

Rep: Reputation: 34
What do you mean by "not working"? Any error messages showing? There's no errors in the post below, so it should have installed and be working.
 
Old 10-23-2008, 07:05 PM   #3
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Original Poster
Rep: Reputation: 164Reputation: 164
Oh, yeah ... you're right ... it did. Hmmm ...
 
Old 10-24-2008, 08:27 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
To me it looks like everything worked perfectly, the program should now work fine.
 
Old 10-28-2008, 07:43 AM   #5
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Original Poster
Rep: Reputation: 164Reputation: 164
While I know the steps to compile a program, I'm not good at reading the compile errors. In the past, when I've had problems I'd search the error, or post at LQ. Folks would tell me what I needed to do to fix it, but not necessarily what the problem was.

Is there a good compile tutorial out there? I'm not talking about how to "./configure;make;make install". I'm talking about explanations to many of the errors in the compile process, why, and how to fix?

Last edited by SlowCoder; 10-28-2008 at 07:45 AM.
 
Old 10-28-2008, 08:32 AM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Well, if you get an error during 'make' it involves scrolling back up and going to the first 'error' you find. This is usually the error that in most cases caused the others. It's difficult to read the errors unless you know some C or C++. Of course these may happen for python programs and then you would need to know some python.

If you get one during 'configure' it will usually tell you what is missing and many times the site where you can download and install the dependency.

Errors during 'make install' are rare and usually happen because of permissions problems (you are not root), or a bad makefile.

I know, it's not easy to find what exactly needs to be done, your best bet is to try to search the error on google.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing from source hdavy2002 Linux - Newbie 3 03-09-2007 09:50 AM
Installing php package after installing from source shubb Slackware 4 03-14-2006 10:19 AM
Installing from source, installing from CVS and the E-17 window manager... Buffbannana049 Ubuntu 10 02-14-2006 11:27 PM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
Installing everything from source SpeedDingo Linux - Newbie 1 05-17-2004 03:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:18 AM.

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