|
|
Compiling Dependencies for Mnemosyne 1.0.x on Mac OS X 10.4 and 10.5Since it can get a little difficult, here we will list the steps to compile Mnemosyne on Mac OS X. We're looking for someone to help us build a standalone installer; if you can be of assistance, please contact us. Compiling yourself -the steps
Alternate option- Using Fink (works on 10.4 or earlier, not 10.5/Leopard)Rich shares the following: I've had a lot of success using Fink to install various command line tools into OS X 10.4.11, including newer Python and gcc versions than Apple provides; X11 applications have been more of a mixed bag, but the Mnemosyne install went well with just a couple of tricks. For any who might not know, Fink is a port of the Debian packaging system to OS X. There's a GUI, Fink Commander, which makes dealing with the thousands of packages available a little easier. The GUI isn't very Mac-like and it still helps to know a little bit about how apt-get works; the various functions in the GUI seem a little thrown together and confusing. You also need to enable use of the "unstable" repositories - lots of perfectly usable and stable programs there. Fink puts everything it installs in its own tree under /sw so it doesn't clobber anything else you have. The tricks involve getting Mnemosyne installed and running correctly from there also. I'm just running a G4 so all the compiling took several hours. Also, I'll note that I've read that getting X11 and Fink running correctly on Leopard currently requires some patching. I'm staying with Tiger for a little while yet. That said, I used Fink to install the latest versions of the various Mnemosyne dependencies listed above. Specifically, I used Fink to install from source these packages:
These brought a number of their own dependencies along, which I just let Fink handle; Fink tends to handle dependencies quite intelligently, which is one of the reasons it's such a useful tool. The first thing was to get Mnemosyne to install into /sw/bin. I had to juggle my PATH environmental variable around so /sw/bin was higher in priority than paths to other versions of Python that I have installed. You may not have to do this, depending on what you have installed on your machine. I also, as root, put this symbolic link into /sw/bin: python -> python2.5 Now, running 'python setup.py install' in the folder where I had unarchived Mnemosyne installed the program correctly into /sw/bin using Python 2.5.2. Then I had to edit, again as root, the resulting mnemosyne file and
change the first line from Now I can run Mnemosyne from an Xterm window and it comes up quickly as an X11 app and functions well. The only irritant is that I have to run xclipboard to get Aqua to X11 pasting to work, but I've found that's not unusual with X11 apps on OS X. Mnemosyne does use my Latex installation, which is great. I hope somebody else find this procedure useful; it seemed simpler to me to let Fink do most of the work than to download and compile all the dependencies separately as described in the Mnemosyne documentation. --Rich Alternate Option- Using Macports (Works on 10.5/Leopard)Konrad shares the following: I've managed to install Mnemosyne on Leopard using MacPorts, here's how: Install the XCode development tools from the CD Install macports from http://www.macports.org/ There's an error in the repository, version 4.7.4 of py-sip cannot downloaded. To fix this, edit the port file: $ sudo vim /opt/local/var/macports/sources/rsync.macports.org/release/ports/python/py-sip/Portfile Try to install py-pyqt3 This will fail because an extra patch is needed for Leopard: Try again, this time it should succeed: Install the remaining packages: Install mnemosyne using the python binary from the ports: The binary is now inconveniently installed as: Enjoy! More information can be found on this thread: http://sourceforge.net/forum/message.php?msg_id=4974125 |