Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Firstly, why did you download Xnee-3.01.tar.gz rather than xnee-3.02.tar.gz (note capital "X" and small "x"...am I meant to grasp the significance of a capital letter on a release? Does one mean "working version" and the other mean "sthg else"?)... the latter (3.02) when it unpacks unpacks only 3 files, as described earlier in this thread. When I unpack 3.01 I do indeed get all the files you do. Including "configure"... joy.
BUT... things go wrong immediately:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
This is as far as I get. Repeat runs of ./configure get the same output
Well, first, I just went to the GNU site and downloaded the latest stable release. Hence Xnee-3.01/
Second, you need the development tools in order to compile and install applications. Start the Adept Manager and look for the "Development" group. (I don't think that Ubuntu installs them by default.) The easiest way to get the tools you need may be to install one of the IDEs for C++ development. (An IDE is usually a nice tool to have around in any case, and IIRC the tools you need will be installed as dependencies of the IDE.) You'll also need to lots of libraries, so keep the Adept Manager open so you can go bacl and install libraries as ./configure complains. Then you re-run ./configure and install the next library it complains about. (The "search" function in the Adapt Manager is very handy.)
Installing the kernel headers )for driver applications) is also a "nice to have," but not necessary for *nee.
Oh, another thought: you might see if the documentation lists the libraries you need, and see if you can download then in one shot. That might save some time, eh? Sorry - I haven't looked. Since I only had two libraries missing, it was no problem for me. But it seems to me that you dis a "user" installation of Ubuntu instead of the "developer" one. Of course, I'm working on Fedora, not Ubuntu, and - as I intimated - I do have a "developer" installation of Fedora.
OK I've installed the Anjuta IDE, which is a C++ IDE.
Unfortunately I get EXACTLY the same output on going "./configure".
If you want to see what configure.log says, the relevant passage is:
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
configure:2691: $? = 0
configure:2698: gcc -V >&5
gcc: '-V' option must have argument
configure:2701: $? = 1
configure:2724: checking for C compiler default output file name
configure:2751: gcc conftest.c >&5
/usr/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
configure:2754: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "Xnee"
| #define PACKAGE_TARNAME "xnee"
| #define PACKAGE_VERSION "3.01"
| #define PACKAGE_STRING "Xnee 3.01"
| #define PACKAGE_BUGREPORT "firstname.lastname@example.org"
| #define PACKAGE "Xnee"
| #define VERSION "3.01"
| /* end confdefs.h. */
| main ()
| return 0;
configure:2799: error: C compiler cannot create executables
You'll also need to lots of libraries, so keep the Adept Manager open so you can go bacl and install libraries as ./configure complains. Then you re-run ./configure and install the next library it complains about. (The "search" function in the Adapt Manager is very handy.)
Ok... but the present complaint says nothing to me about what I should install/do next...
sorry to be so clueless... maybe my strivings will, however, be of use to others if I can in the end crack this (with your help)
The error message is, as you probably know, telling you that the gcc command is not working correctly.
Here's what a test on my Fedora system yields:
$ kate test.c
$ cat test.c
$ gcc -o test test.c$ ls
Try the same code on your system, both from the command line (as above) and from within Ajunta. The error messages you get should be suggestive. (Oh, the kate command at the top of my output is just to start the editor I used to past in the code in your post. If you're on a GNOME system, use gedit or any editor with which you're familiar.)
Hum. I just logged on to my Kubuntu installation and tried to compile the test program. It failed to load because the library linker (/usr/bin/ld) was missing,
I went to Adept Manager, and selected the [compiler] tag. Only the old gcc3.3 compiler was installed, so I installed the gcc 4.2 one (along with ADA and F95, 'cause I sometimes want them too), and now the test program compiles and links with no problem.
I guess I should see if I can buld the cnee package here now. (As I mentioned before, I've been working on my Fedora system since I hadn't set up Kubuntu for any development.
Well, I couldn't get it to compile. First I had to install the X library and the pagkage manager:
thanks... finally got around to following your actions.
I got the same message about /usr/bin/ld
I went to Synaptic (adept manager) and reinstalled gcc... (although it was already there, version 4:4.1.2-9ubuntu2 (what the significance of the colon here is, no clue)...
got the same message about /usr/bin/ld
at this point I am way out of my depth... my next step is going to be to contact the people who are responsible for the whole xnee bundle (I have registered to post to their site... pending approval!) and ask them if they can help.
No. If you used the "test.c" program I listed above:
there is no mention of "crtl.o," so the message you display should be impossible. (I do note that the code generated by the Xnee ./configure file does write its output to ctrl.o, but I simplified that for the test.)
Were you trying ./configure again after you reinstalled gcc? The output you quote looks like something that would have been generated by ./configure if you ran it in a directory to which you did not have write permission. (You can use the directory listing command with the "long" option (ls -l) to se the permissions set on the files in a directory. (Remember that a directory is a file in a Linux system, and you need "write" permission to that file beore you can create a data file in the directory, so you need to do the ls -l in the parent directory of the Xnee directory.)
In any case, the message does show that the ld command is now installed on your computer.
Yes, I know there is no mention of "ctrl.o"... in fact this is "ctr1.o" (the figure "one", not "L").
I simply made the test.c as you told me to and ran gcc -o test test.c.
Let's forget about Xnee for the minute... where is this instruction to use/run/do sthg with ctr1.o coming from, I wonder? Is it the linker looking for this file? Why?
It seems gcc is not working properly and this is the first thing I need to try and sort out. You say the linker has been installed. So would this be some header file asking to "#include ctr1.o", perhaps?
NB my C++ is rusty, I prefer java. But if I want to achieve Xnee looks like I'll have to get my fingers dirty at this point.
NB2 my attempt to get in touch with the Xnee people is not proving successful so far... http://www.sandklef.com has a link to create a new account... I tried this a few days ago but they have not responded. Will continue to try
At this point, I'd suggest that you start a new thread in the Programming sub-forum. Include a copy of the test.c code, the command you used to compile and link it, and the output you got.
Obviously, I make this suggestion because I've got no clue about what's causing your error. Again, obviously, the test.c program compiled and ran with no problem on my Kubuntu system.
Oh, when you present the output, try the command gcc -v -o test test.c so the compiler version is printed, and don't forget to surround the output you paste into your thread starter with code tags. (I.e., start with code inside square brackets, and finish with /code inside square brackets.)
Last edited by PTrenholme; 04-19-2008 at 08:31 AM.