how do I apt-get specific versions
Michael R Head
burner at suppressingfire.org
Wed Aug 30 16:40:19 UTC 2006
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.
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.
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 at mail ~]# rpm -q ImageMagick
> ImageMagick-6.2.2.0-3.fc4.2
> [root at mail ~]# rpm -q gcc
> gcc-4.0.2-8.fc4
> [root at mail ~]# rpm -q boost
> boost-1.32.0-6
> [root at mail ~]# rpm -q python
> python-2.4.3-8.FC4
> [root at mail ~]#
>
> Carl K
>
--
Michael R Head <burner at suppressingfire.org>
burner | suppressingfire | firestorm | phoenix | firefighter | flambe |
backdraft
More information about the ubuntu-users
mailing list