Message Boards Message Boards

0
|
4647 Views
|
1 Reply
|
1 Total Likes
View groups...
Share
Share this post:

Pythonika compiling error on Ubuntu 14.04

Posted 10 years ago

I am intalling Pythonika on Ubuntu 14.04. I downloaded the files of Pythonika from the following url. https://github.com/szhorvat/Pythonika.
I was able to compile Pythonika on Ubuntu 12.04 using Makefile.linux. However I got the following error after Ubuntu 14.04 upgrade.
Any help will be appreciated.

Regrads, Yoshihiro Sato

Ubuntu 14.04 64bit;
Mathematica 9.0 for Linux x86 (64-bit) (February 18, 2013)

$ python --version
Python 2.7.6
$ which python
/usr/bin/python

$ make -f Makefile.linux
cc -I/usr/local/Wolfram/Mathematica/9.0/SystemFiles/Links/MathLink/DeveloperKit/Linux-x86-64/
CompilerAdditions -I/usr/include/python2.7/ Pythonika.o Pythonikatm.o -L/usr/local/Wolfram/
Mathematica/9.0/SystemFiles/Links/MathLink/DeveloperKit/Linux-x86-64/CompilerAdditions /usr/local/
Wolfram/Mathematica/9.0/SystemFiles/Links/MathLink/DeveloperKit/Linux-x86-64/CompilerAdditions/
libML64i3.a -lstdc++ -lrt -lpython2.7 -o Pythonika

/usr/bin/ld: /usr/local/Wolfram/Mathematica/9.0/SystemFiles/Links/MathLink/DeveloperKit/Linux-x86- 
64/CompilerAdditions/libML64i3.a(mlnumenv.c.o): undefined reference to symbol 'fmod@@GLIBC_2.2.5'

/lib/x86_64-linux-gnu/libm.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make: *** [Pythonika] error 1 here
POSTED BY: Yoshihiro Sato
Posted 10 years ago

I have succeeded in compiling pythonica on Ubuntu 14.04. I need to add -lpthread -lm to the command line.

##     Ununtu 14.04 
LIBS = -L${LIBDIR} ${LIBDIR}/libML64i3.a -lstdc++ -lpthread -lm -lrt -lpython${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}

Thanks, Yoshihiro Sato

POSTED BY: Yoshihiro Sato
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract