5/16/2023 0 Comments Gnuplot aquatermAfter all my patch for configure didn't do anything else but add that flag, except maybe to a different location. What I don't understand is why your compiler doesn't find the framework despite -F/opt/local/Library/Frameworks. I could reintroduce the previous patch in MacPorts, but I first need to understand why this approach doesn't work for you.Īn alternative that might work is to set some *FLAGS in the configure.env.Ĭonfigure.cflags-append "-F$" Maybe someone should ask the autotools developers to introduce a macro to search for frameworks on Mac. Eventually they started supporting -with-aquaterm in some very limited way. I tried to convince the upstream to support -with-aquaterm=PATH, but they didn't understand my patch and they thought it was too complicated. I think the "right" solution is to recreate the configure patch But I'm unable to reproduce the failure.Īt least for me running 10.8, Xcode 5.1.1 (but, I think this will be generic since it's a compiler arguments issue rather than OS related).Ĭonfigure:8866: checking for Aquaterm framework presenceĬonfigure:8887: /usr/bin/clang -o conftest -pipe -Os -arch x86_64 -I/opt/local/include -I/opt/local/include -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -F/opt/local/Library/Frameworks -arch x86_64 -L/opt/local/lib -lcerf -framework Foundation -framework Aquaterm conftest.m >&5Ĭonftest.m:32:9: fatal error: 'Aquaterm/AQTAdapter.h' file not found Nevertheless after installing cabal (which itself requires zlib and filepath) hmatrix installs without problems.Replying to configure patch from 4.6.6 was not ported to 5.0.0, so gnuplot now fails to find the Aquaterm header, but does not fail building it just does not support the "aqua" terminal even with the +aquaterm set. Note that the latest version requires cabal 1.2 and the present fink version of ghc (6.6) has lower version. (I have already had the ghc and ghc-bin packages) In short: With minor changes the instructions work for fink. If you're using an xterm, you can also choose to leave GNUTERM unset to use gnuplot's built-in X11 support, which is uglier, but apparently allows rotation of 3D plots using the mouse. You should now be able to build and run examples/plot.hs, and see three nicely anti-aliased plots. If Aquaterm fails to compile, upgrade to the latest version of XCode. To build an example program using GHC, type: On Mac OS X Yosemite and above, vecLib is now called Accelerate. If you have ever installed gnuplot before, please uninstall it first. Go here to download the AquaTerm-1.1.1.dmg then install it. How to install homebrew Before installing gnuplot, you should install Aqua first. To load hmatrix using GHCI, you need to add the directory containing the gsl shared library to your LD_LIBRARY_PATH:Įxport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/local/lib gnuplotaquaterminstall.md First you should have homebrew installed on your mac. You might also have to edit cc-options and ld-options to look in your ports directory: Next, edit hmatrix.cabal to refer to the appropriate versions of BLAS and LAPACK: You can also download it from the darcs repository as follows: The most recent version of hmatrix is available on HackageDB. Did find: /opt/local/lib/libgsl.dylib: mach-o, but wrong architecture) so/.DLL for: gsl (dlopen(/opt/local/lib/libgsl.dylib, 9): Otherwise you'll get the following error when you try to use hmatrix: Sudo port upgrade -enforce-variants gsl +universal If you're using the 32-bit Haskell Platform and your MacPorts installation defaults to 64-bit binaries you want MacPorts to build universal binaries of gsl using: They appear to work fine with hmatrix, though I didn't test very much. LAPACK, however, is already installed on MacOS X 10.4/10.5, namely in the vecLib (10.4) or Accelerate (10.5) frameworks. You can get GSL and BLAS from DarwinPorts: The hmatrix package requires working versions of GSL, BLAS and LAPACK. This may take several hours to bootstrap on a slow machine. No sure why? Assuming that you have uninstalled any other versions of ghc, type: First, you will want to install GHC using MacPorts, not the standalone installers.
0 Comments
Leave a Reply. |