lua-users home
lua-l archive

problem with md5 and bn libraries on ubuntu64

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hello,
trying to build the bn and md5 from Luiz's amazing collection
(http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/#lbn) , I get this error:
make
gcc -fPIC -I/home/veleno/workspace/lua-5.1.4/src -ansi -pedantic -Wall
-O2 -c -o lbn.o lbn.c
gcc -fPIC -shared -fPIC -o bn.so lbn.o -lcrypto
/home/veleno/workspace/lua-5.1.4/src/lua test.lua
/home/veleno/workspace/lua-5.1.4/src/lua: error loading module 'bn'
from file 'bn.so':
	bn.so: cannot open shared object file: No such file or directory
stack traceback:
	[C]: ?
	[C]: in function 'require'
	test.lua:2: in main chunk
	[C]: ?
make: *** [test] Error 1
Note that I had to had -fPIC to make the compiler happy.
How should I modify the makefile to build on this architecture?
I'm testing using an ubuntu64 virtual machine installed on virtual-box.
Suggestions?

AltStyle によって変換されたページ (->オリジナル) /