Python upgradation,setting compiler $PATH
Hello all,
I use RH 9.0. I m trying to upgrade my python from 2.2.2 to 2.4.2 version. I have downloaded the new version. In the Python 2.4.2 folder, ./configure gives my this error: checking for cc... no checking for cl... no configure: error: no acceptable C compiler found in $PATH Earlier I had upgraded my gcc using apt-get. How do I find the location of gcc and set the path? thanks in advance.. Jared |
you can use this comand :
#whereis gcc gcc: /usr/bin/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz if gcc is not in your path type # export PATH=$PATH:/usr/bin/ |
whereis gcc does not return anything..
[root@localhost root]# whereis gcc gcc: this is what I get... can I check out anything else? thanks, Jared |
Any clues as to how do I find my gcc and set the $PATH?
thanks, Jared |
Can anyone help me on how do I set my $PATH?
|
Hi,
What did you apt-get, exactly? Are you sure the upgrading of gcc worked? Try to run gcc. First running "gcc", then writting gcc and pressing tab before Enter. It's possible that only the symlink is missing. What Debian-based distro are you using? Debian itself? Which one? |
I was saying that I upgraded to current gcc version to 3.2.2 from the earlier 2.96 using apt-get.
As I said in my first post, ./configure gives me an error saying no compiler found in $PATH. I am using Red Hat 9.0 thanks, Jared |
Sorry, I missed the part about RedHat (yet I cannot find where you said that you went from gcc 2.96 to gcc 3.2.2).
What does it happen when you write in the console gcc and press the TAB key twice (not pressing Enter)?? You see: sometimes the compiler is called gcc-XYY and because the symlink gcc->gcc-XYY is not created, the system thinks there is not gcc compiler. So maybe your path is set correctly, but you have to create the symlink by hand. You can also try this command. In the root directory (/): find -iname "gcc*". If apt-get succeeded, then you should see a gcc executable in the list (the list may be long, tho). What's the output of echo $PATH? |
thanks for the tips.
Here are the three outputs for your pointers. 1.gcc <tab><tab> shows this two files gcc296 gccmakedep 2.Looks like the excutable is /usr/bin/gcc296 3./usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/jared/bin Should I conclude the executable is gcc296? If yes how do I set the $PATH? thanks, Jared |
export PATH=$PATH:/usr/bin/gcc296
its case sensitive !! call all your envirement variables : #env print a variable #echo $PATH |
All times are GMT -5. The time now is 06:01 AM. |