Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lucas0 opened this issue Dec 21, 2018 · 3 comments
Open

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

lucas0 opened this issue Dec 21, 2018 · 3 comments

Comments

@lucas0
Copy link

lucas0 commented Dec 21, 2018

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.
@cjlin1
Copy link
Owner

cjlin1 commented Dec 21, 2018 via email

@lucas0
Copy link
Author

lucas0 commented Dec 21, 2018

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.

@cjlin1
Copy link
Owner

cjlin1 commented Dec 22, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants