News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Adding a Package
Author Message
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #1
Adding a Package

I found the lua documentation on adding a package to be confusing. luarocks got me even more confused. Adding mysql support to murgalua on windows turned out to be simple.

Downloaded the binary package http://luaforge.net/frs/download.php/268...-lua51.zip
and extracted the mysql.dll to subdirectory \luasql. I also had to find and download libmysql.dll and put it into my current directory.

Then used

Code:
require("luasql.mysql")


to load the module.

It would be a good idea to include a few examples of this kind of thing in the murgalua documentation. It would also cut down on the number of requests to have additional packages added to the standard murgalua distribution.

04-01-2008 05:47 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Adding a Package - asafp - 04-01-2008 05:47 AM
RE: Adding a Package - JohnMurga - 04-01-2008, 07:22 AM
RE: Adding a Package - asafp - 04-01-2008, 08:43 AM
RE: Adding a Package - mikshaw - 04-01-2008, 11:04 AM
RE: Adding a Package - asafp - 04-01-2008, 01:21 PM
RE: Adding a Package - briss - 09-03-2008, 05:35 PM
RE: Adding a Package - asafp - 10-16-2008, 03:44 AM
RE: Adding a Package - art - 11-21-2008, 10:38 AM
RE: Adding a Package - mikshaw - 11-24-2008, 02:25 AM
RE: Adding a Package - asafp - 11-25-2008, 07:31 AM
RE: Adding a Package - Juergen - 11-25-2008, 09:00 AM
RE: Adding a Package - asafp - 11-25-2008, 09:33 AM
RE: Adding a Package - Juergen - 11-25-2008, 09:54 AM
RE: Adding a Package - asafp - 11-25-2008, 11:22 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: