Drakain Zeil Posted August 9, 2004 Report Share Posted August 9, 2004 Hello, I am new to Linux and Mandrake in general, however I believe I´ve gotten a good grip on how the OS works, however I´m still having difficulties. When I try to install (anyhting really) from a tar file, (after I have extracted it´s contents) I recive the following error when attempting to ¨make¨ the file. g++ -c -o being.o being.cppmake: g++: Command not found make: *** [being.o] Error 127 This is obviously a problem for me since I can´t install tar programs, and I have no idea what this error means, if anyone here can tell me how to fix this, and/or what it means, that would be great. Quote Link to comment Share on other sites More sharing options...
devries Posted August 9, 2004 Report Share Posted August 9, 2004 There are three steps when you want to compile from source: -1- ./configure -2- make -3- (as root) make install Step 1 checks if you have all the neccesary programs and files that you need to 'make' the new application Step 2 builds the new application Step 3 installs the newly build application. It seems you haven't done step 1 and some things are missing for the app to build. So do ./configure and install all the missing (probably xxx-devel.rpm) packages. Good luck. Quote Link to comment Share on other sites More sharing options...
Drakain Zeil Posted August 9, 2004 Author Report Share Posted August 9, 2004 I've run ./configure, however it still gives that error... I can't remember if this happens as root, but I am almost certain that it happens... Is the rpm you suggested on an installation CD? Or do I have to search the net? Quote Link to comment Share on other sites More sharing options...
grendal Posted August 9, 2004 Report Share Posted August 9, 2004 Here's a how to link : http://mandrakeusers.org/index.php?showtopic=10615 Quote Link to comment Share on other sites More sharing options...
Drakain Zeil Posted August 9, 2004 Author Report Share Posted August 9, 2004 Here's a how to link : http://mandrakeusers.org/index.php?showtopic=10615 <{POST_SNAPBACK}> Yeah, I went through that a day or two ago, but kept getting errors... so I registerd and asked about it here, I should have said I've gone thoug the FAQ first. Quote Link to comment Share on other sites More sharing options...
bvc Posted August 9, 2004 Report Share Posted August 9, 2004 (edited) When I try to install (anyhting really) from a tar file, (after I have extracted it´s contents) I recive the following error when attempting to ¨make¨ the file. g++ -c -o being.o being.cppmake: g++: Command not found make: *** [being.o] Error 127 This is obviously a problem for me since I can´t install tar programs, and I have no idea what this error means, if anyone here can tell me how to fix this, and/or what it means, that would be great. <{POST_SNAPBACK}> urpmf g++ will tell you the pkg/s to install Edited August 9, 2004 by bvc Quote Link to comment Share on other sites More sharing options...
Drakain Zeil Posted August 9, 2004 Author Report Share Posted August 9, 2004 urpmf g++will tell you the pkg/s to install <{POST_SNAPBACK}> Thanks for the tip, if it doesn't work I'll post more details and logs of what I did. Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted August 9, 2004 Report Share Posted August 9, 2004 Run this and see if you get the same output: $ rpm -qa | grep gcc gcc-c++-3.3.2-6mdk gcc-cpp-3.3.2-6mdk libgcc1-3.3.2-6mdk gcc-3.3.2-6mdk If not, you don't have some of the necessary compiler packages installed. Install the missing ones and try again. The above is for mdk10. Judging fromn your output I would guess you don't have the C++ compiler installed which is the first listed package. Quote Link to comment Share on other sites More sharing options...
Drakain Zeil Posted August 9, 2004 Author Report Share Posted August 9, 2004 Okay, since nothing has worked so far... I've got some logs and such that I hope will help. When I go through some programs, ./configure won't work normaly... [brian@sympatico pppoe-0.2]$ dirLICENSE Makefile pppoe.c README [brian@sympatico pppoe-0.2]$ ./configure bash: ./configure: No such file or directory [brian@sympatico pppoe-0.2]$ make make: Makefile: Permission denied make: *** No targets. Stop. [brian@sympatico pppoe-0.2]$ su Password: [root@sympatico pppoe-0.2]# make install make: *** No rule to make target `install'. Stop. [root@sympatico pppoe-0.2]# make cc -Wall -pedantic -ansi -O2 -c -o pppoe.o pppoe.c make: cc: Command not found make: *** [pppoe.o] Error 127 [root@sympatico pppoe-0.2]# exit exit [brian@sympatico pppoe-0.2]$ When I go though one that works with it (a game, actually, without a normal make file oddly), I get this... [brian@sympatico raptor-1.2.0]$ ./configurechecking 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 whether make sets $(MAKE)... (cached) yes checking for g++... no checking for c++... n checking for gpp... no checking for aCC... no checking for CC... no checking for cxx... no checking for cc++... no checking for cl... no checking for FCC... no checking for KCC... no checking for RCC... no checking for xlC_r... no checking for xlC... no checking for C++ compiler default output file name... configure: error: C++ compiler cannot create executables See `config.log' for more details. [brian@sympatico raptor-1.2.0] config.log is an attachment.... (changed to .txt, so I can upload it) I attempted running this: $ rpm -qa | grep gcc gcc-c++-3.3.2-6mdk gcc-cpp-3.3.2-6mdk libgcc1-3.3.2-6mdk gcc-3.3.2-6mdk And got this... [brian@sympatico brian]$ $ rpm -qa | grep gccbash: $: command not found [brian@sympatico brian]$ gcc-c++-3.3.2-6mdk bash: gcc-c++-3.3.2-6mdk: command not found [brian@sympatico brian]$ gcc-cpp-3.3.2-6mdk bash: gcc-cpp-3.3.2-6mdk: command not found [brian@sympatico brian]$ libgcc1-3.3.2-6mdk bash: libgcc1-3.3.2-6mdk: command not found [brian@sympatico brian]$ gcc-3.3.2-6mdk bash: gcc-3.3.2-6mdk: command not found [brian@sympatico brian]$ su Password: [root@sympatico brian]# $ rpm -qa | grep gcc bash: $: command not found [root@sympatico brian]# gcc-c++-3.3.2-6mdk bash: gcc-c++-3.3.2-6mdk: command not found [root@sympatico brian]# gcc-cpp-3.3.2-6mdk bash: gcc-cpp-3.3.2-6mdk: command not found [root@sympatico brian]# libgcc1-3.3.2-6mdk bash: libgcc1-3.3.2-6mdk: command not found [root@sympatico brian]# gcc-3.3.2-6mdk bash: gcc-3.3.2-6mdk: command not found [root@sympatico brian]# And when I run urpmf g++, I recive a list that is the attachment "Netlog.txt" I'm not sure what packages I'm missing, it seems that I am... How do I find out what they are, and where do I get them? config.txt Netlog.txt Quote Link to comment Share on other sites More sharing options...
bvc Posted August 10, 2004 Report Share Posted August 10, 2004 u r missing the devel pkgs. You can get them quickly by doing urpmi kernel-sources (caution: it's 150MB) or use rpmdrake to get them or urpmi them. urpmi make urpmi autoconfig urpmi gcc ...etc....as root of course Quote Link to comment Share on other sites More sharing options...
pmpatrick Posted August 10, 2004 Report Share Posted August 10, 2004 It's clear to me you don't have your C++ compiler installed and possibly other packages. [brian@sympatico brian]$ $ rpm -qa | grep gcc That's wrong. You should run: [brian@sympatico brian]$ rpm -qa | grep gcc Then you will get some output. You inadvertantly stuck the "$" in the command. I left it in there to signify you don't have to be root to run that command When people give you a command to run that starts with "#" they mean you need to be root to run it, with a starting "$" you don't have to be root. It corresponds to what the prompt looks like; that's all. Quote Link to comment Share on other sites More sharing options...
bvc Posted August 10, 2004 Report Share Posted August 10, 2004 EXCEPT for me. Everything I say is for root. I run as root and am root ;) ....been so long since I haven't, I'm not sure what users can do :lol: Quote Link to comment Share on other sites More sharing options...
arctic Posted August 10, 2004 Report Share Posted August 10, 2004 hehehe... he tries to do that stuff as normal user and not as root. so ... it is quite logical that it doesn`t work. :lol: okay, before you do that stuff, log in as root in the console, typing "su", then at prompt enter the password. then it should work. :) Quote Link to comment Share on other sites More sharing options...
Drakain Zeil Posted August 10, 2004 Author Report Share Posted August 10, 2004 If you read past the first bit, you'd see I did it as root also. Anyway, now I can install these because I have installed the devel packages from the CDs, everything works with this now, thanks everyone. Quote Link to comment Share on other sites More sharing options...
bvc Posted August 10, 2004 Report Share Posted August 10, 2004 hehehe... he tries to do that stuff as normal user and not as root. so ... it is quite logical that it doesn`t work. :lol:okay, before you do that stuff, log in as root in the console, typing "su", then at prompt enter the password. then it should work. :) <{POST_SNAPBACK}> not true. A user can ./configure and make all day long in the users $HOME, and can install to $HOME. Just can'r install globally ;) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.