Re: how do I apt-get specific versions
- From: Carl Karsten <carl@xxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Aug 2006 19:33:12 -0500
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
- Follow-Ups:
- Re: how do I apt-get specific versions
- From: Michael R. Head
- Re: how do I apt-get specific versions
- References:
- how do I apt-get specific versions
- From: Carl Karsten
- Re: how do I apt-get specific versions
- From: Michael R Head
- how do I apt-get specific versions
- Prev by Date: Re: How to save Wifi wep keys?
- Next by Date: Re: ssh problem
- Previous by thread: Re: how do I apt-get specific versions
- Next by thread: Re: how do I apt-get specific versions
- Index(es):
Relevant Pages
|