Dear Gareth,
thank you for this elegant solution. Unfortunately Apple seems to deliver curve balls (googly) with each new version of OS. The problem was reported from several sites and we made a hotfix available.
https://fileshare-bbio.bruker.com/s/87ttk8fFWwisf3P
Note that it is only meant to be used for TopSpin 4.1.1. Do not run it with older TopSpin installations. Instructions:
1. Download the repair tool at the URL given above and save it as topspin411-macos-makeau.repair.sh.
2. Open a terminal, go to the directory where you saved the file and run "sh topspin411-macos-makeau.repair.sh".
3. You will be prompted to enter the directory of your TopSpin 4.1.1 installation. Either enter a custom installation directory or just press Enter to accept the default of /opt/topspin4.1.1.
4. The script will then patch the TopSpin installation and ask the user to install Xcode to get the files required for makeau. Xcode's installation dialog will open automatically.
Marshall Smith's solution seems to be more elegant as it does not require the installation of the rather hefty XCode package.
The upcoming 4.1.2 will compile AU programs again until Apple springs the next surprise on us.
Best regards
Clemens
On 5/15/2021 9:53 AM, Gareth Morris wrote:
**EXTERNAL EMAIL**
(Apologies for cross-posting, but I thought this might be of wide interest to Mac users)
I was very pleased when Bruker made Topspin freely available to academics, doubly so when this included a Macintosh version, but was just a little disappointed to find that user-written au programmes failed to compile and run in the Mac version. I always meant to try to fix this but never had time, and when the release notes for 4.1.1 included a statement that the problem was caused by a missing library I gave up hope.
Our student Marshall Smith, however, was made of sterner stuff, and has come up with the following fix (for Topspin 4.1.1 only), for those who are happy to use the Terminal command line in MacOS:
1) Install command line tools
In Terminal type: xcode-select --install
2) in the file /opt/topspin4.1.1/exp/stan/nmr/au/makeau
(a) uncomment line 20 (by removing #)
(b) remove -Wl,-lcrt1.o from line 494
3)In /opt/topspin4.1.1/prog/include/lib/libcb.h
(a) change line 28 from #include<values.h> to #include<limits.h>
(b) add lines
#define MININT INT_MIN
#define MAXINT INT_MAX
4) In /opt/topspin4.1.1/prog/include/lib/uni.h
comment out line 182
This works for us with Topspin 4.1.1 on Mojave (10.14.6) and Big Sur (11.0.1). The equivalent changes in Topspin 4.0.8 did not work; we have not tried other OS/TS version combinations.
This recipe is offered with no guarantees - caveat emptor! - and do remember to keep copies of the original versions of make, libc.h and uni.h in case of problems.
Best wishes
Gareth Morris
=============================================
Prof Gareth A Morris FRS
Department of Chemistry, University of Manchester
Oxford Road, Manchester M13 9PL, UK
Tel (0) 161 275 4665
g.a.morris_at_manchester.ac.uk<mailto:g.a.morris_at_manchester.ac.uk>
=============================================
--
==========================================================
Clemens Anklin Ph.D. Vice President
Bruker BioSpin NMR Applications & Training
15 Fortune Drive Phone: 978 667 9580 ext 5144
Billerica MA 01821 twitter: _at_canklin<https://twitter.com/canklin>
web: www.bruker.com<http://www.bruker.com/mr> e-mail: clemens.anklin_at_bruker.com<mailot:clemens.anklin_at_bruker.com>
==========================================================
Now is the best time to learn something new!<
https://www.bruker.com/en/landingpages/bbio/world-class-bruker-nmr-trainings-2021.html>
==========================================================
Received on Sat May 15 2021 - 14:42:41 MST