So I have my shiny new MBP and used Migration Assistant to copy my old Macbook over. For the most part this worked - all the folders and apps are there. But Latex, Miriad and Karma (all I've discovered so far) are dead and buried.
The old fix for getting Miriad to work (zipping up a functioning package of Miriad, untarring and changing the .bash_profile) is not working anymore and I'm baffled as to why. This is the code that was added on my old computer:
It's not having any effect at all! Still says command not found. Karma on the other hand seems to think it's working (as does Gaia/Starlink) but when I try to open them, they just hang there for ages - kvis eventually opens but it takes a long time! I'm not sure if Gaia will open at all.
Any suggestions people can offer would be much appreciated. The documentation in all cases for installing these packages is painful to say the least.....
Last Edit: Apr 10, 2011 19:47:39 GMT 10 by rhobslein
Hi, Is the path in your MIRRC.sh file correct? I'd be interested to know how you solve this as I will be having exactly the same problem in a few weeks. Also, can you tell me what is migration assistant, where do you get it and how do you use it? Cheers
Yeah the path was right - that approach was fine for my old computer but the Miriad tarball I transferred along with the rest of the data probably wasn't compatible with the new OS for various reasons. I was rather frustrated last night but I guess it works out if you just keep trying everything In the end, I followed the instructions here for Miriad:
and downloaded the tarball for Snow Leopard (miriad_mac10.6_gfortran.tar.gz) from the Carma website (ftp://ftp.astro.umd.edu/progs/carma/). Here are the tips for installing from here, but the website above does cover most of them:
Copy the tarball into your /usr/local/ folder.
Unpack it using: sudo tar zxf miriad_mac10.6_gfortran.tar.gz
This will make a new directory called 'miriad'. Change to that directory and run the command: sudo install/make_miriad_starts
If all goes well you will see something like this: Testing for MIR4 Found MIR=/usr/local/miriad hosttype=darwin make_miriad_starts: using MIR=/usr/local/miriad CARMA style
Change to your ~/ directory and open the .bash_profile file. If you don't have one, make it. A basic included text editor from the terminal is pico.
Add the following line to your profile file: source /usr/local/miriad/miriad_start.sh
Now it should recognise the Miriad command if you type 'miriad' in the terminal. It probably will still die saying:
dyld: Library not loaded: /usr/local/lib/libgfortran.3.dylib Referenced from: /usr/local/miriad/bin/darwin/fits Reason: image not found
Make sure you have some version of gfortran installed or you will get this error! The main problem in my case I think was that the gfortran libraries from my old Mac migrated over to the new one, and most of the .dmg or .mpkg executables don't change those libraries. Bit annoying but I updated my gfortran by removing the old installation and doing the following steps:
Download the common distribution tarball (karma.share-v1.7.25.tar.gz).
Download the distribution relative to your platform(amd64_Linux_libc6.3-v1.7.25.tar.gz).
Copy both files to your /usr/local/ directory.
Unpack both files: sudo tar xvf karma.share-v1.7.25.tar sudo tar xvf amd64_Linux_libc6.3-v1.7.25.tar
Test opening kvis in a new terminal window.
So after all that, Miriad works fine now, and kvis too (it oddly takes a while to load but loads faster on the CSIRO network cables which is very strange, and gives me this weird error about some X server not being found). There are probably other (better) ways to go about it but this worked for me, and hopefully for you too! If you have any difficulties let me know, I might have either had them myself (quite possible) or read a forum about it >.<
p.s. I posted about Migration Assistant in the Macintosh section
Last Edit: Mar 16, 2011 13:03:21 GMT 10 by rhobslein
Post by geoffgrimwood on Mar 16, 2011 18:36:40 GMT 10
Thanks for the post. I was about to ask about karma on shiny new macs. I've just moved from linux to mac. I was confused about whether I should try the powerppc build as intel mac can apparently run these executables using rosetta.
I used miriad from macports. It compiled and installed OK but I haven't got around to using it. This means the macports thing did pgplot and all the other annoying bits and pieces for me.
If I come up against other niggles and fixes I'll post.
Thanks for the input! I did see a prompt about Rosetta and installed it but the incompatible gfortran libraries from my old mac killed everyrhing anyway lol. Cool that you used macports, definitely post on how it works out and if there are any bugs
Hey guys, I'd just like to point out that MIRIAD has a handy script somewhere called mirsync. This will allow MIRIAD to update itself. I believe it uses rsync to do so and hence only replaces files that need replacing. Saves a complete reinstall...
I'll post again tomorrow with more details... if I remember Jay