cjlin1/liblinear

Error on 'make' under 'python/' for ubuntu

Opened this issue · 3 comments

Tried to install in a VM running 16.04.1-Ubuntu, got a different error this time:

>>>sudo make
make -C .. lib
make[1]: Entering directory '/usr/local/liblinear-2.21'
g++ -Wall -Wconversion -O3 -fPIC -c -o linear.o linear.cpp
g++ -Wall -Wconversion -O3 -fPIC -c -o tron.o tron.cpp
make -C blas OPTFLAGS='-Wall -Wconversion -O3 -fPIC' CC='cc';
make[2]: Entering directory '/usr/local/liblinear-2.21/blas'
cc -Wall -Wconversion -O3 -fPIC -c dnrm2.c
cc -Wall -Wconversion -O3 -fPIC -c daxpy.c
cc -Wall -Wconversion -O3 -fPIC -c ddot.c
cc -Wall -Wconversion -O3 -fPIC -c dscal.c
ar rcv blas.a dnrm2.o daxpy.o ddot.o dscal.o
a - dnrm2.o
a - daxpy.o
a - ddot.o
a - dscal.o
ranlib blas.a
make[2]: Leaving directory '/usr/local/liblinear-2.21/blas'
if [ "Linux" = "Darwin" ]; then \
        SHARED_LIB_FLAG="-dynamiclib -Wl,-install_name,liblinear.so.3"; \
else \
        SHARED_LIB_FLAG="-shared -Wl,-soname,liblinear.so.3"; \
fi; \
g++ ${SHARED_LIB_FLAG} linear.o tron.o blas/blas.a -o liblinear.so.3
make[1]: Leaving directory '/usr/local/liblinear-2.21'
>>>```

Any hints on how to solve this?

Thanks.

Thanks a lot for the answer, but if it is installed, why do I still get:

import liblinearutil as ll
ImportError: No module named 'liblinearutil'

and

>>> import liblinear
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/liblinear/__init__.py", line 35, in <module>
    raise Exception('LIBLINEAR library not found.')
Exception: LIBLINEAR library not found.

Thanks.