LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 02-01-2008, 03:48 PM   #1
gvp87
Member
 
Registered: Mar 2007
Location: Boston
Distribution: Ubuntu Gutsy
Posts: 50

Rep: Reputation: 15
LuaSDL


I just downloaded a precompiled binary for LuaSDL, called libluaSDL.so. I placed it into my /usr/lib directory, as per the instructions on the website. I include the SDL module in my Lua app [require("libluaSDL")].

I still can't get it to compile. This is the error message i'm receiving:

lua: /home/giusi/Lua/sdlTest.lua:3: module 'libluaSDL' not found:
no field package.preload['libluaSDL']
no file './libluaSDL.lua'
no file '/usr/local/share/lua/5.1/libluaSDL.lua'
no file '/usr/local/share/lua/5.1/libluaSDL/init.lua'
no file '/usr/local/lib/lua/5.1/libluaSDL.lua'
no file '/usr/local/lib/lua/5.1/libluaSDL/init.lua'
no file '/usr/share/lua/5.1/libluaSDL.lua'
no file '/usr/share/lua/5.1/libluaSDL/init.lua'
no file './libluaSDL.so'
no file '/usr/local/lib/lua/5.1/libluaSDL.so'
no file '/usr/lib/lua/5.1/libluaSDL.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
/home/giusi/Lua/sdlTest.lua:3: in main chunk
[C]: ?


anyone familiar with Lua or SDL that can help me out?? I'd appreciate it! Thanks
giuseppe
 
Old 02-02-2008, 12:53 AM   #2
KenJackson
Member
 
Registered: Jul 2006
Location: Maryland, USA
Distribution: Fedora and others
Posts: 757

Rep: Reputation: 145Reputation: 145
Have you tried moving it to one of those directories? Say:

# mv /usr/lib/libluaSDL.so /usr/local/lib/lua/5.1/
 
  


Reply


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



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 01:30 PM.

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