How to install Math-Lapack
- Download and install ActivePerl
- Open Command Prompt
- Type
ppm install Math-Lapack
Perl 5.8 | Perl 5.10 | Perl 5.12 | Perl 5.14 | Perl 5.16 | Perl 5.18 | Perl 5.20 | Perl 5.22 | Perl 5.24 | |||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows (32-bit) | n/a | n/a | n/a | n/a | n/a | n/a | n/a | ||||||||||
Windows (64-bit) | n/a | n/a | n/a | ||||||||||||||
Mac OS X | n/a | n/a | n/a |
| |||||||||||||
Linux (x86, 32-bit) | n/a | n/a | n/a | n/a | n/a | n/a | n/a | ||||||||||
Linux (x86, 64-bit) | n/a | n/a | n/a |
|
| ||||||||||||
Solaris (SPARC, 32-bit) | n/a | n/a | n/a | n/a | n/a | n/a | n/a | ||||||||||
Solaris (SPARC, 64-bit) | n/a | n/a | n/a | n/a | n/a | n/a | n/a |
Installing Plumed. Plumed is an exiting “new” rare-event code that is an open source library for free energy calculations in molecular systems which works together with some of the most popular molecular dynamics engines.
Links
Author
The best procedure I found until now is using macports, if you try other routes (Enthought Canopy, using default python install, fink) you are on your own, and you will need quite some savvy on installing and compiling software for Mac OS X to get it working! Download and install the macports installation from www.macports.org. 'There was a problem installing Mac OS X. Try reinstalling'. In the install log there are two errors, but I think they are normal, because the instalation process want to find a partition with MacOS Server. The errors are: Failed to locate volume with UUID AA4-B662-C0760B37587D. Couldn't find Mac OS X (Server) install data. On Mac OS X (version 10.3 or later) LAPACK is built-in, but on other platforms, the C port of LAPACK, called CLAPACK, must be installed for PHAST to be fully functional. Install PHAST using Binaries Compiling PHAST from Source. 17 thoughts on “ HowTo: Install LAPACK and BLAS on Mac OS ” Niclas Berlin on August 15, 2013 at 6:35 pm said: The command “ar rv libblas.a.” does not work for me.
Lastest release
Question or issue on macOS:
I’m trying to install matplotlib for graphing applications in Python on Mac OS X. When I run “python setup.py install”, it gives me this load of errors: http://pastebin.com/u7fL37ic.
A quick snippet:
I installed freetype using MacPorts, and I thought that would fix the issue, but no luck. Gives me same error as before. It looks like it can’t find the right freetype files:
Where should I put the freetype files so that they can be found? Right now they’re in /opt/local/lib
Any ideas?
How to solve this problem?
Solution no. 1:
you may also consider using the Enthought distribution (which comes even free for non-commercial usage)
It comes fully installed without any difficulty
http://www.enthought.com/products/getepd.php
(I have no relationship with Enthought whatsoever – I’m just a satisfied user)
Solution no. 2:
The root of the problem is that freetype and libpng are installed in non-canonical locations by XCode, in /usr/X11 instead of /usr or /usr/local.
All of the answers already given address the problem by re-building freetype and libpng, either manually or using a package manager like homebrew.
Mac Os X El Capitan
You can, however, get matplotlib to compile by simply symlinking the existing freetype/libpng headers and libraries into the /usr/local tree with:
I prefer to build python packages with pip, so I would then use:
If you don’t already have pip, you can install it with easy_install (which comes with OS X):
I’ve only tested this on 10.7 (Lion) but I suspect it will also work with 10.6.
It is a little bit of a hack, but I’ve found it to be the easiest way to get matplotlib installed against the stock python framework that ships with OS X. The stock python framework in 10.7 is actually pretty good, and includes, for instance, a numpy-1.5.1 package that is linked against Apple’s optimized BLAS library (Accelerate):
Solution no. 3:
Old, but still popped up in my search when I had the same problem on Snow Leopard.
You said you were using homebrew, so you need to
after installing it (with “brew install freetype”).
This got through that error. I had do the same thing with libpng, which resulted in a successful install.
Solution no. 4:
I was given a new work computer recently (MacBook Pro OS 10.6.5), and wanted to install numpy + scipy + matplotlib in a Python virtual environment. I’m not an expert, but the virtual environment seems to allow you to install packages such that they are isolated from the system-wide packages, essentially by redefining the system path in a clever way. So, for one project I am working on that requires certain versions of these packages, I can install them once and do all of my work for that project there, independently of other changes I make outside the environment.
After a lot of trial and error, I was able to build a virtual environment with Numpy 1.5.1, Scipy 0.8.0, and Matplotlib 1.0.0 all running flawlessly. Here’s how:
First, install the following four packages:
- freetype-2.4.4
- libpng , version 1.4.5 found at http://ethan.tira-thompson.org/Mac_OS_X_Ports.html. Installation of matplotlib failed when I tried to install 1.5.0 from source!
- pkg-config , version 0.23
- virtualenv for Python2.6
(I’m a new user so I can’t post links to these, sorry!).
If you install from source, use a standard install:
- $ ./configure
- $ make
- $ sudo make install
Next, download the source files for numpy, scipy, and matplotlib.
Now it’s time to create a virtual environment in folder TESTENV:
$ virtualenv /path/to/dir/TESTENV
Activate the virtual environment:
$ source . /path/to/dir/TESTENV/bin/activate
Now, python packages will be installed within TESTENV as if it were the root installation directory. What worked for me was to execute:
$ python setupegg.py install
in the numpy, scipy, and matplotlib source folders (in that order).
Hope that helps!
Solution no. 5:
Try the instuctions here. My notes here.
Solution no. 6:
I was having the same problem when trying to install matplotlib. After trying some of the above solution, I just ran
then, the installation went well until it ran into a png.h not found. I ran
The installation finished and matplotlib was installed.
(on os X 10.8.4)
Solution no. 7:
Here’s how I did it:
This will install it in /lib/python2.6/site-packages
, just move its contents to /Library/Python/2.6/site-packages/
for consistency.
Solution no. 8:
I got a similar error – you’re missing the development files for libfreetype – on my linux machine – this is libfreetype6-dev
After I installed this pip did it’s job.
Solution no. 9:
Running into this every time I build matplotlib. My solution:
Installing Lapack On Mac Os X 10.10
Solution no. 10:
I would highly recommend the StrongInference Scipy Superpack. It works with the built-in Apple supplied Python on 10.6 Snow Leopard, and this is now working with 10.9. It’s friendly to both 32-bit and 64-bit installs. It does not require installing a separate Python distribution or package managers like Macports or Fink.
Use it by first downloading the shell script from this page. Then:
Or, replace superpack_10.6_2011.03.07.sh
with the name of the latest shell script as they update it from time to time.
To use it, make sure you type in ipython and not python!