I Know this is more of a linux issue but someone has done it so I though you might lend a hand or point me in the right direction. First, I am a linux newbie when it comes to installing software.

I am trying to install (I am a newbie) Numeric-24.2.tar.gz.

Now when I have correctly moved the file in /usr/bin/, when I try to:

[root@ip-XXX.XXX.XX.XXX bin]# rpm -Uvh Numeric-24.2-1.i586.rpm
error: Failed dependencies:
python-base >= 2.4 is needed by Numeric-24.2-1.i586
libg2c.so.0 is needed by Numeric-24.2-1.i586

I tried to install python2.4.1.3 and it said 2.4.1.6 was already installed. I restarted the server, tried it again and it showed it was missing the same things:
[root@ip-XXX.XXX.XX.XXX bin]# rpm -Uvh Numeric-24.2-1.i586.rpm
error: Failed dependencies:
python-base >= 2.4 is needed by Numeric-24.2-1.i586
libg2c.so.0 is needed by Numeric-24.2-1.i586

Any ideas how to get these two dependencies?

Comments

kyle_mathews’s picture

If you are on a debian-based system you get just install Numeric using the package system -- sudo apt-get install python-numeric. That's by far the easiest way to make sure all the dependencies are satisfied. Other Linux distributions have package managers as well which install software automatically handling dependancies.

webdev2’s picture

It is centos 5 which is essentially RHEL5. I am trying to figure out to do it with rpms. I guy recommended the -noDeps tag but won't I need it?

kyle_mathews’s picture

Another thought, you could try install python-numeric from source -- download the tar.gz file from sourceforge and unpack the files and run the install file python setup.py install (I think -- that's generally how python apps install).

webdev2’s picture

I started that way and ROYALLY screwed it up. I think I am on track. I am REALLY excited about using it whenever I can get past my linux ignorance.

Thanks for your work on this!

luchandy’s picture

hi there webdev2,

Here are the packages I used to successfully install Memetracker on CentOS 5 (RedHat Enterprise Linux 5):

The following Python packages have rpm's available, so no need to compile:

# yum install python python-devel python-numpy python-numeric

Python Cluster does not have an rpm, so we have to compile:

Get the source:
# wget http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/software/cluster/cluster-1.41.t...

Uncompress:
# tar -xvzf cluster-1.41.tar.gz

Now install it:
# cd cluster-1.41
# python setup.py install

Let's verify it works:

# python
>> from Pycluster import *

(You will get your Python prompt back if you have your Python stuff installed correctly.)

webdev2’s picture

many thanks for the great instructions. I'll give it a try as soon as I am thru with current project. Thanks again!!

luchandy’s picture

Assigned: Unassigned » luchandy
webdev2’s picture

luchandy’s picture

Hi there webdev,

It looks like the URL might be getting cutting off.

bonsai.ims.u-tokyo.ac.jp/~mdehoon/software/cluster/cluster-1.41.tar.gz

is the full URL.

webdev2’s picture

thanks, when I try that URL, it displays:

Not Found
The requested URL /~mdehoon/software/cluster/cluster-1.41.tar.gz was not found on this server.

kyle_mathews’s picture

Go here [http://bonsai.ims.u-tokyo.ac.jp/~mdehoon/software/cluster/software.htm#p... then click on the "Pycluster Source Distribution" link. 1.42 seems to be the latest version.

webdev2’s picture

Kyle - I get as far as the install now. Instead of installing cluster, it installs Pycluster-1.42. So I:

# cd Pycluster-1.42
# python setup.py install

and get the following error:
Traceback (most recent call last):
File "setup.py", line 8, in ?
import numpy
ImportError: No module named numpy

Do I have to install another package to get this one to work?

kyle_mathews’s picture

Hmm. . . it seems Pycluster then has changed its dependancy from Python-numeric to Python-numpy. That's a good thing actually as Numpy replaced Numeric a number of years ago. I'll need to update my instructions for the next release. In the meantime you'll need to install python-numpy either via your package-manager or manually get the source here.

luchandy’s picture

webdev2,

Did you do the step above where I noted:

# yum install python-numpy

webdev2’s picture

Huraay!!!! got to the point of the
# python
>> from Pycluster import *

working.

Now to the fun part of getting the module to work.

Many many thanks!!

luchandy’s picture

Status: Active » Closed (fixed)

Woot!! Great work.

kyle_mathews’s picture

cool deal! Excited to see what you come up with.