« Subversion 1.3.1 to 1.3.2 upgrade notes | Main | WordPress updates via Subversion »
June 02, 2006
Intel iMac set-up notes
When I switched from the G5 to the Intel iMac I used Apple's migration assistant to transfer over as much data as possible from the old system to the new.
There were a number of command-line tools that I depend on that did not get transferred by the migration assistant. These are the notes that I made while compiling native Intel versions of these tools and installing them on the iMac.
wget
I prefer wget to curl. The --limit-rate switch below is so that downloading the source didn't flood my pathetic dial-up connection:
# get the source curl --limit-rate 1K -O ftp://ftp.rediris.es/pub/gnu/gnu/wget/wget-1.10.tar.gz
# extract tar xzvf wget-1.10.tar.gz cd wget-1.10/
# configure and build ./configure --with-ssl make
# test src/wget --version
# install sudo make install
pstree
When I went looking for the latest official version of pstree it seems that the website has packed up and gone forever. Luckily I still had a copy of a source archive for a recent version (2.27), possibly the latest. Seeing as it's redistributable under the GPL I have placed a copy here. To build it, you would follow a procedure like this one:
# get the source wget https://wincent.dev/gpl/pstree-2.27.tar.gz
# extract tar zxvf pstree-2.27.tar.gz cd pstree
# build gcc -O -o pstree pstree.c
# install sudo install pstree /usr/local/bin/pstree
Or a slight variation of this; building a Universal Binary by combining a previously built PowerPC executable, pstree, with a newly built Intel executable:
mv pstree pstree.ppc
# build gcc -O -o pstree.i386 pstree.c
# make a Universal Binary lipo -arch ppc pstree.ppc -arch i386 pstree.i386 -output pstree -create file pstree
# install sudo install pstree /usr/local/bin/pstree
pwgen
# get the source wget "http://ovh.dl.sourceforge.net/sourceforge/pwgen/pwgen-2.05.tar.gz"
# extract tar xzvf pwgen-2.05.tar.gz cd pwgen-2.05
# configure and build ./configure make
# test ./pwgen
# install sudo make install
ee
# get the source wget http://www.users.qwest.net/~hmahon/sources/ee-1.4.2.src.tgz
# extract tar xzvf ee-1.4.2.src.tgz cd easyedit/
# build make
# install sudo make install
aee
# get the source wget http://www.users.qwest.net/~hmahon/sources/aee-2.2.3.tar.gz
# extract tar zxvf aee-2.2.3.tar.gz cd aee-2.2.3/
# make both aee (normal) and xae (for use in X11) make both
# install sudo make install
Apache 2
# get the source wget http://apache.gva.es/httpd/httpd-2.0.58.tar.bz2
# extract tar xjvf httpd-2.0.58.tar.bz2 cd httpd-2.0.58/
# workaround APR bug (see Subversion ac_cv_func_poll=no; export ac_cv_func_poll
# configure and build ./configure --prefix=/usr/local/apache2 --enable-dav --enable-so --enable-ssl --enable-deflate make
# install sudo make install
Subversion
# get the source wget http://subversion.tigris.org/downloads/subversion-1.3.2.tar.bz2
# extract tar xjvf subversion-1.3.2.tar.bz2 cd subversion-1.3.2/
# set-up for access via Apache sudo mkdir -p /usr/local/apache2/var/dav echo 'svn::200:200::0:0:Subversion:/var/empty:/usr/bin/false' | sudo niload -v passwd / echo 'svn:*:200:svn' | sudo niload -v group / sudo chown svn:svn /usr/local/apache2/var/dav
# workaround APR bug (see Subversion FAQ) ac_cv_func_poll=no; export ac_cv_func_poll
# configure and build sh ./autogen.sh ./configure --with-apxs=/usr/local/apache2/bin/apxs make
# test make check
# install sudo make install
It's then necessary to make some changes to /usr/local/apache2/conf/httpd.conf so it will work with Subversion:
219c219 < Listen 80 --- > Listen 8080 233a234,236 > LoadModule dav_svn_module modules/mod_dav_svn.so > LoadModule authz_svn_module modules/mod_authz_svn.so > 267,268c270,271 < User nobody < Group #-1 --- > User svn > Group svn 358,359c361,362 < Order allow,deny < Allow from all --- > Order deny,allow > Deny from all 994a998,1007 > <Location /svnrep> > DAV svn > SVNParentPath /Users/wincent/Developer/svnrep > AuthType Basic > AuthName "Subversion repository" > AuthUserFile /Users/wincent/Developer/svnrep-auth > Require valid-user > Order deny,allow > Allow from all > </Location>
Finally we can start up Apache:
sudo /usr/local/apache2/bin/apachectl start
I found it was unnecessary to set up a start-up item to launch Apache 2 at boot time because it was correctly transferred across by the migration assistant. I did, however, need to add this line back into /etc/hostconfig:
WEBSERVER2=-YES-
Posted by wincent at June 2, 2006 04:20 AM