LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-31-2010, 09:15 PM   #1
storckm
LQ Newbie
 
Registered: Apr 2010
Location: Columbus, OH
Distribution: Slackware, Puppy
Posts: 10

Rep: Reputation: 0
Trying to compile ASC and can't manage to get LUA 5.1 recognized


I'm trying to compile ASC (Advanced Strategic Command). Why compile it? To gain experience and for fun.

I'm running slackware 13.1.

So I do ./configure, & then it says that it needs LUA 5.1. So I get LUA, do make linux & then make install, and the LUA program is there (I can run it), as well as an empty directory called /usr/local/lib/lua/5.1. But ASC still says the same thing as before:

ASC requires the LUA 5.1 library. If you have a distribution supplied LUA 5.1 package installed, perhaps the LUA 5.1-devel package is missing.
If your distribution does not include the LUA 5.1 library, you can get it from http://www.lua.org/

Thinking that the problem might be because a library was required, I followed some links on the lua site, downloaded a file called lua5_1_4_linux26_lib.tar.gz. I moved the files from the tar to the empty directory. Still no luck.

I'm assuming the 26 in linux26 refers to version 2.6, which is the kernel I'm using.

I'd appreciate any help.
 
Old 10-31-2010, 10:05 PM   #2
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
I would guess it's an issue with pkg-config, and the fact that you installed lua into /usr/local.

What's the output of the following command?
Code:
echo $PKG_CONFIG_PATH
You could rebuild and reinstall lua using "--prefix=/usr", which should fix the issue, or add /usr/local/lib/pkgconfig to PKG_CONFIG_PATH (maybe in /etc/rc.d/rc.local or add another script in /etc/profile.d).
 
Old 11-01-2010, 04:48 AM   #3
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware64 15; SlackwareARM-current (aarch64); Debian 12
Posts: 8,298
Blog Entries: 61

Rep: Reputation: Disabled
Or there is a SlackBuild for lua:
http://slackbuilds.org/repository/13.1/development/lua/
 
Old 11-01-2010, 08:57 AM   #4
ciotog
Member
 
Registered: Mar 2004
Location: Canada
Distribution: Slackware current
Posts: 728
Blog Entries: 2

Rep: Reputation: 43
Another option is to use prebuilt packages from a distribution like Salix that's Slackware compatible:
http://salix.enialis.net/
 
Old 11-13-2010, 09:51 AM   #5
storckm
LQ Newbie
 
Registered: Apr 2010
Location: Columbus, OH
Distribution: Slackware, Puppy
Posts: 10

Original Poster
Rep: Reputation: 0
echo $PKG_CONFIG_PATH

results in:

/usr/local/lib/pkgconfig:/usr/lib/pkgconfig
 
  


Reply



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
Anyone manage to compile the Quake 3 source code? black hole sun Linux - Games 14 01-09-2007 09:14 PM
how to burn .iso.asc???? adds2one Linux - Newbie 6 08-25-2005 06:23 PM
Ext3 not recognized after kernel compile jdrietz Slackware 3 06-01-2005 06:55 PM
Using .md5.asc files dubya Linux - Newbie 3 07-10-2004 11:42 PM
The .asc file and what to do with it jspaceman Slackware 2 07-10-2004 11:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:56 AM.

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