File:  [NetBSD Developer Wiki] / wikisrc / pkgsrc / how_to_use_pkgsrc_on_osf1.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Sun Nov 20 20:28:27 2011 UTC (2 years, 5 months ago) by mspo
Branches: MAIN
CVS tags: HEAD
import a bunch of pkgsrc articles from the old pkgsrc.se wiki

I'm doing this guide on Tru64, but it should also apply to older versions of this fine OS, formerly branded Digital Unix and also as OSF1 (the system still identifies itself as OSF1).

**Contents**

[[!toc]]

#Setting the environment

There is no bzip2 and cvs so we have to fetch the tarball by ftp. You can try to use ftp(1) or Netscape if you have DECWindows installed. You also can use the portable NetBSD ftp client included in the binary bootstrap if you decide to extract it first. I think tnftp is much nicer for downloading than anything else.

The system doesn't have gcc installed by default as some newer Unices have in the default install, but it has a nice compiler called ccc (Compaq C Compiler).
#Extracting the files

You have to extract the downloaded sources:

    # cd /usr
    # gunzip -c /pkgsrc.tar.gz | tar xf -

Bootstrapping needs gcc:

    # cd pkgsrc/bootstrap/
    # env CC=/usr/local/gcc4/bin/gcc CFLAGS=-O2 ./bootstrap

#Configuring pkgsrc

After the bootstrap is completed, you must decide which compiler to use. To keep using gcc, add the following to your mk.conf:

    CC=/usr/local/gcc4/bin/gcc
    CXX=/usr/local/gcc4/bin/g++

To use the native compiler, set PKGSRC_COMPILER=ccc in mk.conf. You will need at least Compaq C 6.4 (it supports __VA_ARGS__ that tnftp(1) uses).
#See also

<http://pkgsrc-osf1.netbsd.se/>

[README.OSF1 ](ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/bootstrap/README.OSF1)

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb