Installing GCC on Debian
rwechter at liberatortime.com
rwechter at liberatortime.com
Mon Nov 10 13:16:42 EST 2003
All
One issue with using the apt-get prog...I dont have a network connection -
hence the reason why Im trying to recompile the kernel. Is there a way to
tell apt-get to get the packages from my cds. I installed GCC via dpkg -
Isnt that supposed to make all the necessary links and questions the
dependancies?
This stirs two more questions:
What exactly does apt-get do vs. dpkg?
What does one do if no internet connection is available?
Ron
-----Original Message-----
From: owner-nflug at nflug.org [mailto:owner-nflug at nflug.org]On Behalf Of
Mark T. Valites
Sent: Monday, November 10, 2003 9:28 AM
To: nflug at nflug.org
Subject: Re: Installing GCC on Debian
On Mon, 10 Nov 2003 rwechter at liberatortime.com wrote:
> I installed Debian 3.0r1 bootstrap. The plan was to compile the kernel
> so match my hardware, but as expected, had to installed supporting
> packages as well as GCC. GCC and its dependancies were installed but
> non of the necessary symlinks were created. I made two symlinks:
>
> ln -s /usr/bin/gcc-3.0 /usr/bin/gcc
> ln -s /usr/bin/gcc-3.0 /usr/bin/cc
Did you apt-get gcc?
If so, I'm not sure why you had to create these manually - that's
extremely un-Debian-like. The "Debian way" is to use update-alternatives
to create the links it. I'd remove the symlinks and then run:
update-alternatives --set cc /usr/bin/cc
GCC doesn't appear to be part of the alternatives system on my system, but
I'm on a sparc and there may be very well be a 64 bit issue that mucks
with the gcc package.
You may also want to set your environment variable CC to gcc. (export
CC=/path/to/gcc for bash; setenv CC /path/to/gcc for tcsh)
> Ran and checked the versionand gcc popped up...When I went to compile a
> simple "Hello World" program I recieved the error "cannot exec cc1plus" --
> I've checked online and have seen installs for only older versions of gcc
> and other distributions...
See if the steps above help you. If not, I'd recommend trying to build
your kernel with Debian's kernel-package - it just might be able to push
your compile along. The extremely quick and dirty guide to kpkg:
-apt-get install kernel-package
-run your make config/menuconfig/xconfig
-from the kernel source dir, run make-kpkg buildpackage
Additional info can be found at debianplanet.org
If you still get cc1plus errors, try 'apt-get remove --purge gcc*' and
then apt-get gcc again. If that still doesn't work, 'apt-get update' &&
'apt-get -u dist-upgrade'. If that doesn't work, then we'll have to beat
it into submission another way.
--
Mark T. Valites
Unix Systems Analyst
CIT - SUNY Geneseo
>--))> >--))>
More information about the nflug
mailing list