april-org / april-ann

APRIL-ANN toolkit (A Pattern Recognizer In Lua with ANNs). This toolkit incorporates ANN algorithms (as dropout, stacked denoising auto-encoders, convolutional NNs), with other pattern recognition methods as HMMs among others. Additionally, in experimental stage, it is possible to perform automatic differentiation, for advanced ML research.
http://april-org.github.io/april-ann/
Other
74 stars 12 forks source link

Error when compiling in 10.9 #61

Closed guidefreitas closed 10 years ago

guidefreitas commented 10 years ago

macbook:april-ann guilherme$ . configure.sh cd src && /Applications/Xcode.app/Contents/Developer/usr/bin/make DetectOS /Applications/Xcode.app/Contents/Developer/usr/bin/make all SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-ldl -lreadline" make[3]: Nothing to be done for all'. cd src && mkdir -p ../../bin ../../include ../../lib ../../man/man1 ../../share/lua/5.2 ../../lib/lua/5.2 cd src && install -p -m 0755 lua luac ../../bin cd src && install -p -m 0644 lua.h luaconf.h lualib.h lauxlib.h lua.hpp ../../include cd src && install -p -m 0644 liblua.a ../../lib cd doc && install -p -m 0644 lua.1 luac.1 ../../man/man1 make: Nothing to be done forall'. macbook:april-ann guilherme$ make release-macosx lua build_release_macosx.lua Package lua was not found in the pkg-config search path. Perhaps you should add the directory containing `lua.pc' to the PKG_CONFIG_PATH environment variable No package 'lua' found lua: build_release_macosx.lua:41: assertion failed! stack traceback: [C]: in function 'assert' build_release_macosx.lua:41: in main chunk [C]: in ? make: *\ [release-macosx] Error 1

pakozm commented 10 years ago

It is related with the support for homebrew? The building script uses pkg-config to compile the April-ANN shared library with your system Lua installation. If needed, it could be customized for homebrew or MacPorts.

guidefreitas commented 10 years ago

Yes, I'm trying to modify the build_release_macosx.lua script to work with Homebrew but I've got stuck in another error now.

How can I identify what lib is missing/broken? I think it is zlib but tryed to install it with several other ways without luck. Which zlib version are you using?

macbook:april-ann guilherme$ make release-macosx lua build_release_macosx.lua default target: build [ 37/ 38 (97.4%) done]: main_package ./ Undefined symbols for architecture x86_64: "_luaL_addlstring", referenced from: BufferedMemory::readAndPushAllToLua(luaState) in buffered_file.o BufferedMemory::readAndPushAllToLua(luaState) in buffered_gzfile.o BufferedMemory::readAndPushAllToLua(luaState) in bind_gzio.o "_luaL_argerror", referenced from: lua_call_rlcompleterset(luaState) in bind_rlcompleter.o "_luaL_buffinit", referenced from: BufferedMemory::readAndPushAllToLua(luaState) in bufferedfile.o writeMatrixCharToLuaString(Matrix, luaState, bool) in utilMatrixChar.o writeMatrixComplexFToLuaString(Matrix<Complex >_, luaState, bool) in utilMatrixComplexF.o writeMatrixDoubleToLuaString(Matrix_, luaState, bool) in utilMatrixDouble.o writeMatrixFloatToLuaString(Matrix_, luaState, bool) in utilMatrixFloat.o writeMatrixInt32ToLuaString(Matrix_, luaState, bool) in utilMatrixInt32.o BufferedMemory::readAndPushAllToLua(luaState) in buffered_gzfile.o ... "_luaL_callmeta", referenced from: traceback(luaState) in luapkgMain-xwaXUy.o "_luaL_checkany", referenced from: lua_isFILE(luaState, int) in luabindutil.o lua_toFILE(luaState, int) in luabindutil.o "_luaL_checkinteger", referenced from: lua_new_MatrixInt32_bind_matrix_int32(luaState) in bind_matrix_int32.o lua_call_MatrixInt32_copy_from_table(luaState) in bind_matrix_int32.o "_luaL_checklstring", referenced from: lua_new_MatrixChar_bind_matrix_char(luaState) in bind_matrix_char.o lua_call_MatrixChar_copy_from_table(luaState) in bind_matrix_char.o "_luaL_checknumber", referenced from: read_int_sequence(luaState) in bind_rates.o lua_call_rates_ints(luaState) in bind_rates.o lua_call_rates_raw(luaState) in bind_rates.o lua_new_MatrixFloat_bind_matrix(luaState) in bind_matrix.o lua_call_MatrixFloat_copy_from_table(luaState) in bind_matrix.o lua_call_class_MatrixFloat_col_major(luaState) in bind_matrix.o lua_new_MatrixDouble_bind_matrix_double(luaState) in bind_matrix_double.o ... "_luaL_checkstack", referenced from: dotty(luaState) in luapkgMain-xwaXUy.o getargs(luaState, char*_, int) in luapkgMain-xwaXUy.o "_luaL_checkudata", referenced from: io_fclose(luaState) in bind_util.o "_luaLcheckversion", referenced from: pmain(luaState) in luapkgMain-xwaXUy.o "_luaL_error", referenced from: lstop(luaState, luaDebug) in luapkgMain-xwaXUy.o "_luaL_fileresult", referenced from: io_fclose(luaState) in bind_util.o "_luaL_getsubtable", referenced from: _luaopen_aprilann_hmm_trainer in register_package_lua_and_binding_hmm_trainer.o _luaopen_aprilann_mathcore in register_package_lua_and_binding_mathcore.o _luaopen_aprilann_interest_points in register_package_lua_and_binding_interest_points.o _luaopen_aprilann_stats_MI in register_package_lua_and_binding_stats.MI.o _luaopen_aprilann_matlab in register_package_lua_and_binding_matlab.o _luaopen_aprilann_cmdOpt in register_package_lua_and_binding_cmdOpt.o _luaopen_aprilann_rates in register_package_lua_and_binding_rates.o ... "_luaL_len", referenced from: lua_call_SetPoints_addPoint(luaState) in bind_interest_points.o lua_call_ConnectedPoints_addPoint(luaState) in bind_interest_points.o lua_call_TrieVector_search_sequence(luaState) in bind_util.o lua_call_TrieVector_has_sequence(luaState) in bind_util.o lua_call_Trie4lua_find(luaState) in bind_util.o lua_call_MFSet_fromString(luaState) in bind_util.o lua_call_class_MFSet_fromString(luaState) in bind_util.o ... "_luaL_loadbufferx", referenced from: loadline(luaState) in luapkgMain-xwaXUy.o dostring(luaState, char const, char const) in luapkgMain-xwaXUy.o _lua_register_luaopen_aprilann_hmm_trainer in lua_register_luaopen_aprilann_hmm_trainer.o _lua_register_luaopen_aprilann_interest_points in lua_register_luaopen_aprilann_interest_points.o _lua_register_luaopen_aprilann_stats_MI in lua_register_luaopen_aprilann_stats_MI.o _lua_register_luaopen_aprilann_matlab in lua_register_luaopen_aprilann_matlab.o _lua_register_luaopen_aprilann_cmdOpt in lua_register_luaopen_aprilann_cmdOpt.o ... "_luaL_loadfilex", referenced from: handle_script(luaState, char*, int) in luapkgMain-xwaXUy.o dofile(luaState, char const_) in luapkgMain-xwaXUy.o "_luaL_newstate", referenced from: _main in luapkgMain-xwaXUy.o "_luaL_openlibs", referenced from: pmain(luaState) in luapkgMain-xwaXUy.o "_luaLprepbuffsize", referenced from: int writeMatrixToStream<WriteLuaBufferWrapper, char, CharAsciiSizer, CharBinarySizer, CharAsciiCoder, CharBinaryCoder >(Matrix, WriteLuaBufferWrapper&, CharAsciiSizer, CharBinarySizer, CharAsciiCoder, CharBinaryCoder, bool) in utilMatrixChar.o int writeMatrixToStream<WriteLuaBufferWrapper, Complex, ComplexFAsciiSizer, ComplexFBinarySizer, ComplexFAsciiCoder, ComplexFBinaryCoder >(Matrix<Complex >, WriteLuaBufferWrapper&, ComplexFAsciiSizer, ComplexFBinarySizer, ComplexFAsciiCoder, ComplexFBinaryCoder, bool) in utilMatrixComplexF.o int writeMatrixToStream<WriteLuaBufferWrapper, double, DoubleAsciiSizer, DoubleBinarySizer, DoubleAsciiCoder, DoubleBinaryCoder >(Matrix, WriteLuaBufferWrapper&, DoubleAsciiSizer, DoubleBinarySizer, DoubleAsciiCoder, DoubleBinaryCoder, bool) in utilMatrixDouble.o int writeMatrixToStream<WriteLuaBufferWrapper, float, FloatAsciiSizer, FloatBinarySizer, FloatAsciiCoder, FloatBinaryCoder >(Matrix, WriteLuaBufferWrapper&, FloatAsciiSizer, FloatBinarySizer, FloatAsciiCoder, FloatBinaryCoder, bool) in utilMatrixFloat.o int writeMatrixToStream<WriteLuaBufferWrapper, int, Int32AsciiSizer, Int32BinarySizer, Int32AsciiCoder, Int32BinaryCoder >(Matrix, WriteLuaBufferWrapper&, Int32AsciiSizer, Int32BinarySizer, Int32AsciiCoder, Int32BinaryCoder, bool) in utilMatrixInt32.o "_luaL_pushresult", referenced from: BufferedMemory::readAndPushAllToLua(luaState) in bufferedfile.o writeMatrixCharToLuaString(Matrix, luaState, bool) in utilMatrixChar.o writeMatrixComplexFToLuaString(Matrix<Complex >_, luaState, bool) in utilMatrixComplexF.o writeMatrixDoubleToLuaString(Matrix_, luaState, bool) in utilMatrixDouble.o writeMatrixFloatToLuaString(Matrix_, luaState, bool) in utilMatrixFloat.o writeMatrixInt32ToLuaString(Matrix_, luaState, bool) in utilMatrixInt32.o BufferedMemory::readAndPushAllToLua(luaState) in buffered_gzfile.o ... "_luaL_ref", referenced from: april_utils::SignalHandler::register_signal(int) in signal_handler.o "_luaL_requiref", referenced from: _luaopen_aprilann in luapkgMain-xwaXUy.o pmain(luaState) in luapkgMain-xwaXUy.o _luaopen_aprilann_hmm_trainer in register_package_lua_and_binding_hmm_trainer.o _luaopen_aprilann_mathcore in register_package_lua_and_binding_mathcore.o _luaopen_aprilann_interest_points in register_package_lua_and_binding_interest_points.o _luaopen_aprilann_stats_MI in register_package_lua_and_binding_stats.MI.o _luaopen_aprilann_matlab in register_package_lua_and_binding_matlab.o ... "_luaL_setmetatable", referenced from: newfile(luaState) in bind_util.o lua_call_util_pipe(luaState) in bind_util.o lua_call_io_popen2(luaState) in bind_util.o "_luaL_traceback", referenced from: traceback(luaState) in luapkgMain-xwaXUy.o "_luaL_unref", referenced from: april_utils::SignalHandler::release_signal(int) in signal_handler.o "_lua_callk", referenced from: _lua_register_luaopen_aprilann_hmm_trainer in lua_register_luaopen_aprilann_hmm_trainer.o _lua_register_luaopen_aprilann_interest_points in lua_register_luaopen_aprilann_interest_points.o _lua_register_luaopen_aprilann_stats_MI in lua_register_luaopen_aprilann_stats_MI.o _lua_register_luaopen_aprilann_matlab in lua_register_luaopen_aprilann_matlab.o _lua_register_luaopen_aprilann_cmdOpt in lua_register_luaopen_aprilann_cmdOpt.o _lua_register_luaopen_aprilann_rates in lua_register_luaopen_aprilann_rates.o _lua_register_luaopen_aprilann_util in lua_register_luaopen_aprilann_util.o ... "_lua_close", referenced from: _main in luapkgMain-xwaXUy.o "_lua_concat", referenced from: loadline(luaState) in luapkgMain-xwaXUy.o "_lua_createtable", referenced from: _luaopen_aprilann in luapkgMain-xwaXUy.o getargs(lua_State, char, int) in luapkgMain-xwaXUy.o _luaopen_aprilann_hmm_trainer in register_package_lua_and_binding_hmm_trainer.o _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o _bindluaopen_hmm_trainer_bind_hmm_trainer in bind_hmm_trainer.o lua_call_hmm_trainer_get_a_priori_emissions(luaState) in bind_hmm_trainer.o _lua_register_tables_bind_hmm_trainer in bind_hmm_trainer.o ... "_lua_error", referenced from: lua_new_hmm_trainer_model_bind_hmm_trainer(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_print_dot(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_forward_backward(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_print(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_new_state(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_new_transition(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_get_num_states_transitions(luaState) in bind_hmm_trainer.o ... "_lua_gc", referenced from: pmain(luaState) in luapkgMain-xwaXUy.o report(luaState, int) in luapkgMain-xwaXUy.o lua_new_hmm_trainer_model_bind_hmm_trainer(luaState) in bind_hmm_trainer.o lua_delete_hmm_trainer_model_bind_hmm_trainer(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_print_dot(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_forward_backward(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_print(luaState) in bind_hmm_trainer.o ... "_lua_getfield", referenced from: _luaopen_aprilann_hmm_trainer in register_package_lua_and_binding_hmm_trainer.o _luaopen_aprilann_mathcore in register_package_lua_and_binding_mathcore.o _luaopen_aprilann_interest_points in register_package_lua_and_binding_interest_points.o _luaopen_aprilann_stats_MI in register_package_lua_and_binding_stats.MI.o _luaopen_aprilann_matlab in register_package_lua_and_binding_matlab.o _luaopen_aprilann_cmdOpt in register_package_lua_and_binding_cmdOpt.o _luaopen_aprilann_rates in register_package_lua_and_binding_rates.o ... "_lua_getglobal", referenced from: dotty(luaState) in luapkgMain-xwaXUy.o get_prompt(luaState, int) in luapkgMain-xwaXUy.o dolibrary(luaState, char const_) in luapkgMain-xwaXUy.o _luaopen_aprilann_hmm_trainer in register_package_lua_and_binding_hmm_trainer.o _luaopen_aprilann_mathcore in register_package_lua_and_binding_mathcore.o _luaopen_aprilann_interest_points in register_package_lua_and_binding_interest_points.o _luaopen_aprilann_stats_MI in register_package_lua_and_binding_stats.MI.o ... "_lua_getmetatable", referenced from: lua_tohmm_trainer_model(luaState, int) in bind_hmm_trainer.o lua_ishmm_trainer_model(luaState, int) in bind_hmm_trainer.o lua_ishmm_trainer(luaState, int) in bind_hmm_trainer.o lua_tohmm_trainer(luaState, int) in bind_hmm_trainer.o lua_toSetPoints(luaState, int) in bind_interest_points.o lua_isSetPoints(luaState, int) in bind_interest_points.o lua_toConnectedPoints(luaState, int) in bind_interest_points.o ... "_lua_gettable", referenced from: lua_tohmm_trainer_model(luaState, int) in bind_hmm_trainer.o lua_ishmm_trainer_model(luaState, int) in bind_hmm_trainer.o lua_ishmm_trainer(luaState, int) in bind_hmm_trainer.o lua_tohmm_trainer(luaState, int) in bind_hmm_trainer.o _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o lua_call_hmm_trainer_model_forward_backward(luaState) in bind_hmm_trainer.o _bindluaopen_hmm_trainer_bind_hmm_trainer in bind_hmm_trainer.o ... "_lua_gettop", referenced from: dotty(luaState) in luapkgMain-xwaXUy.o docall(luaState, int, int) in luapkgMain-xwaXUy.o lua_new_hmm_trainer_model_bind_hmm_trainer(luaState) in bind_hmm_trainer.o _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o lua_call_hmm_trainer_model_print_dot(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_forward_backward(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_print(luaState) in bind_hmm_trainer.o ... "_lua_insert", referenced from: handle_script(luaState, char, int) in luapkgMain-xwaXUy.o dotty(luaState) in luapkgMain-xwaXUy.o loadline(luaState) in luapkgMain-xwaXUy.o docall(luaState, int, int) in luapkgMain-xwaXUy.o "_lua_isnumber", referenced from: lua_call_hmm_trainer_model_new_transition(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_set_initial_state(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_set_final_state(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_get_transition_probability(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_check_cls_emission(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_get_transition_logprobability(luaState) in bind_hmm_trainer.o lua_call_class_hmm_trainer_from_log(luaState) in bind_hmm_trainer.o ... "_lua_isstring", referenced from: lua_call_hmm_trainer_model_new_transition(luaState) in bind_hmm_trainer.o lua_new_MatFileReader_bind_matlab(luaState) in bind_matlab.o lua_new_MMappedDataReader_bind_util(luaState) in bind_util.o lua_call_MFSet_fromString(luaState) in bind_util.o lua_call_class_MFSet_fromString(luaState) in bind_util.o lua_new_MMappedDataWriter_bind_util(luaState) in bind_util.o lua_call_io_popen2(luaState) in bind_util.o ... "_lua_newuserdata", referenced from: lua_pushhmm_trainer_model(luaState, hmm_trainermodel) in bind_hmm_trainer.o lua_new_hmm_trainer_model_bind_hmm_trainer(luaState) in bind_hmm_trainer.o lua_pushhmm_trainer(luaState, hmmtrainer) in bind_hmm_trainer.o lua_new_hmm_trainer_bind_hmm_trainer(luaState) in bind_hmm_trainer.o lua_pushSetPoints(luaState, InterestPoints::SetPoints_) in bind_interest_points.o lua_new_SetPoints_bind_interest_points(luaState) in bind_interest_points.o lua_pushConnectedPoints(luaState, InterestPoints::ConnectedPoints_) in bind_interest_points.o ... "_lua_next", referenced from: lua_new_MatrixFloatSet_bind_matrix(luaState) in bind_matrix.o check_table_fields(luaState, int, ...) in luabindutil.o "_lua_pcallk", referenced from: _main in luapkgMain-xwaXUy.o dotty(luaState) in luapkgMain-xwaXUy.o docall(luaState, int, int) in luapkgMain-xwaXUy.o docompletion(char const, int, int) in bind_rlcompleter.o "_lua_pushboolean", referenced from: _luaopen_aprilann in luapkgMain-xwaXUy.o pmain(luaState) in luapkgMain-xwaXUy.o _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o _bindluaopen_hmm_trainer_bind_hmm_trainer in bind_hmm_trainer.o _bindluaopen_SetPoints_bind_interest_points in bind_interest_points.o _bindluaopen_ConnectedPoints_bind_interest_points in bind_interest_points.o _bindluaopen_MatTaggedDataElement_bind_matlab in bind_matlab.o ... "_lua_pushcclosure", referenced from: _main in luapkgMain-xwaXUy.o docall(luaState, int, int) in luapkgMain-xwaXUy.o _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o _bindluaopen_hmm_trainer_bind_hmm_trainer in bind_hmm_trainer.o _lua_register_tables_bind_hmm_trainer in bind_hmm_trainer.o _lua_register_tables_bind_mathcore in bind_mathcore.o _bindluaopen_SetPoints_bind_interest_points in bind_interest_points.o ... "_lua_pushfstring", referenced from: dotty(luaState) in luapkgMain-xwaXUy.o pushline(luaState, int) in luapkgMain-xwaXUy.o lua_new_hmm_trainer_model_bind_hmm_trainer(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_print_dot(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_forward_backward(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_print(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_new_state(luaState) in bind_hmm_trainer.o ... "_lua_pushinteger", referenced from: _main in luapkgMain-xwaXUy.o docompletion(char const, int, int) in bind_rlcompleter.o "_lua_pushlightuserdata", referenced from: _main in luapkgMain-xwaXUy.o lua_call_rlcompleterset(luaState) in bind_rlcompleter.o docompletion(char const, int, int) in bind_rlcompleter.o "_lua_pushlstring", referenced from: loadline(luaState) in luapkgMain-xwaXUy.o traceback(luaState) in luapkgMain-xwaXUy.o BufferedMemory::readAndPushStringToLua(luaState, int) in buffered_file.o BufferedMemory::readAndPushLineToLua(luaState) in buffered_file.o lua_call_MFSet_toString(luaState) in bind_util.o lua_call_MatrixFloat_toPNM(luaState) in bind_matrix.o lua_call_MatrixFloat_toHEX(luaState) in bind_matrix.o ... "_lua_pushnil", referenced from: elements_iterator_function(luaState) in bind_matlab.o lua_call_MatTaggedDataElement_get_next_subelement(luaState) in bind_matlab.o lua_call_io_popen2(luaState) in bind_util.o sliding_window_iterator_function(luaState) in bind_matrix.o matrixfloatset_iterator_function(luaState) in bind_matrix.o lua_new_MatrixFloatSet_bind_matrix(luaState) in bind_matrix.o sliding_window_matrixChar_iterator_function(luaState) in bind_matrix_char.o ... "_lua_pushnumber", referenced from: lua_call_hmm_trainer_model_new_state(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_new_cls_transition(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_new_cls_state(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_get_transition_probability(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_get_a_priori_emissions(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_get_transition_logprobability(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_get_num_cls_emissions(luaState) in bind_hmm_trainer.o ... "_lua_pushstring", referenced from: _luaopen_aprilann in luapkgMain-xwaXUy.o pushline(luaState, int) in luapkgMain-xwaXUy.o getargs(luaState, char, int) in luapkgMain-xwaXUy.o dolibrary(luaState, char const_) in luapkgMain-xwaXUy.o _luaopen_aprilann_hmm_trainer in register_package_lua_and_binding_hmm_trainer.o lua_tohmm_trainer_model(luaState, int) in bind_hmm_trainer.o lua_ishmm_trainer_model(luaState, int) in bind_hmm_trainer.o ... "_lua_pushvalue", referenced from: _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o _bindluaopen_hmm_trainer_bind_hmm_trainer in bind_hmm_trainer.o _lua_register_tables_bind_hmm_trainer in bind_hmm_trainer.o _lua_register_tables_bind_mathcore in bind_mathcore.o _bindluaopen_SetPoints_bind_interest_points in bind_interest_points.o lua_call_SetPoints_getComponentPoints(luaState) in bind_interest_points.o _bindluaopen_ConnectedPoints_bind_interest_points in bind_interest_points.o ... "_lua_rawequal", referenced from: lua_isFILE(luaState, int) in luabindutil.o lua_toFILE(luaState, int) in luabindutil.o "_lua_rawget", referenced from: lua_tohmm_trainer_model(luaState, int) in bind_hmm_trainer.o lua_ishmm_trainer_model(luaState, int) in bind_hmm_trainer.o lua_pushhmm_trainer_model(luaState, hmm_trainermodel) in bind_hmm_trainer.o lua_new_hmm_trainer_model_bind_hmm_trainer(luaState) in bind_hmm_trainer.o lua_ishmm_trainer(luaState, int) in bind_hmm_trainer.o lua_tohmm_trainer(luaState, int) in bind_hmm_trainer.o _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o ... "_lua_rawgeti", referenced from: _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o _bindluaopen_hmm_trainer_bind_hmm_trainer in bind_hmm_trainer.o lua_call_class_hmm_trainer_to_log(luaState) in bind_hmm_trainer.o _lua_register_tables_bind_hmm_trainer in bind_hmm_trainer.o _lua_register_tables_bind_mathcore in bind_mathcore.o _bindluaopen_SetPoints_bind_interest_points in bind_interest_points.o lua_call_SetPoints_addPoint(luaState) in bind_interest_points.o ... "_lua_rawlen", referenced from: loadline(luaState) in luapkgMain-xwaXUy.o "_lua_rawset", referenced from: _luaopen_aprilann in luapkgMain-xwaXUy.o _luaopen_aprilann_hmm_trainer in register_package_lua_and_binding_hmm_trainer.o _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o _bindluaopen_hmm_trainer_bind_hmm_trainer in bind_hmm_trainer.o _lua_register_tables_bind_hmm_trainer in bind_hmm_trainer.o _luaopen_aprilann_mathcore in register_package_lua_and_binding_mathcore.o _lua_register_tables_bind_mathcore in bind_mathcore.o ... "_lua_rawseti", referenced from: getargs(luaState, char, int) in luapkgMain-xwaXUy.o lua_call_hmm_trainer_get_a_priori_emissions(luaState) in bind_hmm_trainer.o lua_call_SetPoints_getComponentPoints(luaState) in bind_interest_points.o lua_call_interest_points_extract_points_from_image_old(luaState) in bind_interest_points.o lua_call_interest_points_extract_points_from_image(luaState) in bind_interest_points.o lua_call_MatCellArrayDataElement_compute_coords(luaState) in bind_matlab.o lua_call_MatCellArrayDataElement_dim(luaState) in bind_matlab.o ... "_lua_remove", referenced from: loadline(luaState) in luapkgMain-xwaXUy.o docall(luaState, int, int) in luapkgMain-xwaXUy.o lua_new_hmm_trainer_model_bind_hmm_trainer(luaState) in bind_hmm_trainer.o _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o lua_call_hmm_trainer_model_print_dot(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_forward_backward(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_model_print(luaState) in bind_hmm_trainer.o ... "_lua_setfield", referenced from: pmain(luaState) in luapkgMain-xwaXUy.o lua_call_rates_raw(luaState) in bind_rates.o april_utils::SignalHandler::initialize(luaState) in signalhandler.o void pushHashTableInLuaStack<ANN::ANNComponent, void (_)(luaState, ANN::ANNComponent_)>(luaState, april_utils::hash<april_utils::string, ANN::ANNComponent, april_utils::default_hash_function, april_utils::default_equality_comparison_function >&, void (_)(luaState, ANN::ANNComponent_)) in bind_ann_base.o lua_call_ImageMetrics_get_metrics(luaState) in bind_image_metrics.o "_lua_setglobal", referenced from: handle_script(lua_State, char**, int) in luapkgMain-xwaXUy.o dolibrary(luaState, char const_) in luapkgMain-xwaXUy.o "_lua_sethook", referenced from: laction(int) in luapkgMain-xwaXUy.o lstop(luaState, luaDebug) in luapkgMain-xwaXUy.o "_lua_setmetatable", referenced from: lua_pushhmm_trainer_model(luaState, hmm_trainermodel) in bind_hmm_trainer.o lua_new_hmm_trainer_model_bind_hmm_trainer(luaState) in bind_hmm_trainer.o _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o lua_pushhmm_trainer(luaState, hmmtrainer) in bind_hmm_trainer.o lua_new_hmm_trainer_bind_hmm_trainer(luaState) in bind_hmm_trainer.o _bindluaopen_hmm_trainer_bind_hmm_trainer in bind_hmm_trainer.o _lua_register_tables_bind_hmm_trainer in bind_hmm_trainer.o ... "_lua_settable", referenced from: _bindluaopen_hmm_trainer_model_bind_hmm_trainer in bind_hmm_trainer.o _bindluaopen_hmm_trainer_bind_hmm_trainer in bind_hmm_trainer.o _bindluaopen_SetPoints_bind_interest_points in bind_interest_points.o _bindluaopen_ConnectedPoints_bind_interest_points in bind_interest_points.o _bindluaopen_MatTaggedDataElement_bind_matlab in bind_matlab.o _bindluaopen_MatCellArrayDataElement_bind_matlab in bind_matlab.o _bindluaopen_MatStructureDataElement_bind_matlab in bind_matlab.o ... "_lua_settop", referenced from: _luaopen_aprilann in luapkgMain-xwaXUy.o pmain(luaState) in luapkgMain-xwaXUy.o finalreport(luaState, int) in luapkgMain-xwaXUy.o handle_script(luaState, char__, int) in luapkgMain-xwaXUy.o dotty(luaState) in luapkgMain-xwaXUy.o loadline(luaState) in luapkgMain-xwaXUy.o report(luaState, int) in luapkgMain-xwaXUy.o ... "_lua_toboolean", referenced from: _main in luapkgMain-xwaXUy.o lua_call_hmm_trainer_model_forward_backward(luaState) in bind_hmm_trainer.o lua_call_hmm_trainer_end_expectation(luaState) in bind_hmm_trainer.o lua_call_rates_ints(luaState) in bind_rates.o lua_tobool(luaState, int) in luabindutil.o leer_bool_params(luaState, char const, bool, int) in utilLua.o "_lua_tointegerx", referenced from: pmain(luaState) in luapkgMain-xwaXUy.o "_lua_tolstring", referenced from: finalreport(luaState, int) in luapkgMain-xwaXUy.o dotty(luaState) in luapkgMain-xwaXUy.o loadline(luaState) in luapkgMain-xwaXUy.o report(luaState, int) in luapkgMain-xwaXUy.o traceback(luaState) in luapkgMain-xwaXUy.o incomplete(luaState, int) in luapkgMain-xwaXUy.o get_prompt(luaState, int) in luapkgMain-xwaXUy.o ... "_lua_tonumberx", referenced from: lua_call_hmm_trainer_model_new_transition(luaState) in bind_hmm_trainer.o lua_call_class_hmm_trainer_from_log(luaState) in bind_hmm_trainer.o lua_call_class_hmm_trainer_to_log(luaState) in bind_hmm_trainer.o lua_call_SetPoints_addPoint(luaState) in bind_interest_points.o lua_call_ConnectedPoints_addPoint(luaState) in bind_interest_points.o lua_new_MatrixFloat_bind_matrix(luaState) in bind_matrix.o lua_call_class_MatrixFloat_col_major(luaState) in bind_matrix.o ... "_lua_topointer", referenced from: lua_print_name_instance(luaState) in luabindutil.o "_lua_touserdata", referenced from: pmain(luaState) in luapkgMain-xwaXUy.o lua_rawgethmm_trainer_model_bind_hmm_trainer(luaState, int) in bind_hmm_trainer.o lua_tohmm_trainer_model(luaState, int) in bind_hmm_trainer.o lua_ishmm_trainer_model(luaState, int) in bind_hmm_trainer.o lua_ishmm_trainer(luaState, int) in bind_hmm_trainer.o lua_tohmm_trainer(luaState, int) in bind_hmm_trainer.o lua_delete_hmm_trainer_model_bind_hmm_trainer(luaState) in bind_hmm_trainer.o ... "_lua_type", referenced from: finalreport(luaState, int) in luapkgMain-xwaXUy.o report(luaState, int) in luapkgMain-xwaXUy.o traceback(luaState) in luapkgMain-xwaXUy.o _luaopen_aprilann_hmm_trainer in register_package_lua_and_binding_hmm_trainer.o lua_tohmm_trainer_model(luaState, int) in bind_hmm_trainer.o lua_ishmm_trainer_model(luaState, int) in bind_hmm_trainer.o lua_ishmm_trainer(luaState, int) in bind_hmm_trainer.o ... "_lua_typename", referenced from: lua_new_MatrixFloat_bind_matrix(luaState) in bind_matrix.o lua_call_class_MatrixFloat_col_major(luaState) in bind_matrix.o lua_new_MatrixChar_bind_matrix_char(luaState) in bind_matrix_char.o lua_new_MatrixComplexF_bind_matrix_complex_float(luaState) in bind_matrix_complex_float.o lua_call_class_MatrixComplexF_col_major(luaState) in bind_matrix_complex_float.o lua_new_MatrixDouble_bind_matrix_double(luaState) in bind_matrix_double.o lua_new_MatrixInt32_bind_matrix_int32(luaState) in bind_matrix_int32.o ... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Error 1 in . when executing command clang++ -Wall -Wextra -Wno-unused -o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/lib/aprilann.so /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/luapkgMain.cc /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/hmmtrainer/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/hmmtrainer/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/mathcore/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/mathcore/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/interestpoints/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/interestpoints/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/mutualinformation/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/misc/matlab/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/misc/matlab/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/cmdOpt/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/evaluation/rates/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/evaluation/rates/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/util/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/util/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/trainable/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/misc/monad/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/matrix/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/matrix/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/autodiff/autodiff/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/ann/ann/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/ann/ann/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/profiler/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/imagemetrics/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/imagemetrics/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/imaging/ImageIO/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/imaging/Image/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/imaging/Image/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/binarizationfilter/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/binarizationfilter/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/dataset/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/dataset/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/imaging/libpng/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/imaging/libpng/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/lexClass/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/lexClass/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/imagecleaning/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/imagecleaning/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/tied_modelmanager/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/misc/rlcompleter/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/misc/rlcompleter/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/AffineTransform2D/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/AffineTransform2D/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/functions/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/functions/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/medianfilter/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/medianfilter/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/ann/optimizer/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/ann/optimizer/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/complex/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/complex/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/autodiff/ann/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/tokens/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/tokens/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/random/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/random/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/basics/stats/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/ann/autoencoders/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/ann/loss/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/ann/loss/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/image_connectedcomponents/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/packages/imaging/image_connectedcomponents/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/misc/gzio/build/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_releasemacosx/packages/misc/gzio/build/binding/.o /Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/build_release_macosx/binding/c_src/*.o -lz -lz -ldl -ldl -lreadline -lhistory -lncurses -L/usr/local/opt/readline/lib -L/usr/local/lib -lpthread -lpng /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib -rdynamic -fPIC -flat_namespace -bundle -DGIT_COMMIT=1295 -DLUA_USE_READLINE -mtune=native -msse -DNDEBUG -DUSE_XCODE -F/System/Library/Frameworks/Accelerate.framework -DNO_OMP -fPIC -DAPRILANN_VERSION_MAJOR='"0"' -DAPRILANN_VERSION_MINOR='"3"' -DAPRILANN_VERSION_RELEASE='"1"' -L/usr/local/Cellar/libpng/1.5.17/lib -lpng15 -lm -I/Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/lua/include -Ilua/lua-5.2.2/src

make: *\ [release-macosx] Error 1

pakozm commented 10 years ago

It seems like that the configure process has failed before. Please, execute

$ ls lua/lib

Probably it is void... If it is the case, re run configure script

guidefreitas commented 10 years ago

There is a liblua.a file and a lua folder with a empty 5.2 subfolder.

guidefreitas commented 10 years ago

run a make command in lua/lua-5.2.2 compiles without problem

pakozm commented 10 years ago

Try out one thing. Copy the large clang++ command that is showed at the end of the error when you run make release-macosx, but add to the command lua/lib/liblua.a I think that for a weird reason this file is missing in the clang compilation command.

pakozm commented 10 years ago

I'm trying to install homebrew in another machine, in order to reproduce the problem. I found problems with Lua 5.2 pkg-config file, which is not deployed by homebrew, but it is possible to reproduce it manually. However, after solving that, the compilation works perfect :( After trying my previous advice, please, modify the build_release_macosx.lua, replacing the line which contains

  verbosity_level = 0,  -- 0 => NONE, 1 => ONLY TARGETS, 2 => ALL

by the following:

  verbosity_level = 2,  -- 0 => NONE, 1 => ONLY TARGETS, 2 => ALL

Therefore, do:

$ make clean
$ make release-macosx > output 2>&1

And attach the output as answer to this issue.

guidefreitas commented 10 years ago

Here is the gist with de output file https://gist.github.com/guidefreitas/8409855

I tryed to add -L/Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/lua/lib/liblua.a and -L/Users/guilherme/projetos/open_source/deep_learning/april-ann-guilherme/april-ann/lua/lib/ to the huge clang++ command but I got the same error.

pakozm commented 10 years ago

Ok, the binary executable seems to be compiled and linked without problems. In any case, you can use it copying the file build_release_macosx/bin/april-ann to bin/april-ann Your problem is with the compilation of the Lua shared library, which is failing to link some Lua 5.2 functions. Which version has you installed? Probably homebrew is installing Lua 5.1 instead of 5.2, and that seems to be the problem. I found that for installation of Lua 5.2, it is necessary to do:

$ brew install homebrew-versionsLua52
$ brew link homebrew-versionsLua52

(Please, check the commands, I'm not in the MacOS X now...)

BUT, this will break the pkg-config, because this package comes without the corresponding lua.pc file. So, until homebrew has Lua 5.2 installed by default, it will be necessary to change the build_release_macosx.lua , replacing where is written:

      assert(io.popen("pkg-config --libs 'lua >= 5.2'"):read("*l"))

by

      assert(io.popen("pkg-config --libs 'lua'"):read("*l"))

:-)

pakozm commented 10 years ago

Here the explanation of the problem in the homebrew Lua package:

https://github.com/Homebrew/homebrew/blob/master/Library/Formula/lua.rb

require 'formula'

class Lua < Formula
  # 5.2 is not fully backwards compatible, and breaks e.g. luarocks.
  # It is available in Homebrew-versions for the time being.
pakozm commented 10 years ago

How are you doing with this issue? Do you try my last sugestions? Thanks.

guidefreitas commented 10 years ago

No, a lot of errors :(. I'm using lua 5.2.2

macbook:april-ann guilherme$ make release lua build_release.lua default target: build package ocr.off_line_text_preprocessing not found luapkg dependencies failed cp: build_release/bin/april-ann: No such file or directory Error 1 in packages/trainable when executing command cp -f build_release/bin/april-ann ./bin/april-ann

make: *\ [release] Error 1

pakozm commented 10 years ago

Ops, that is a new issue in devel branch :'( I just created one to seek the problem. If you want, try with master branch ;-)

joapaspe commented 10 years ago

Fixed. Should work now.

pakozm commented 10 years ago

Compilation with debug and homebrew is working in Travis CI (make debug-homebrew). Release version stills not working because history library is not found. I can't test where it is located and which name has history library in homebrew. I'm closing this issue and opening a new one for the release problem.