File:  [NetBSD Developer Wiki] / wikisrc / pkgsrc / how_to_use_pkgsrc_on_irix.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Feb 5 07:14:36 2012 UTC (8 years, 9 months ago) by schmonz
Branches: MAIN
CVS tags: HEAD
dos2unix

    1: This page should use cross references to avoid duplicate content. Please help us by cleaning it up. ?
    2: 
    3: By default, IRIX is a quite hostile environment if one got used to systems where Bash, CVS and such are already installed. It also lacks many other tools (or at least sufficiently capable versions of them), so they all have to be built when bootstrapping pkgsrc.
    4: #Contents
    5: 
    6: [[!toc]]
    7: 
    8: #Exploring the environment
    9: <pre><code>
   10: $ echo $SHELL
   11: /bin/ksh
   12: $ cvs
   13: ksh: cvs:  not found
   14: $ zsh
   15: ksh: zsh:  not found
   16: $ bash
   17: ksh: bash:  not found
   18: $ bzip2
   19: ksh: bzip2:  not found
   20: $
   21: </code></pre>
   22: So far, so bad. I will have to install all these tools via pkgsrc.
   23: #Getting pkgsrc
   24: 
   25: Since cvs is not available, I have to download the tarball from the FTP server.
   26: <pre><code>
   27: $ ftp
   28: ftp> open ftp.NetBSD.org
   29: Connected to ftp.netbsd.org.
   30: 220 ftp.NetBSD.org FTP server (NetBSD-ftpd 20060923) ready.
   31: Name (ftp.NetBSD.org:rillig): ftp
   32: 331 Guest login ok, type your name as password.
   33: Password: 
   34: ...
   35: ftp> cd /pub/pkgsrc/current
   36: 250 CWD command successful.
   37: ftp> ls
   38: 227 Entering Passive Mode (204,152,184,36,251,197)
   39: 150 Opening ASCII mode data connection for '/bin/ls'.
   40: total 141322
   41: drwxrwxr-x  52 srcmastr  netbsd      1024 Jan  8 05:39 pkgsrc
   42: -rw-rw-r--   1 srcmastr  netbsd  31658232 Jan  6 07:22 pkgsrc.tar.bz2
   43: -rw-rw-r--   1 srcmastr  netbsd        56 Jan  6 07:22 pkgsrc.tar.bz2.MD5
   44: -rw-rw-r--   1 srcmastr  netbsd        65 Jan  6 07:22 pkgsrc.tar.bz2.SHA1
   45: -rw-rw-r--   1 srcmastr  netbsd  40628869 Jan  6 07:19 pkgsrc.tar.gz
   46: -rw-rw-r--   1 srcmastr  netbsd        55 Jan  6 07:20 pkgsrc.tar.gz.MD5
   47: -rw-rw-r--   1 srcmastr  netbsd        64 Jan  6 07:20 pkgsrc.tar.gz.SHA1
   48: 226 Transfer complete.
   49: ftp> binary
   50: 200 Type set to I.
   51: ftp> get pkgsrc.tar.gz
   52: ...
   53: ftp> quit
   54: 221-
   55:     Data traffic for this session was 0 bytes in 0 files.
   56:     Total traffic for this session was 3445 bytes in 1 transfer.
   57: 221 Thank you for using the FTP service on ftp.NetBSD.org.
   58: $
   59: </code></pre>
   60: #Extracting the files
   61: <pre><code>
   62: $ mkdir proj
   63: $ cd proj
   64: $ gzcat ../pkgsrc.tar.gz | tar xf -
   65: $ cd pkgsrc
   66: 
   67: $ ./bootstrap/bootstrap --unprivileged --compiler=mipspro
   68: </code></pre>
   69: ... TODO: continue
   70: 
   71: Note: because *nbsed* cannot handle files with embedded *'\0'*, and since GNU info files contain such characters, you should install [textproc/gsed](http://pkgsrc.se/textproc/gsed) as soon as possible and then replace the *TOOLS_PLATFORM.sed* line in your *mk.conf* file.
   72: #See also
   73: 
   74: * [README.IRIX](ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/bootstrap/README.IRIX) and [README.IRIX5.3](ftp://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/bootstrap/README.IRIX5.3)
   75: * [MIPSpro diagnostics](file:///MIPSpro_diagnostics)
   76: 
   77: #External links
   78: 
   79: * [pkgsrc on IRIX](http://wtf.hijacked.us/wiki/index.php/Pkgsrc_on_IRIX) @ WTFwiki
   80: * [Using NetBSD's pkgsrc on IRIX](http://forums.nekochan.net/viewtopic.php?f=15&t=11217) @ Nekochan 

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