|
|
|
|
|||||||
| PyIMSL Studio Product support and feedback for PyIMSL Studio |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
Instructions for nonstandard PyIMSL Studio installation
If you have an existing Python installation and only wish to install the components for accessing the IMSL Numerical Library (which includes the PyIMSL wrappers and IMSL library components), follow the instructions below. These have been tested with user installed python distributions and commercial distributions from Enthought and ActiveState on the PyIMSL supported Windows and Red Hat platforms. These instructions are not for python distributions included with the operating system (such as on many linux distributions). More information will be added for other platforms and linux flavors as details become available.
1. Go to the PyIMSL Studio page: http://www.vni.com/products/imsl/pyi...o/overview.php and click the "Download Now" button 2. Select Your platform and save the zip file (about 260MB). 3. Unzip this file somewhere and run install.bat (windows) or ./INSTALL.sh (Linux) to bring up the installer 4. Make these selections in the installation interface: Go through license agreements5. For Linux only: There are environment variables that need to be set up for PyIMSL and these are usually set up by sourcing pyimsl_setup.sh or pyimsl_setup.csh in the new directory created during installation. The only environment variables you will really need if you have your own python installation are LD_LIBRARY_PATH and LM_LICENSE_FILE which you can configure separately from this script if you wish. 6. You can test that PyIMSL is installed by typing from a python prompt: >>> import imsl.test You should see: IMSL C/Math/Library Version 7.0.0 IMSL C/Stat/Library Version 7.0.0 PyIMSL math/stat libraries were installed properly |
|
#2
|
||||
|
||||
|
Ubuntu Specific Instructions
There are two ways of using PyIMSL Studio on Ubuntu:
1. New Python Install: Run the PyIMSL Studio installation, select the platform “RedHat Enterprise Linux 5 (x86-32)” and select “Create a New Installation”. Install into a new directory, for example /opt/pyimsl. Because PyIMSL Studio was built on Red Hat linux there are a few system shared libraries that are not resolved on Ubuntu. The correct libraries are there but symbolic links with the names expected by some open source components in PyIMSL Studio (wxWidgets and matplotlib) are not included in Ubuntu. You can create these with these commands: Code:
cd /lib sudo ln -s libexpat.so.1.5.2 libexpat.so.0 sudo ln -s libssl.so.0.9.8 libssl.so.6 sudo ln -s libcrypto.so.0.9.8 libcrypto.so.6 Code:
python –m imsl.test Code:
sudo apt-get install eclipse-platform Type “http://pydev.org/updates” for the Work With field and press Add. Type a name for the site like “pydev” and press OK. Select Pydev, press Next, press Next again, Accept the terms of the license, then Finish. You then need to run Eclipse (with the command eclipse) and configure your Python interpreter. In Eclipse, go to Window-> Preferences -> "Interpreter – Python" and click New for Python Interpreter and select /usr/bin/python and press Apply. You may need to do one additional configuration (which does not appear to be required on Red Hat): In Eclipse, go to Window-> Preferences -> "Interpreter – Python" and Select the Environment tab. Select New (or edit if it already exists) and create an environment variable named LD_LIBRARY_PATH. Add these 2 directories to the path (where <pyimsl> is the root installation directory where you installed PyIMSL): Code:
<pyimsl>/imsl/lib:<pyimsl>/imsl/mkl 2. Install just the PyIMSL wrappers and IMSL components into the existing /usr/bin/python that is distributed with Ubuntu: Run the PyIMSL Studio installation, select the RedHat 32 bit platform and select “Create a New Installation” as above. Install into a new directory, for example /opt/pyimsl. (We will remove the components we do not need when we are done.) After installing, we will copy the PyIMSL wrapper python components from the above installation into the Ubuntu default python location for add-on modules: Code:
cd /usr/local/lib/python2.6/dist-packages sudo cp -r /opt/pyimsl/Python25/lib/python2.5/site-packages/imsl . Code:
cd /opt/pyimsl rm –rf Python2.5 Edit the file .cshrc in your home directory and add: Code:
setenv LICENSE_DIR /opt/pyimsl/imsl/license setenv LD_LIBRARY_PATH /opt/pyimsl/imsl/lib:/opt/pyimsl/imsl/mkl Code:
export LICENSE_DIR=/opt/pyimsl/imsl/license export LD_LIBRARY_PATH=/opt/pyimsl/imsl/lib:/pyimsl/imsl/mkl Code:
python –m imsl.test Last edited by Steve : 04-12-2010 at 04:47 PM. |
|
#3
|
||||
|
||||
|
Suse Specific Instructions
There are two ways of using PyIMSL Studio on Suse/openSuse Linux:
1. New Python Install: Run the PyIMSL Studio installation, select the platform “RedHat Enterprise Linux 5 (x86-32)” (or Linux 64 bit) and select “Create a New Installation”. Install into a new directory, for example /opt/pyimsl. Because PyIMSL Studio was built on Red Hat Linux there are a few system shared libraries that are not resolved on Suse. The correct libraries are there but symbolic links with the names expected by some open source components in PyIMSL Studio (wxWidgets and matplotlib) are not included in Suse. You can create these with these commands: Code:
cd /lib <- or /lib64 if on 64 bit sudo ln –s libreadline.so.6 libreadline.so.5 <- Only needed on openSuse sudo ln –s libexpat.so.1.5.2 libexpat.so.0 cd /usr/lib <- or /usr/lib64 if on 64 bit sudo ln -s libssl.so.0.9.8 libssl.so.6 sudo ln -s libcrypto.so.0.9.8 libcrypto.so.6 Code:
python –m imsl.test After installing run eclipse and configure Software Updates to get the PyDev plug-in for Python from http://pydev.org/updates 2. Install just the PyIMSL wrappers and IMSL components into the existing /usr/bin/python that is distributed with Suse: Run the PyIMSL Studio installation, select the appropriate RedHat platform and select “Create a New Installation” as above. Install into a new directory, for example /opt/pyimsl. (We will remove the components we do not need when we are done.) After installing, we will copy the PyIMSL wrapper python components from the above installation into the Suse default python location for add-on modules: Code:
cd /usr/lib/python2.6/site-packages sudo cp -r /opt/pyimsl/Python25/lib/python2.5/site-packages/imsl . Code:
cd /opt/pyimsl rm –rf Python2.5 Edit the file .cshrc in your home directory and add: Code:
setenv LICENSE_DIR /opt/pyimsl/imsl/license setenv LD_LIBRARY_PATH /opt/pyimsl/imsl/lib:/opt/pyimsl/imsl/mkl Code:
export LICENSE_DIR=/opt/pyimsl/imsl/license export LD_LIBRARY_PATH=/opt/pyimsl/imsl/lib:/pyimsl/imsl/mkl Code:
python –m imsl.test |
![]() |
| Thread Tools | |
| Display Modes | |
|
|