How to install missing libraries on RedHat linux?

Are you using LiveCode to create server scripts or CGIs?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
gcbrackett
Posts: 16
Joined: Sun Apr 16, 2006 6:13 pm
Location: Boston MA
Contact:

How to install missing libraries on RedHat linux?

Post by gcbrackett » Tue Mar 11, 2008 8:36 pm

I get Server Error 500 when I attempt to execute a revolution CGI on my ISP's Linux server. The same file with the same line endings and the same permissions executes fine under OS X. On executing revolution itself from the command line, I get the message

revolution: error in loading shared libraries: libXext.so.6:
cannot open shared object file: No such file or directory


The wonderful HyperActive Software tutorial explains:

This tells you which library you (or your ISP) will need to install. Revolution requires these libraries, some of which are often omitted by ISPs:

libXext.so.6
libX11.so.6
libm.so.6
libc.so.6
ld-linux.so.2


My ISP "does not install custom libraries." Can anyone point me to instructions on how to do this? The ISP says I have the necessary permissions.

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Post by BvG » Tue Mar 11, 2008 9:47 pm

I'm not sure they mean "you got the permissions to install libraries". Most likely they mean "you got the necessary unix permissions, so that your script is able to run".

In other words: if you can't install the library, or make a symlink within a linux system directory to an existing newer version of the file, then you need another host to run the current rev cgi engine on linux.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

gcbrackett
Posts: 16
Joined: Sun Apr 16, 2006 6:13 pm
Location: Boston MA
Contact:

Permissions to install libraries

Post by gcbrackett » Tue Mar 11, 2008 10:02 pm

Thanks for the ideas! I'm pretty sure I do have permission to install libraries, as I have ssh access to administer the server, which is a virtual server and pretty much open for administration. About the only thing I've been unable to do is chown on a root-owned directory or file.

Do you have any suggestions about finding or installing these libraries? I suspect there are others in the same boat, or will be in the same boat.

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Post by BvG » Wed Mar 12, 2008 2:03 am

Ah, I see.

Most likely you have the c and m ones, but all those which have a big X in them mean that they belong to X windowing system, the gui providing framework for unix/linux machines.

You could try to install X windows, but I have heard that rev only checks for the existence of most of the files, but doesn't actually need them (especially the GUI stuff). So you might try to put empty files, named correctly, at the right positions. Unfortunately I don't really know the correct paths to the libXext.so.6 file, but I'm sure you can find some hints on Google, or on another Linux installation.


Ha! Lucky for you, i'm bored.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Post by trevordevore » Wed Mar 12, 2008 6:41 am

I recently got Rev 2.9 running as a CGI on our Debian Linux server. I had to install libx11 and libext. I used the following commands:

sudo apt-get install libxext6
sudo apt-get install libx11-6

My notes on the process are available at the following url. Perhaps they will help.

http://revolution.screenstepslive.com/l ... bian-Linux
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

gcbrackett
Posts: 16
Joined: Sun Apr 16, 2006 6:13 pm
Location: Boston MA
Contact:

Many thanks!

Post by gcbrackett » Wed Mar 12, 2008 2:40 pm

BvG and Trevor, you guys are great! I shall follow your advice, Trevor's first, and if there are any wrinkles I'll post 'em here. Thanks!

gcbrackett
Posts: 16
Joined: Sun Apr 16, 2006 6:13 pm
Location: Boston MA
Contact:

Does getting 2.9.0 engine (only) require Enterprise license?

Post by gcbrackett » Thu Mar 13, 2008 4:30 pm

Being frugal, I have only a Mac Studio license for Revolution. Is it possible to download just the Standalone (engine) part of Linux Revolution 2.9 from somewhere? The only engine I have found for download is an early 2.4? version, which is the one that requires the libraries. Trevor's directions are great, but they start with an Enterprise installation of Rev.

Or am I dense? (Don't answer that question!)

gcbrackett
Posts: 16
Joined: Sun Apr 16, 2006 6:13 pm
Location: Boston MA
Contact:

Duh

Post by gcbrackett » Thu Mar 13, 2008 9:15 pm

I'll answer the question myself: I have Revolution 2.81, which doesn't include a Linux standalone. If I had Revolution 2.9 beta, it would be included to create Linux versions. Sometimes I surprise myself with dimness.

gcbrackett
Posts: 16
Joined: Sun Apr 16, 2006 6:13 pm
Location: Boston MA
Contact:

Still problems with libraries

Post by gcbrackett » Fri Mar 14, 2008 2:49 am

I followed Trevor's advice, signed up for the 2.9 beta test, downloaded Revolution Enterprise 2.9 db5, uploaded the standalone for Linux, set its permissions etc., executed it on the command line and got the same message about the missing X11 library. Trevor found the same problem, aas he indicated, but solved it by installing the needed libraries. Unfortunately on my webhost's server, the sudo command (execute as root) is not found (path issue?), nor is the apt-get command found. Stumped for the moment. Maybe I need a different webhost?

BvG
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1236
Joined: Sat Apr 08, 2006 1:10 pm
Location: Zurich
Contact:

Post by BvG » Fri Mar 14, 2008 11:38 am

Yes, most webhost don't allow every customer to change the system installation, for obvious reasons. However, some do install stuff when the customers ask for them.
Various teststacks and stuff:
http://bjoernke.com

Chat with other RunRev developers:
chat.freenode.net:6666 #livecode

Post Reply

Return to “CGIs and the Server”