gcc on ubuntu demo without net

Hi

I just got the ubuntu demo running on my beagleboard and want to get
gcc on there. I can't get it on the network. Is there any way to
install gcc without it?

cheers

Marek

Go find the .deb file via a machine which is connected to the
internets, put it on something you can read on the box - sd, usb
driver/flash, etc. Plug it in and install it. If it complains about
dependencies ... rinse and repeat until you have it working.

You know, the way it was always done before automatic repositories
became the norm only a few years ago.

There is always a way ...

Then again, how silly for a distribution not to come with a compiler.
Maybe you should ditch it and find something more useful.

It would probably be faster/easier to rebuild the image with rootstock
and add the gcc package and support tools via the "build-essential"
seed...

The rootstock command i used to build the minimal demo image is listed
next to the download:

http://elinux.org/BeagleBoardUbuntu#Demo_Image

Regards,

Could you elaborate a bit further.
‘add the gcc package and support tools via the “build-essential”
seed…’
How do you do the above. Which gcc package should be added. Are there any guidelines for newbies available on the web for installing gcc.

You can download the build-essential debian package from
http://packages.ubuntu.com/jaunty/build-essential (depends on ur
ubuntu version), or as Neil mentioned can create the rootfs with the
necessary packages.
And for newbies, I think this will be the easiest option to install
gcc and other necessary compilers in ubuntu.

Could you elaborate a bit further.
'add the gcc package and support tools via the "build-essential"
seed...'
How do you do the above. Which gcc package should be added. Are there any
guidelines for newbies available on the web for installing gcc.

You can download the build-essential debian package from
Ubuntu – Error (depends on ur
ubuntu version), or as Neil mentioned can create the rootfs with the
necessary packages.

*Neil -Robert Nelson (Robert - Am sorry :slight_smile: )

Well in debian/ubuntu you add packages via apt and friends...

So to install gcc,you'd normally "sudo apt-get install gcc" But you'd
still miss some common build utilities,so it's recommended to install
a meta packages such as 'build-essential' which includes gcc... for
x86 you can view the dependices here:
http://packages.ubuntu.com/karmic/build-essential

Since the original poster is using the demo image and karmic they
would just add build-essential to the seed:

sudo ./rootstock --fqdn beagleboard --login ubuntu --password temppwd
--imagesize 2G \
--seed wget,nano,linux-firmware,wireless-tools,usbutils,build-essential
--dist karmic --serial ttyS2 \
--kernel-image http://rcn-ee.net/deb/kernel/beagle/karmic/v2.6.31.6-x6.0/linux-image-2.6.31.6-x6.0_1.0karmic_armel.deb

http://elinux.org/BeagleBoardUbuntu#Demo_Image

Regards,

Just tried it, and it works! Thanks again!! It was weird, though, that
I changed the username and password to root/root and it wouldn't let
me in, so I just tried again with ubuntu/temppwd and it worked again.