← Back to team overview

oship-dev team mailing list archive

Mac install attempt - part 3

 

Hi all,
  Many things happened since my last message:

- I subscribed to the ADC (Apple Developer Connection) to update my Xcode from 1.1 (the DVD version) to 1.5 (the last MacOSX 10.3 "Panther" compatible version);

- I installed the "Panther" version of Fink, just to discover that 2.4 is the last Python available for it;

- I experimented with two "very" alternative ways: (1) dual booting Ubuntu & OSX (http://chamblandes.tuxfamily.org/installationMac/preparatifs1.html for PowerPC, https://help.ubuntu.com/community/MactelSupportTeam/AppleIntelInstallation for MacIntel) and (2) running Ubuntu-i386 inside OSX, using an emulator (http://trac.kju-app.org/wiki/UbuntuEdgyEft) [both work fine -- only the emulator is somewhat slow, depending on your machine];

- I found the MacPorts project (http://www.macports.org/index.php), that works exactly like Fink/apt-get but is much more up-to-date, at least for my 10.3.9 "Panther" system -- it contains not only Python 2.5 (& 2.6, 3.0, 3.1) but also setuptools, bzr, virtualenv etc;

- I borrowed a PowerBook laptop with MacOSX 10.4.11 "Tiger" to carry out some install tests on a "newer" system [MacPorts works well on both];

- I found, at last, that we don't need to reboot to update the PATH variable -- it's enough to relaunch the "Terminal" application :-).

Concerning the Apple Developer Connection: it's possible to subscribe to the ADC for free here: http://developer.apple.com/products/membership.html . Once subscribed, all versions of Xcode can then be downloaded from: https://connect.apple.com/cgi-bin/WebObjects/MemberSite.woa/wa/promo -> Downloads -> Developer Tools. I am giving these details here because (1) MacPorts depends on Xcode to work and (2) a up-to-date Xcode is useful to any "serious" Mac developer, as it comes with the latest GNU gcc, X11 SDK etc.

But the important point is that, by just following the MacPorts install instructions: http://guide.macports.org/ (and using my brand new ADC subscription, when asked), I ended up with everything necessary to proceed. And that's what I did. Regardless whether my MacOSX comes with Python 2.5 pre-installed or not, MacPorts' python25 must be installed because it is an independent version (confined to the /opt/local directory) that is fully compatible with those other packages (setuptools etc) that OSHIP will need later. But now this is a no-brainer. Just type (on a "Terminal"):

sudo port install python25

... to install it. Be warned that this process involves compilation and therefore takes some time (at least on my system). Next step is:

sudo port install python_select
sudo python_select python25

 ... to make the 2.5 version the "default" one. Then just:

sudo port install py25-virtualenv

... as this installs "py25-setuptools" automatically, as a dependency. Next:

sudo port install bzr

... that, in its turn, installs a lot of dependencies (pyrex etc) and takes some time to complete, as well. Last step is:

virtualenv-2.5 --no-site-packages oshipenv

Please note that it's "virtualenv-2.5", and not simply "virtualenv". Anyway, now it's possible to continue straight from OSHIP's faq/391: "cd oshipenv" etc etc. Everything works as expected then.

 To put it simple: MacPorts is the way to go. Cheers,
Roberto.

Roberto Siqueira a écrit :
Hi again,
This week I've been trying to set up a working virtualenv on MacOSX 10.3.9, with no luck. Good news first: a simple reboot solved my PATH problems. Now, when I type "python" on a "Terminal" prompt, it's Python 2.5 (and not 2.3) that shows up. And a simple "sudo easy_install ..." is all that I need to install things. I also found that subscribing to the ADC is free, so anyone can install Xcode on his/her MacOSX, even without a "Restore DVD" at hand. In my case I did, so I could follow the "DVD way": I mounted "DevTools.dmg" from the disk, browsed to the "Packages" folder and installed "DeveloperTools.pkg". This finally gave me the "install_name_tool" command-line utility, which virtualenv depends on. Unfortunately, another error immediately appeared: "install_name_tool" now says that "oshipenv/bin/python" is a "malformed i386 object". I am not even on a MacIntel (i386), but on a PowerPC (ppc)... It's impossible to tell whether these problems with virtualenv are general or specific to my (somewhat outdated) version of MacOSX. Anyway, next week I will try another solution: the X11 compatibility layer (that makes GNU/Linux tools work on MacOSX) and the Fink packaging system (that works much like Debian/Ubuntu "apt-get"). Maybe things will be simpler then.
 Stay tuned,
Roberto.

Roberto Siqueira a écrit :
Hi all,
  I am following OSHIP's faq/391 instructions and performing the actual
MacOSX installation while typing this. The machine I have here is an iMac G4, system version 10.3.9 "Panther" (somewhat old; 10.5 is the last one).

  This version comes with Python 2.3 preinstalled, so I have to install
Python 2.5 first, from here:

http://www.python.org/ftp/python/2.5.4/python-2.5.4-macosx.dmg

No problems with that. It even installs some Mac-oriented stuff as well
(editor, libraries etc). Next step is to get easy_install from:

http://pypi.python.org/pypi/setuptools/0.6c9

  I just follow the MAcOSX instructions. I download:
setuptools-0.6c9-py2.5.egg and type, on a "Terminal":

cd Desktop
sudo sh setuptools-0.6c9-py2.5.egg

It installs fine but (I don't know why) its directory doesn't get included
to the PATH, so now I have to give its full name to: easy_install
virtualenv (it's the next step):

sudo /Library/Frameworks/Python.framework/Versions/2.5/bin/easy_install
virtualenv

I am surely doing something wrong here, because now I have the same PATH
problems with virtualenv. The next step (virtualenv --no-site-packages
oshipenv) thus becomes:

/Library/Frameworks/Python.framework/Versions/2.5/bin/virtualenv
--no-site-packages oshipenv

  This time I get an error: "you must have Apple's development tools
installed". This is the equivalent of the "build-essential" Ubuntu
package, I presume. This link apparently has them:

http://developer.apple.com/tools/xcode/

  but it also says: "In addition to being packaged on the DVD with every
copy of Mac OS X, the latest Xcode developer release is always available
for free to ADC members".
  As I am not an ADC (Apple Developer Connection) member, tomorrow I'll
look for this machine's MacOSX DVD and continue my report.

  See you then,
Roberto.

Hi all,
I'll have a Mac around by Monday (MacOSX version 10.3, IIRC). I'll try
the installation on it then, to see how it goes.
  Best regards,
Roberto.

Roger Erens a écrit :
on 21-5-2009 23:32 Tim Cook wrote:
...
Thanks for your help!
Tim
PS. Any progress on the Windows or Mac installations?  If not File a
bug
report!  :-)
I'll have a look at the Windows story tomorrow. Anybody else, too? I am
also planning on cleaning and splitting up the Installation FAQ into one
for Windows XP/Vista, one for Ubuntu 8.10, and one for Ubuntu 9.04. I'd
like input in order to create corresponding FAQs for Mac OSX and others,
if any...
Best,
Roger




Follow ups

References