grpc-lua icon indicating copy to clipboard operation
grpc-lua copied to clipboard

centos 7.8 compile fail.

Open new1943 opened this issue 5 years ago • 3 comments

following content is compile error log. how can i fix ?

/usr/bin/ld: CMakeFiles/lua-cpp-console.dir/src/lua.cpp.o: undefined reference to symbol 'readline'
//usr/lib64/libreadline.so.6: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
gmake[2]: *** [lua-cpp] Error 1
gmake[1]: *** [CMakeFiles/lua-cpp-console.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
[100%] Built target luac-cpp
gmake: *** [all] Error 2
lua-cpp/5.3.4@jinq0123/testing:
lua-cpp/5.3.4@jinq0123/testing: ERROR: Package '4f7d6d5032b1a188f98e0c149ef6bf91e76af63e' build failed
lua-cpp/5.3.4@jinq0123/testing: WARN: Build folder /root/.conan/data/lua-cpp/5.3.4/jinq0123/testing/build/4f7d6d5032b1a188f98e0c149ef6bf91e76af63e
ERROR: lua-cpp/5.3.4@jinq0123/testing: Error in build() method, line 32
	cmake.build()
	ConanException: Error 2 while executing cmake --build '/root/.conan/data/lua-cpp/5.3.4/jinq0123/testing/build/4f7d6d5032b1a188f98e0c149ef6bf91e76af63e' '--' '-j8'

new1943 avatar Sep 22 '20 02:09 new1943

/usr/lib64/libreadline.so.6 is wrong. Try to reinstall libreadline.

jinq0123 avatar Sep 22 '20 03:09 jinq0123

i just reinstall

yum install readline-devel

but problem still

other solutions?

new1943 avatar Sep 22 '20 07:09 new1943

Make sure -lreadline exist in the link command.

jinq0123 avatar Sep 22 '20 07:09 jinq0123