[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Problems installing luars232
- From: meino.cramer@...
- Date: Wed, 27 Jun 2012 05:28:05 +0200
Hi,
This happens on a Linux machine (Gentoo).
I tried to install luars232. I got the source from
here:
https://github.com/ynezz/librs232
(the tar.gz ball)
I did ./autogen.sh then I configured with;
./configure --enable-shared --disable-static --sysconfdir=/etc \
--bindir=/usr/local/bin \
--sbindir=/usr/local/sbin \
--libexecdir=/usr/local/share/lua/5.1 \
--sysconfdir=/usr/local/share/lua/5.1 \
--sharedstatedir=/usr/local/share/lua/5.1 \
--localstatedir=/usr/local/share/lua/5.1 \
--libdir=/usr/local/lib/lua/5.1 \
--includedir=/usr/local/include \
--oldincludedir=/usr/local/share/lua/5.1 \
--datarootdir=/usr/local/share/lua/5.1 \
--datadir=/usr/local/share/lua/5.1 \
--infodir=/usr/local/share/lua/5.1 \
--localedir=/usr/local/share/lua/5.1 \
--mandir=/usr/local/share/lua/5.1 \
--docdir=/usr/local/share/lua/5.1 \
--htmldir=/usr/local/share/lua/5.1 \
--dvidir=/usr/local/share/lua/5.1 \
--pdfdir=/usr/local/share/lua/5.1 \
--psdir=/usr/local/share/lua/5.1
In the enviroment this is set:
export LUA_PATH=/usr/lib64/lua/luarocks/share/lua/5.1//?.lua;/usr/lib64/lua/luarocks/share/lua/5.1//?/init.lua;/usr/share/lua/5.1//?.lua;/usr/share/lua/5.1//?/init.lua;/usr/lib64/lua/luarocks/share/lua/5.1/?.lua;/usr/lib64/lua/luarocks/share/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;./?.lua;/usr/local/share/lua/5.1/?.lua;/usr/local/share/lua/5.1/?/init.lua;/usr/local/lib/lua/5.1/?.lua;/usr/local/lib/lua/5.1/?/init.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua
export LUA_CPATH=/usr/lib64/lua/luarocks/lib/lua/5.1//?.so;./?.so;/usr/local/lib/lua/5.1/?.so;/usr/lib/lua/5.1/?.so;/usr/local/lib/lua/5.1/loadall.so
I added
/usr/local/lib/lua/5.1/
to /etc/ld.so.conf
and did a ldconfig as root.
After compiling and installing I did
lua -lluars232
which failed with:
solfire:/home/mccramer>lua -lluars232
lua: error loading module 'luars232' from file '/usr/local/lib/lua/5.1/luars232.so':
/usr/local/lib/lua/5.1/luars232.so: undefined symbol: rs232_get_stop
stack traceback:
[C]: ?
[C]: ?
[C]: ?
[1] 14536 exit 1 lua -lluars232
I am running a vanilla linux kernel 3.4.4.
What can I do to get this beast working for me? :)
Best regards,
mcc