-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Hi,
I am using an iMac with El Capitan and the compilation seems to go wrong.
I have carefully followed your tutorial. I added the line HAVE_LIBLBFGS=1 in the file $SRILM/common/Makefile.machine.macosx. However it is not working at all. Please let me know if there's anything missing in my description. Thanks in advance.
The log of the error is shown below:
$ make
python2.7 -m unittest discover -v tests/
test_discount (unittest.loader.ModuleImportFailure) ... ERROR
test_maxent (unittest.loader.ModuleImportFailure) ... ERROR
test_ngram (unittest.loader.ModuleImportFailure) ... ERROR
test_stats (unittest.loader.ModuleImportFailure) ... ERROR
test_vocab (unittest.loader.ModuleImportFailure) ... ERRORERROR: test_discount (unittest.loader.ModuleImportFailure)
ImportError: Failed to import test module: test_discount
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/lucasrodes/Documents/Exercise_2/srilm/srilm-python/tests/test_discount.py", line 2, in
import srilm.vocab
ImportError: dlopen(srilm/vocab.so, 2): Symbol not found: _iconv
Referenced from: srilm/vocab.so
Expected in: flat namespace
in srilm/vocab.soERROR: test_maxent (unittest.loader.ModuleImportFailure)
ImportError: Failed to import test module: test_maxent
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/lucasrodes/Documents/Exercise_2/srilm/srilm-python/tests/test_maxent.py", line 2, in
import srilm.vocab
ImportError: dlopen(srilm/vocab.so, 2): Symbol not found: _iconv
Referenced from: srilm/vocab.so
Expected in: flat namespace
in srilm/vocab.soERROR: test_ngram (unittest.loader.ModuleImportFailure)
ImportError: Failed to import test module: test_ngram
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/lucasrodes/Documents/Exercise_2/srilm/srilm-python/tests/test_ngram.py", line 2, in
import srilm.vocab
ImportError: dlopen(srilm/vocab.so, 2): Symbol not found: _iconv
Referenced from: srilm/vocab.so
Expected in: flat namespace
in srilm/vocab.soERROR: test_stats (unittest.loader.ModuleImportFailure)
ImportError: Failed to import test module: test_stats
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/lucasrodes/Documents/Exercise_2/srilm/srilm-python/tests/test_stats.py", line 2, in
import srilm.vocab
ImportError: dlopen(srilm/vocab.so, 2): Symbol not found: _iconv
Referenced from: srilm/vocab.so
Expected in: flat namespace
in srilm/vocab.soERROR: test_vocab (unittest.loader.ModuleImportFailure)
ImportError: Failed to import test module: test_vocab
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 254, in _find_tests
module = self._get_module_from_name(name)
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
import(name)
File "/Users/lucasrodes/Documents/Exercise_2/srilm/srilm-python/tests/test_vocab.py", line 2, in
import srilm.vocab
ImportError: dlopen(srilm/vocab.so, 2): Symbol not found: _iconv
Referenced from: srilm/vocab.so
Expected in: flat namespace
in srilm/vocab.soRan 5 tests in 0.012s
FAILED (errors=5)
make: *** [test] Error 1