LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I have a dark cloude above me... (https://www.linuxquestions.org/questions/linux-newbie-8/i-have-a-dark-cloude-above-me-321932/)

Waerner 05-10-2005 07:13 AM

I have a dark cloude above me...
 
Okay, I've searched your forum and I've found the problem on some other places to, but I haven't succeed to solve it.

checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
configure: error: /bin/sh './configure' failed for autoconf-lib-link
[root@localhost gettext-0.14]#

I've tried to installed the gcc3.3-c++-3.3.4-4mdk.i586.rpm with no success at all. What should I do? It would be lovely if someone told me how to fix it, I'm a big n000b...

Other (perhaps) useful information?
GCC 3.4.3 running on Mandrake 10.2rc for x86_64 architechture

aes canis 05-10-2005 07:36 AM

I know sod all about the problem, but... you say you are using an RPM for the i586 architecture, but you seem to have an x86_64 installation.

Have you tried an x86_64 PRM? like this:
ftp://rpmfind.net/linux/Mandrake/10....mdk.x86_64.rpm

Waerner 05-10-2005 07:45 AM

Actually, I haven't found any, so as a last way out, I tried the one for i586.
*Downloading the new one*

Got a strange error-message, I'll try to translate it into english:

Some requested packages could not be installed:
gcc3.3-3.3.4-2mdk.x86_64 (due to unsufficient gcc3.3-cpp[== 3.3.4-2mdk])
Continue?

When selected Continue, it says "Installation Complete", but, hmm, doesn't feels like it when I read what it said above...

aes canis 05-10-2005 08:26 AM

Bizzarre stuff!
Perhaps there's a dependancy problem? I'm only used to SuSE, which uses YaST to install RPMs and it checks the dependacies and gives quite good descriptions of problems.

Anyway, I put just gcc3.3-cpp in to RPMFind and it found this:
gcc3.3-cpp-3.3.4-2mdk.x86_64.rpm, which is located HERE

I would install this one first, then the other one.

It'll probably say another package is missing, so then it's back off to RPMFind :rolleyes:

Waerner 05-10-2005 08:34 AM

Well, it can't be my day then...
First, when I tried to install the last package you linked me to, the c++-file, it says that it's already installed, and then, I got the same errormessage on the other one... :(


Cheers

aes canis 05-10-2005 11:21 PM

Out of interest, have you tried to first remove the packages first?

I know I'm harking back to Windows and am still pretty clueless about the in machinations of LInux, but what I have done when an istallation has had problems, is to remove the packages that had the errors, then reboot - hoping that SuSE Linux has sort of "house-keeping" routines that clean up broken links and associations and stuff. Then I would reinstall with the last package first (?) - that is the one that was needed by the original wanted package, if you get my drift.

I was lucky, or though I was... I wrote the infamous "Hello world", then did g++ HelloWorld.cpp -o HelloWorld, no compiling error messages, and even got a 'green' HelloWorld executable file. But typing "HelloWorld" just returns "command not found" ... Oh well, I guess it's over to the gcc home page

reddazz 05-11-2005 02:35 AM

Install the source of the version of the Linux kernel that you are running using urpmi and your problem should be sorted.

Tanc 05-11-2005 02:44 AM

I saw that u made a ./configure within a gettext folder... thus i suppose u tried to install Gettext.

Have a look at the following 64 bits package instead of sources...

GETTEXT

scuzzman 05-11-2005 04:08 AM

Waerner: You're suffering, needlessly I might add, through dependency hell. Why not configure Mandriva's stongest utility -- urpmi -- to get the dependencies for you? Need help doing so? See motub's excellent walkthrough here.

Waerner 05-11-2005 05:00 AM

Okay, I made a successfull installation of Gettext, finally, thank you for all the help, that one was necessary for a third part program I want to install, but the problem with the g++ (or whatever it was) still remains.

Scuzzman: I'll check that guide later today, must get a haircut now :)

Thanks alot to all of you (I love these newbie-forums ;P)

I'll guess you'll see me here when I got new problems, but now, I'll try to solve this with the help you gave me, thanks :)


Cheers

reddazz 05-11-2005 05:48 AM

The package you need to install is either gcc-c++ or gcc-cpp. Using urpmi to install it will also install all the required dependencies automatically. If you have installed g++ and the error remains, then you need to install the kernel source of the kernel that you are curently running because on some distros if its not installed you can experiene the errors you are currently getting with the "sanity check".

iluvatar 05-11-2005 06:50 AM

Quote:

I was lucky, or though I was... I wrote the infamous "Hello world", then did g++ HelloWorld.cpp -o HelloWorld, no compiling error messages, and even got a 'green' HelloWorld executable file. But typing "HelloWorld" just returns "command not found" ... Oh well, I guess it's over to the gcc home page
this is because linux won't search the executable in the current path, only in the PATH enviroment variable settings. So if you want to run HelloWorld executable, go into the directory where it's located and type: "./HelloWorld" (without the quotes).

greetz,
.-=~ iluvatar ~=-.


All times are GMT -5. The time now is 12:33 AM.