Re: how do I apt-get specific versions



Michael R Head wrote:
On Wed, 2006-08-30 at 10:19 -0500, Carl Karsten wrote:
How do I install gcc v4.0?
this said it did:
sudo apt-get install gcc-4.0
gcc-4.0 is already the newest version.
but trying to run it:
-bash: gcc: command not found

The default gcc in edgy is 4.1, IIRC, so if you apt-get install gcc,
you'll get the gcc program (as well as a gcc-4.1 program). The gcc-4.0
package will give you a gcc-4.0 program. You should be able to use this
one by setting "export CC=gcc-4.0" before running configure and make.


juser@yate2:~/src/PythonMagick$ export CC=gcc-4.0
juser@yate2:~/src/PythonMagick$ scons
scons: Reading SConscript files ...
sh: gcc: not found
sh: gcc: not found
scons: done reading SConscript files.
scons: Building targets ...
o pythonmagick_src/_DrawableFillRule.os -c -fPIC -DBOOST_PYTHON_STATIC_LIB -O2
-I/usr/local/include/boost-1_32 -I/usr/include/python2.4 -I/usr/include
pythonmagick_src/_DrawableFillRule.cpp
sh: o: not found'sudo ln -s /usr/bin/gcc-4.0 /usr/bin/gcc'

I have no idea why it is trying to run o, but that is the same thing I got when
I did your other 2 ideas (including the one you recommend against, which I then
un-did :)

Another alternative is to create a $HOME/bin directory and do 'ln
-s /usr/bin/gcc-4.0 $HOME/bin/gcc'. Then just make sure $HOME/bin is at
the front of your PATH, and you'll get gcc-4.0 when you (or configure or
make) run gcc.

juser@yate2:~$ ln -s /usr/bin/gcc-4.0 $HOME/bin/gcc
juser@yate2:~$ which gcc
/home/juser/bin/gcc
juser@yate2:~$ gcc --version
gcc (GCC) 4.0.4 20060630 (prerelease) (Ubuntu 4.0.3-4)
juser@yate2:~$ cd src/PythonMagick/
juser@yate2:~/src/PythonMagick$ scons
scons: Reading SConscript files ...
scons: done reading SConscript files.
scons: Building targets ...
o pythonmagick_src/_DrawableFillRule.os -c -fPIC -DBOOST_PYTHON_STATIC_LIB -O2
-I/usr/local/include/boost-1_32 -I/usr/include/python2.4 -I/usr/include
pythonmagick_src/_DrawableFillRule.cpp
sh: o: not found
(more of the same)

Any idea how to force versions of the other packages? I am just guessing it is
a version problem that is causing PythonMagic build to fail, and just guessing
that gcc version has anything to do with it (doubt it really, but it was first
on the list.)


I recommend against doing 'sudo ln -s /usr/bin/gcc-4.0 /usr/bin/gcc'
because /usr/bin is managed by dpkg, and if you later install the gcc,
you could run into problems.

mike

This is on a edgy box that is having trouble building some boost libs, but I
want to try it with the same versions of everything that build successfully.

here is what I am trying to match:

[root@mail ~]# rpm -q ImageMagick
ImageMagick-6.2.2.0-3.fc4.2
[root@mail ~]# rpm -q gcc
gcc-4.0.2-8.fc4
[root@mail ~]# rpm -q boost
boost-1.32.0-6
[root@mail ~]# rpm -q python
python-2.4.3-8.FC4
[root@mail ~]#

Carl K


--
ubuntu-users mailing list
ubuntu-users@xxxxxxxxxxxxxxxx
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users



Relevant Pages

  • Re: how do I apt-get specific versions
    ... -bash: gcc: command not found ... The default gcc in edgy is 4.1, IIRC, so if you apt-get install gcc, ... # rpm -q ImageMagick ...
    (Ubuntu)
  • Re: how do I apt-get specific versions
    ... scons: Reading SConscript files ... ... sh: gcc: not found ... Scons is supposed to respect the CC variable, IIRC, so perhaps the ... pythonmagick packager has done a bad job. ...
    (Ubuntu)
  • Re: [SLE] Re: Suddenly cant link to wxGTK 2.4.1
    ... I run Athlon-xp.. ... rpm --Uhv binutilsXXXX.i686.rpm ... I did a gcc -v with suse's pre-release. ... Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com ...
    (SuSE)
  • Re: [SLE] gcc compiler 4.1
    ... where shall I change the binaries versions? ... When I install the newest gcc by the command: ... ion the website you mentioned I see many gcc_41 rpm files. ... You don't need to uninstall your gcc compiler rpms. ...
    (SuSE)
  • Re: [SLE] Re: Suddenly cant link to wxGTK 2.4.1
    ... El Martes, 26 de Agosto de 2003 21:21, Philipp Thomas escribió: ... > rpm -ql gcc ... This is free software; see the source for copying conditions. ...
    (SuSE)