Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-19-2006, 10:21 AM   #1
Registered: Jul 2005
Distribution: Arch Linux, Gentoo Linux
Posts: 335

Rep: Reputation: Disabled
Errors on Compiling Lua and other programs.

ar rcu liblua.a lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o lobject.o lopcodes.o lparser.o lstate.o lstring.o ltable.o ltm.o lundump.o lvm.o lzio.o lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o loslib.o ltablib.o lstrlib.o loadlib.o linit.o
ranlib liblua.a
gcc -O2 -Wall -DLUA_USE_LINUX -c -o lua.o lua.c
gcc -o lua lua.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[2]: *** [lua] Error 1
make[2]: Leaving directory `/home/me/My Downloads/lua-5.1/src'
make[1]: *** [linux] Error 2
make[1]: Leaving directory `/home/me/My Downloads/lua-5.1/src'
make: *** [linux] Error 2

I have gotten this error in 2 places for 2 programs. Someone know the reason for this? It seems it is missing the location of -lncurses, but I don't know how to hunt that down.
Old 04-19-2006, 02:42 PM   #2
Registered: Nov 2004
Location: Florida, USA
Distribution: Debian, Redhat
Posts: 383

Rep: Reputation: 31
It is very likely that you need to install the curses library package. I am not a pro on Suse, but they should be readily available to download and install.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lua embedding issues eucharn Programming 2 07-16-2008 05:36 PM
Lua - seperating a string blackman890 Programming 13 03-28-2005 11:04 AM
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 06:03 AM
I need help with compiling my C++ programs. bitessy Programming 3 02-23-2004 07:07 PM
compiling c,c++ programs ksd Linux - Newbie 9 10-13-2003 09:23 AM

All times are GMT -5. The time now is 09:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration