Jump to content
Drakain Zeil

Can't install anything

Recommended Posts

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.cpp

make: 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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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?

Share this post


Link to post
Share on other sites
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.cpp

make: 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.

urpmf g++

will tell you the pkg/s to install

Edited by bvc

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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]$ dir

LICENSE  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]$ ./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 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 gcc

bash: $: 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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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:

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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. :)

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 ;)

Share this post


Link to post
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...