Apr 04, 2013 Install Python, NumPy, SciPy, and matplotlib on Mac OS X – Double Click Pen and Pants says: already written a post about installing Python, NumPy, SciPy, and matplotlib on Lion, but it involves a lot of working at the command line, modifying your.bashprofile and.
After installing Lapack and Blas, I tried to install lapack++ with failure from http://switch.dl.sourceforge.net/sourceforge/lapackpp/lapackpp-2.5.2.tar.gz
I type
./configure
![Homebrew Homebrew](/uploads/1/2/6/4/126469691/150317573.png)
while I have libblas.a liblapack.a librefblas.a libtmglib.a in my use/local/lin folder.... Can any one help?
- 2 Contributors
- forum4 Replies
- 379 Views
- 3 Hours Discussion Span
- commentLatest Postby cannon_1
Are you sure you have compatible versions of Blas and Lapack installed? Also, what is the output of ../configure when you run it in the extracted directory for lapack++?
I highly recommend 'setup.sh' script for installing the LightTwinSVM program automatically. It does all the necessary steps for installing the program. However, for some reasons like installation issues using the setup script, you may need to follow installation steps to install the program manually.In this page, a step-by-step guide is written for manual installation of the LightTwinSVM program on Linux and OSX systems.
A note for OSX users: Before proceeding this guide, make sure that Apple XCode is installed on your OSX system.
Support: If you have encountered an error or problem during the building process, please follow the support instructions here to contact the program's maintainer.
Step 1:
First of all, you need to make sure that Python 3.5 or newer is installed on your system. In order to do so, run the following command in the terminal:
If Python 3 is not present on your system, you should be able to find a guide on the internet which explains how to install Python 3 on a particular platform.
Step 2:
Run the following command to clone LightTwinSVM repository to a directory of your interest:
Please keep in mind that for the rest of this guide, it is assumed that your working directory in the terminal is '../LightTwinSVM'.
Step 3:
As mentioned here, LightTwinSVM depends on several Python packages to work. Therefore, you need to make sure that the pip tool is installed on your system for installing required Python packages. Run the following command to check the installation of the pip tool on your system:
If the pip tool is not available on your system, check out its official documentation for the installation procedure. Moreover, it is suggested to update the pip tool to the latest version by running the following command:
Step 4:
To install all the necessary Python packages for LightTwinSVM, run the following command:
Step 5: (For Linux users only)
You need to check that tkinter module is available in your Python 3 distribution. Therefore, run the following command:
If an ImportError is shown, then you have to install tkinter package. Run the following command based on your Linux distribution:
Debian-based Linux distro:
RPM-based Linux distro:
Step 6: (For Linux users only)
In order to compile C/C++ extension modules, you need to check that Python 3 header files and libraries are available on your Linux system. Hence run the following command:
The above command should return a '.cpython-*-linux-gnu.so' extension suffix. If not, you need to install Python 3 dev files. Run the following command based on your Linux distribution:
Debian-based Linux distro:
RPM-based Linux distro:
Step 7: (For Linux users only)
LAPACK library is needed for compiling and linking the LightTwinSVM's C++ extension module. Therefore, you need to make sure that this library is installed on your system. Run the following command in the terminal to check the installation of LAPACK:
The above command should return the path at which LAPACK is installed on your Linux system. Otherwise, you should install LAPACK library by running one of the following commands based on your Linux distribution:
Debian-based Linux distro:
RPM-based Linux distro:
Step 8:
The LightTwinSVM's extension module depends on Armadillo which is a C++ linear algebra library. Therefore, you need to clone Armadillo's repository to have its header files for compilation. Again, make sure that your working directory in the terminal is '../LightTwinSVM'. Now, run the following command to complete this step:
Step 9:
To install the optimizer package for LightTwinSVM, run one of the following commands based on your OS:
Linux:
![Download Download](http://www.ameribras.com.br/utbrrgap/download-box-drive-for-windows-or-mac-box-us-htoubqij.jpg)
OSX:
After the compilation, you may check out whether the optimizer module exists in its own package by running the following command:
Step 10:
This is the last step for running the LightTwinSVM program. To complete the installation process, the 'result' directory should be created for saving spreadsheets containing classification results:
To check that the program works properly, it is highly suggested to run unit tests by executing the following command (however, it is optional and takes several minutes.):
When all the tests are finished, it is expected that the tests are passed with the 'OK' message.
Finally, the LightTwinSVM program can be launched by running the following command in the terminal:
Moreover, a user guide is provided here to help users employ the program for solving their classfication problems.