Go Back   Visual Numerics Forums > Technical Support > PyIMSL Studio
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

PyIMSL Studio Product support and feedback for PyIMSL Studio

Instructions for nonstandard PyIMSL Studio installation

Reply
 
Thread Tools Display Modes
  #1  
Old 01-29-2010, 05:25 PM
Steve's Avatar
Steve
Junior Member
 
Join Date: Aug 2005
Posts: 24
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 agreements
Select your platform
Select "Use Existing Python installation"
Select the path to your Python directory
Select a new directory for components that are installed outside of Python (the IMSL library, docs, etc)
Select the Install Set "PyIMSL Studio Required Files" which includes Studio Core, PyIMSL 1.5 and Numpy.
(Note: If you already have Numpy installed you can uncheck it)
Continue to install
5. 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
Reply With Quote
  #2  
Old 02-02-2010, 04:15 PM
Steve's Avatar
Steve
Junior Member
 
Join Date: Aug 2005
Posts: 24
Ubuntu Specific Instructions

There are two ways of using PyIMSL Studio on Ubuntu:
  1. Install and run the complete PyIMSL Studio suite of tools,
  2. or just install the PyIMSL wrappers for the IMSL libraries into the default Python/numpy that is included in Ubuntu
Both are described below. These instructions were tested with PyIMSL Studio 1.5 and Ubuntu 9.10 (Karmic) on an Intel x86 platform.

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
You can now source the /opt/pyimsl/pyimsl_setup.csh or /opt/pyimsl/pyimsl_setup.sh scripts as described in the PyIMSL Studio installation instructions and run Python from this installation. Use this command to test your installation:
Code:
python –m imsl.test
Note: The only component that will not run correctly on Ubuntu is Eclipse. You can install this manually as follows from a shell prompt:
Code:
sudo apt-get install eclipse-platform
Type “eclipse” then select Help -> Install New Software
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
Select Apply and you should now be able to access the PyIMSL routines from Eclipse.


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 .
You can now remove the Python that was installed with PyIMSL Studio (but be sure to leave the imsl directory as that is where the IMSL Library components are installed):
Code:
cd /opt/pyimsl
rm –rf Python2.5
In order to access the IMSL libraries from Python you need to set up the following two environment variables. The instructions below will perform this for both Borne and C shell environments (again assuming the install path used above was /opt/pyimsl):

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
Now edit the file .bashrc and add these two commands:
Code:
export LICENSE_DIR=/opt/pyimsl/imsl/license
export LD_LIBRARY_PATH=/opt/pyimsl/imsl/lib:/pyimsl/imsl/mkl
Open a new shell and use this command to test your installation:
Code:
python –m imsl.test
You can easily install many other open source packages such as wxPython and matplotlib into the default Ubuntu Python by using the Ubuntu Synaptic Package Manager tool.

Last edited by Steve : 04-12-2010 at 04:47 PM.
Reply With Quote
  #3  
Old 02-09-2010, 05:03 PM
Steve's Avatar
Steve
Junior Member
 
Join Date: Aug 2005
Posts: 24
Suse Specific Instructions

There are two ways of using PyIMSL Studio on Suse/openSuse Linux:
  1. Install and run the complete PyIMSL Studio suite of tools,
  2. or just install the PyIMSL wrappers for the IMSL libraries into the default Python/numpy that is included in Suse
Both are described below. These instructions were tested with PyIMSL Studio 1.5 and Suse 10.0 and openSuse 11.2 on Intel platforms.

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
You can now source the /opt/pyimsl/pyimsl_setup.csh or /opt/pyimsl/pyimsl_setup.sh scripts as described in the PyIMSL Studio installation instructions and run Python from this installation. Use this command to test your installation:
Code:
python –m imsl.test
Note: The only component that will not run correctly on Suse is the Eclipse IDE (if you wish to use it instead of IPython or a simple shell console). You can install this manually through the YaST2 utility.
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  .
You can now remove the Python that was installed with PyIMSL Studio (but be sure to leave the imsl directory as that is where the IMSL Library components are installed):
Code:
cd /opt/pyimsl
rm –rf Python2.5
In order to access the IMSL libraries from Python you need to set up the following two environment variables. The instructions below will perform this for both Borne and C shell environments (again assuming the install path used above was /opt/pyimsl):

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
Now edit the file .bashrc and add these two commands:
Code:
export LICENSE_DIR=/opt/pyimsl/imsl/license
export LD_LIBRARY_PATH=/opt/pyimsl/imsl/lib:/pyimsl/imsl/mkl
Open a new shell and use this command to test your installation:
Code:
python –m imsl.test
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump



All times are GMT -5. The time now is 02:59 PM.

|  CONTACT US  |   WWW.VNI.COM  |   ARCHIVE  |   PRIVACY  |   TOP
CompanyProducts & ServicesSolutionsSuccessesSupportDownloads
© Copyright 2007 Visual Numerics, Inc. All Rights ReservedLegalPrivacy