Click to See Complete Forum and Search --> : OpenBSD and GCC


Ashcrow
06-08-2001, 10:10 PM
How do I get GCC installed on OpenBSD? I didn't install ti be default and I can't install any ports now. Thanks!

freebsd
06-08-2001, 10:33 PM
cvsup + buildworld or install from scratch.

Ashcrow
06-08-2001, 10:40 PM
I'm not use to OpenBSD yet :-P. How do I install it from cvsup, or is it better to try to use the source (though I tried allready and it spit up asking for cc again for gcc).

freebsd
06-08-2001, 11:27 PM
If you already have the /usr/src, just do a buildworld. It's relatively straight forward in OpenBSD.

# cd /usr/src
# find . -type l -name obj | xargs rm
# make cleandir
# rm -rf /usr/obj
# mkdir /usr/obj
# make obj
# cd /usr/src/etc && make DESTDIR=/ distrib-dirs
# cd /usr/src/sys/arch/i386/conf
# cp GENERIC MYKERNEL
# vi MYKERNEL
(edit MYKERNEL to your liking)
# config MYKERNEL
# cd ../compile/MYKERNEL
# make clean && make depend && make
# cp /bsd /bsd.old && cp bsd /bsd
# shutdown -r now
# cd /usr/src
# make build
# mkdir /usr/tmp/newroot
# export DESTDIR=/usr/tmp/newroot
# cd /usr/src/etc && make distribution-etc-root-var
# rm -rf /usr/tmp/newroot (when done)
# shutdown -r now

Check OpenBSD for further details.

Gnu/Vince
06-09-2001, 12:10 AM
You could also get the binary package

freebsd
06-09-2001, 03:54 AM
>> You could also get the binary package

You can but you are strongly discouraged in OpenBSD.

Ashcrow
06-09-2001, 02:24 PM
Allright! Thanks guys it's working now. One last question before I am in OpenBSD bliss ... How do I manage my partitions? During the install I accidently set up my partition as a 500MB / leaving the majority of my disk (18.5 gigs) doing nothing. How do I merge this with my / pratition? (I suck at using fdsik BTW :-P)

freebsd
06-09-2001, 02:38 PM
So what is the output of df -h?

>> How do I manage my partitions?

You can't. Is it too late to reinstall from scratch? Anyhow, let us know what exactly were you planning to do with this box? Is this your only box?

Ashcrow
06-09-2001, 02:51 PM
df -h just gives me my swap and 500M / partition. It's my only box ... I'm wanting to use it for my OS and have it proxy out the other clients here on my home network. I can resintall it but I can't figure out for the life of me how to use that partition manager durinf the install ... I set it for the xxxd partition as the / but then it said I had a and d as /'s. Is there any tutorials on it?

freebsd
06-09-2001, 05:35 PM
http://www.openbsd.org/faq/faq4.html

You better do it all over. Try the following:

/ - 100mb
swap - your memory x 2
/www - 2GB # yes, apache resides in /var/www but it's better to run your docroot off a /www partition like this
/var - 1GB # this assumes you run some kind of db, if not, set it to 100mb is more than enough
/usr - all the rest

Ashcrow
06-09-2001, 09:56 PM
Sweet. It's all set! Thanks a lot! :)