Diff for /wikisrc/pkgsrc/how_to_use_pkgsrc_on_irix.mdwn between versions 1.1 and 1.2

version 1.1, 2011/11/20 20:28:27 version 1.2, 2012/02/05 07:14:36
Line 1 Line 1
 This page should use cross references to avoid duplicate content. Please help us by cleaning it up. ?  This page should use cross references to avoid duplicate content. Please help us by cleaning it up. ?
   
 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.  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.
 #Contents  #Contents
   
 [[!toc]]  [[!toc]]
   
 #Exploring the environment  #Exploring the environment
 <pre><code>  <pre><code>
 $ echo $SHELL  $ echo $SHELL
 /bin/ksh  /bin/ksh
 $ cvs  $ cvs
 ksh: cvs:  not found  ksh: cvs:  not found
 $ zsh  $ zsh
 ksh: zsh:  not found  ksh: zsh:  not found
 $ bash  $ bash
 ksh: bash:  not found  ksh: bash:  not found
 $ bzip2  $ bzip2
 ksh: bzip2:  not found  ksh: bzip2:  not found
 $  $
 </code></pre>  </code></pre>
 So far, so bad. I will have to install all these tools via pkgsrc.  So far, so bad. I will have to install all these tools via pkgsrc.
 #Getting pkgsrc  #Getting pkgsrc
   
 Since cvs is not available, I have to download the tarball from the FTP server.  Since cvs is not available, I have to download the tarball from the FTP server.
 <pre><code>  <pre><code>
 $ ftp  $ ftp
 ftp> open ftp.NetBSD.org  ftp> open ftp.NetBSD.org
 Connected to ftp.netbsd.org.  Connected to ftp.netbsd.org.
 220 ftp.NetBSD.org FTP server (NetBSD-ftpd 20060923) ready.  220 ftp.NetBSD.org FTP server (NetBSD-ftpd 20060923) ready.
 Name (ftp.NetBSD.org:rillig): ftp  Name (ftp.NetBSD.org:rillig): ftp
 331 Guest login ok, type your name as password.  331 Guest login ok, type your name as password.
 Password:  Password: 
 ...  ...
 ftp> cd /pub/pkgsrc/current  ftp> cd /pub/pkgsrc/current
 250 CWD command successful.  250 CWD command successful.
 ftp> ls  ftp> ls
 227 Entering Passive Mode (204,152,184,36,251,197)  227 Entering Passive Mode (204,152,184,36,251,197)
 150 Opening ASCII mode data connection for '/bin/ls'.  150 Opening ASCII mode data connection for '/bin/ls'.
 total 141322  total 141322
 drwxrwxr-x  52 srcmastr  netbsd      1024 Jan  8 05:39 pkgsrc  drwxrwxr-x  52 srcmastr  netbsd      1024 Jan  8 05:39 pkgsrc
 -rw-rw-r--   1 srcmastr  netbsd  31658232 Jan  6 07:22 pkgsrc.tar.bz2  -rw-rw-r--   1 srcmastr  netbsd  31658232 Jan  6 07:22 pkgsrc.tar.bz2
 -rw-rw-r--   1 srcmastr  netbsd        56 Jan  6 07:22 pkgsrc.tar.bz2.MD5  -rw-rw-r--   1 srcmastr  netbsd        56 Jan  6 07:22 pkgsrc.tar.bz2.MD5
 -rw-rw-r--   1 srcmastr  netbsd        65 Jan  6 07:22 pkgsrc.tar.bz2.SHA1  -rw-rw-r--   1 srcmastr  netbsd        65 Jan  6 07:22 pkgsrc.tar.bz2.SHA1
 -rw-rw-r--   1 srcmastr  netbsd  40628869 Jan  6 07:19 pkgsrc.tar.gz  -rw-rw-r--   1 srcmastr  netbsd  40628869 Jan  6 07:19 pkgsrc.tar.gz
 -rw-rw-r--   1 srcmastr  netbsd        55 Jan  6 07:20 pkgsrc.tar.gz.MD5  -rw-rw-r--   1 srcmastr  netbsd        55 Jan  6 07:20 pkgsrc.tar.gz.MD5
 -rw-rw-r--   1 srcmastr  netbsd        64 Jan  6 07:20 pkgsrc.tar.gz.SHA1  -rw-rw-r--   1 srcmastr  netbsd        64 Jan  6 07:20 pkgsrc.tar.gz.SHA1
 226 Transfer complete.  226 Transfer complete.
 ftp> binary  ftp> binary
 200 Type set to I.  200 Type set to I.
 ftp> get pkgsrc.tar.gz  ftp> get pkgsrc.tar.gz
 ...  ...
 ftp> quit  ftp> quit
 221-  221-
     Data traffic for this session was 0 bytes in 0 files.      Data traffic for this session was 0 bytes in 0 files.
     Total traffic for this session was 3445 bytes in 1 transfer.      Total traffic for this session was 3445 bytes in 1 transfer.
 221 Thank you for using the FTP service on ftp.NetBSD.org.  221 Thank you for using the FTP service on ftp.NetBSD.org.
 $  $
 </code></pre>  </code></pre>
 #Extracting the files  #Extracting the files
 <pre><code>  <pre><code>
 $ mkdir proj  $ mkdir proj
 $ cd proj  $ cd proj
 $ gzcat ../pkgsrc.tar.gz | tar xf -  $ gzcat ../pkgsrc.tar.gz | tar xf -
 $ cd pkgsrc  $ cd pkgsrc
   
 $ ./bootstrap/bootstrap --unprivileged --compiler=mipspro  $ ./bootstrap/bootstrap --unprivileged --compiler=mipspro
 </code></pre>  </code></pre>
 ... TODO: continue  ... TODO: continue
   
 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.  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.
 #See also  #See also
   
 * [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)  * [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)
 * [MIPSpro diagnostics](file:///MIPSpro_diagnostics)  * [MIPSpro diagnostics](file:///MIPSpro_diagnostics)
   
 #External links  #External links
   
 * [pkgsrc on IRIX](http://wtf.hijacked.us/wiki/index.php/Pkgsrc_on_IRIX) @ WTFwiki  * [pkgsrc on IRIX](http://wtf.hijacked.us/wiki/index.php/Pkgsrc_on_IRIX) @ WTFwiki
 * [Using NetBSD's pkgsrc on IRIX](http://forums.nekochan.net/viewtopic.php?f=15&t=11217) @ Nekochan   * [Using NetBSD's pkgsrc on IRIX](http://forums.nekochan.net/viewtopic.php?f=15&t=11217) @ Nekochan 
   

Removed from v.1.1  
changed lines
  Added in v.1.2


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