Linux - GeneralThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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'
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.