Murga-Projects Forums
Linux Portability - Printable Version

+- Murga-Projects Forums (http://www.murga-projects.com/forum)
+-- Forum: Project Forums (/forumdisplay.php?fid=1)
+--- Forum: MurgaLua - General (/forumdisplay.php?fid=2)
+--- Thread: Linux Portability (/showthread.php?tid=275)


Linux Portability - asafp - 02-08-2008 02:42 PM

I have a few questions/comments based on my first experience running murgalua on linux.

The first thing I encountered was an error because libstdc++.so.5 was not present. I didn't have root authority or even a gcc compiler. Fortunately, this was a debian system and I found a library on another machine that I could use. Would libstdc++ be compatible from one x86 linux to another? One thing I love about murgalua is that all the basics for windows/linux and even mac are included in one installation package! Could libstdc++ be included in the installation package? Keep in mind that this library is required to run murgalua and not optional like libsqlite.

Fortunately, I know about the PATH and LD_LIBRARY_PATH environment variables. That kind of information is never included in linux installation instructions and believe me, that kind of detail in install instructions can be a real blessing if you are not a linux system administrator and don't even use linux very often.


RE: Linux Portability - mikshaw - 02-08-2008 02:57 PM

libstdc++.so.5 is present in a lot of distros that lean toward legacy support, and in distros that try to make a compromise by including both libstdc++.so.5 and libstdc++.so.6. Some distros that push toward supporting the most recent developments while dropping support for anything "old" will have only libstdc++.so.6. But you can have both installed at the same time.

Quote:
Would libstdc++ be compatible from one x86 linux to another?

If it was compiled with a compatible c lib it might work. I've used several binaries that I've copied directly from one distibution to another.


RE: Linux Portability - asafp - 02-08-2008 03:25 PM

I did a google search on "download libstdc++.so.5" and got a bunch of stuff on rpm packages which wouldn't have done me much good. So, my point is that anything that could be done with murgalua packaging and documentation to assist someone who runs into this kind of problem would be sweet!

When running the coroutines.lua that John posted, I get an error on linux

lua: coroutines.lua:74: attempt to index global 'socket' (a nil value)

It runs fine on windows. Another program I have that does a simple http get without coroutines runs fine on both linux and windows.


RE: Linux Portability - asafp - 02-08-2008 04:21 PM

oops. Disregard previous about socket error. Ran lua instead of murgalua. oops.


RE: Linux Portability - TerryW - 02-09-2008 09:56 PM

Hi asafp,
Have a look at the version of murgaLua provided by John Murga in the thread "murgaua - distro compatibility" about 5 below your entry. This seemed to work for me without having to add anything. See how it works for you.


RE: Linux Portability - asafp - 02-14-2008 03:17 AM

TerryW Wrote:
Hi asafp,
Have a look at the version of murgaLua provided by John Murga in the thread "murgaua - distro compatibility" about 5 below your entry. This seemed to work for me without having to add anything. See how it works for you.


I tried a different linux system and got error on libXft.so.2 and tried the "distro compatibility" version and got libXext.so.6 error. I have no idea what these are.


RE: Linux Portability - JohnMurga - 02-14-2008 11:51 PM

asafp Wrote:
I tried a different linux system and got error on libXft.so.2 and tried the "distro compatibility" version and got libXext.so.6 error. I have no idea what these are.

XFT is font smoothing ... And Xext is a pretty standard X extensions library (like double buffering).

I MAY be able to do a compatibility build without Xext, but may I ask what distro you tried it on ?

When I do the next build (this week), I'll try and do a new Linux compatibility build.

Cheers
JohnM


RE: Linux Portability - asafp - 02-15-2008 02:40 AM

I am not sure what linux distro this is. How can I tell?

I do know it's a stripped down shell provided by a web hosting company.
Permissions and available commands are limited.