lua-users home
lua-l archive

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


"Klereson S. Bravo" <klereson@novanis.com.br> writes:

> # ./build
> building core library... standard library... lua... /usr/libexec/elf/ld: cannot find -ldl
> luac... done
> bin/lua: Command not found.
> #
> 
> I looked at in the description something on dlfcn, but I did not find nothing related to the FreeBSD system.

You probably don't need -ldl (it's at the end of the line in ./build
that you're executing when it fails) so get rid of it and try again.
If FreeBSD is like OpenBSD (what I'm using just now), dynamic loading
is 'built in' so there is no /usr/lib/libdl.  If you're still stuck
tomorrow or Monday let me know and I'll get on a FreeBSD system at
work and look further.

By the way, I've never used ./build; I always edit config and run make
as I were on a Linux box.  In case you want to try that, here's some
diff output:

sge:23$ diff -u config.ORIG config
--- config.ORIG Fri Apr 11 10:00:41 2003
+++ config      Fri May  7 00:43:14 2004
@@ -25,7 +25,7 @@
 # interface (e.g., Linux, Solaris, IRIX, BSD, AIX, HPUX, and probably others),
 # uncomment the next two lines.
 #
-#LOADLIB= -DUSE_DLOPEN=1
+LOADLIB= -DUSE_DLOPEN=1
 #DLLIB= -ldl
 #
 # In Linux with gcc, you should also uncomment the next definition for
@@ -45,7 +45,7 @@
 # If your system is not POSIX but has popen and pclose, define USE_POPEN=1.
 # If you don't want to support pipes, define USE_POPEN=0.
 #
-#POPEN= -DUSE_POPEN=1
+POPEN= -DUSE_POPEN=1
 #POPEN= -DUSE_POPEN=0
 #
 # The form below will probably work in (some) Windows systems.
@@ -59,7 +59,7 @@
 # use tmpnam even if you're not compiling with gcc, define USE_TMPNAME=0.
 #
 #TMPNAM= -DUSE_TMPNAME=1
-#TMPNAM= -DUSE_TMPNAME=0
+TMPNAM= -DUSE_TMPNAME=0
 
 # The Lua math library (src/lib/lmathlib.c) now operates in radians, unlike
 # previous versions of Lua, which used degrees. To use degrees instead of
sge:24$ 

Good luck,
Steve

-- 
Government lies, and newspapers lie, but in a democracy they are
different lies.