tomclegg.net


Diary
Examples
    256-router
    adzap
    apache-double-reverse
    cacti-adodb-php4
    debian-quota
    diskonmodule
    dollarsperbyte
    dynip
    ezmlm-linux
    fbsdhabits
    freebsdclone
    macbook-quantal-sound
    maildirpop3d-awfulhak
    mandy
    md
    mrtg
    net-snmp
    nodefaultroute
    oracle9i
    oracle9i-bsd5
    oracle9i-client
    oracle9i-nat
    php-cgi
    php-commandline
    php-image
    php-kics
    php-mini_httpd
    pinouts
    pizzaperdollar
    plesk-symlink-php
    pxe
    qmail-linux
    qmail-qfilter
    racoon-sonicwall
    redundant-vpn
    rewriterule
    seahorse-workaround
    setting-locale-failed
    smalldog
    snmpv3-cacti
    spamassassin
    squid-tproxy
    supfile
    suse73
    svc-nmbd
    svc-smbd
    svc-smtpd
    switch-virtualbox-virsh
    toyotastereo
    vm
    vn-file
    wmp-invalid
  >xcode-remote-install<
    xen-eth0-renamed
    xen-monowall
    xen3-ubuntu-dapper
    zz-update-grub-fail
Hire Tom
Mostly Mozart
Patches
School
Scrapbook
Software
Telephones




colocation
comments
davidireland
edsgranola
faq
funsites
goodlooking
goodmovies
google-earth-saucy-amd64
houserules
liberating
resume
resume2
scratch
shopping
snacks
todo
university
warisbogus

Xcode remote installation
Posted January 30, 2006

In order to compile and install unix software on your Mac OS X server, you need to install the Apple developer toolkit, "Xcode Tools".

Download Xcode

Set up an Apple Developer Connection account. Log in to http://connect.apple.com/. In the "downloads" box, click "developer tools". Locate a suitable version of Xcode and download it.

  • Once your browser starts downloading, make it tell you the URL it's downloading from. You should be able to download it directly to your server like this:
    cd /tmp && curl 'urlgoeshere' -RO
  • Apparently, if your server is older than 10.4, you have to use Xcode 1.5.
  • It is easy to find Xcode 2.2, which requires OS X 10.4, using Google. Google couldn't find Xcode 1.5, and developer.apple.com couldn't find it either.
  • Version 1.5 is 372 MB. Version 2.2 is 833 MB.
  • MD5 (xcode_tools_1.5_cd.dmg.bin) = cb2dc5bdd04950a53b2783df22636480

Mount the disk image

If you do this from a reattached screen session, you'll get "unable to set up framework server: device not configured." Detach from your screen and start a new one, if you're using a reattached screen.

cd /tmp
mv -i xcode_tools_1.5_cd.dmg{.bin,}
hdutil attach xcode_tools_1.5_cd.dmg
mount

Install the package

cd /Volumes/Xcode\ Tools
installer -verbose -pkg XcodeTools.mpkg -target /

The installer will install the tools, then optimize your system performance for a while. In my case, the installation took 11 minutes. I don't know what kind of server this is; I've never seen it. It seems to have a 40 GB hard disk and 384 MB of RAM.

Unmount the image

umount /Volumes/Xcode\ Tools

Use it

Now you can compile C programs. Hurray!

Thanks

afp548 story about installing the tools

Fascinating OS X 10.3.9 output

sh-2.05b# hdiutil attach xcode_tools_1.5_cd.dmg
Initializing...
Verifying...
Checksumming DDM...

                                 DDM: verified   CRC32 $C5ACB490
Checksumming Apple (Apple_partition_map : 0)...

     Apple (Apple_partition_map : 0): verified   CRC32 $B04DBA08
Checksumming disk image (Apple_HFS : 1)...
..............................................................................

          disk image (Apple_HFS : 1): verified   CRC32 $0EC5249D
Checksumming  (Apple_Free : 2)...

                    (Apple_Free : 2): verified   CRC32 $00000000
Verification completed...
verified   CRC32 $3788FF77
Attaching...
Finishing...
Finishing...
/dev/disk3              Apple_partition_scheme
/dev/disk3s1            Apple_partition_map
/dev/disk3s2            Apple_HFS                       /Volumes/Xcode Tools