Re: Trouble with LiveCode Server on Ubuntu

2016-02-20 Thread Sannyasin Brahmanathaswami
 

On February 19, 2016 at 5:46:15 PM, Mike Bonner 
(bonnm...@gmail.com(mailto:bonnm...@gmail.com)) wrote:

> On Fri, Feb 19, 2016 at 8:44 
> PM(http://airmail.calendar/2016-02-19%2020:44:00%20HST), Mike Bonner wrote:  
>  
> try apt-get install libxext6  

Mike...  

Awesome.. that worked! Yay 

% root@hinduismtoday:~# apt-get install libxext6
Reading package lists... Done
[SNIP]

root@hinduismtoday:/home/htoday/cgi-bin# ./echo.lc  
Hello, Livecode Server is Up and Running
root@hinduismtoday:/home/htoday/cgi-bin# 

and from public_html

http://www.hinduismtoday.com/echo.lc

Thank you!








___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Trouble with LiveCode Server on Ubuntu

2016-02-19 Thread Mike Bonner
or just possibly libext  Don't have a system I can test on right now, but
one of those two should work.


On Fri, Feb 19, 2016 at 8:44 PM, Mike Bonner  wrote:

> try apt-get install libxext6
>
> On Fri, Feb 19, 2016 at 8:42 PM, Sannyasin Brahmanathaswami <
> bra...@hindu.org> wrote:
>
>>
>> Ok I tried regressing to 6.7.5
>>
>> but things got worse:
>>
>> root@hinduismtoday:/home/htoday/cgi-bin# ./echo.lc
>> -bash: ./echo.lc: /home/htoday/cgi-bin/livecode-community-server: bad
>> interpreter: No such file or directory
>> root@hinduismtoday:/home/htoday/cgi-bin# ldd livecode-community-server
>> not a dynamic executable
>> root@hinduismtoday:/home/htoday/cgi-bin# ldd ./livecode-community-server
>> not a dynamic executable
>> root@hinduismtoday:/home/htoday/cgi-bin#
>>
>> So then I went the other way: installed 80 DP14 linux 64
>>
>> now we get something new:
>>
>> % /home/htoday/cgi-bin# ./echo.lc
>> /home/htoday/cgi-bin/livecode-community-server: error while loading
>> shared libraries: libXext.so.6: cannot open shared object file: No such
>> file or directory
>>
>> ldd show one missing dependency.. apt-get install cannot find it.
>>
>> % /home/htoday/cgi-bin# apt-get install libXext.so.6
>> Reading package lists... Done
>> Building dependency tree
>> Reading state information... Done
>> E: Unable to locate package libXext.so.6
>> E: Couldn't find any package by regex 'libXext.so.6'
>>
>>
>> /home/htoday/cgi-bin# ldd ./livecode-community-server
>> linux-vdso.so.1 =>  (0x7ffc5a7ee000)
>> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2
>> (0x7efe1ec8e000)
>> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
>> (0x7efe1ea7)
>> libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6
>> (0x7efe1e73a000)
>> libXext.so.6 => not found
>> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1
>> (0x7efe1e532000)
>> libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
>> (0x7efe1e22d000)
>> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7efe1df27000)
>> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
>> (0x7efe1dd11000)
>> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7efe1d94b000)
>> /lib64/ld-linux-x86-64.so.2 (0x55dc8d5d8000)
>> libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1
>> (0x7efe1d72c000)
>> libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6
>> (0x7efe1d527000)
>> libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
>> (0x7efe1d321000)
>>
>> That's it for today..
>>
>>
>> On February 19, 2016 at 5:17:19 PM, Sannyasin Brahmanathaswami (
>> bra...@hindu.org(mailto:bra...@hindu.org)) wrote:
>>
>> > I'll go ahead and try regressing on the HT server... since it is
>> running XOOPS/php and our very few LC cgi are failing but not the whole
>> site.. we can test without grave consequences.
>>
>> ___
>> use-livecode mailing list
>> use-livecode@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-livecode
>
>
>
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Trouble with LiveCode Server on Ubuntu

2016-02-19 Thread Mike Bonner
try apt-get install libxext6

On Fri, Feb 19, 2016 at 8:42 PM, Sannyasin Brahmanathaswami <
bra...@hindu.org> wrote:

>
> Ok I tried regressing to 6.7.5
>
> but things got worse:
>
> root@hinduismtoday:/home/htoday/cgi-bin# ./echo.lc
> -bash: ./echo.lc: /home/htoday/cgi-bin/livecode-community-server: bad
> interpreter: No such file or directory
> root@hinduismtoday:/home/htoday/cgi-bin# ldd livecode-community-server
> not a dynamic executable
> root@hinduismtoday:/home/htoday/cgi-bin# ldd ./livecode-community-server
> not a dynamic executable
> root@hinduismtoday:/home/htoday/cgi-bin#
>
> So then I went the other way: installed 80 DP14 linux 64
>
> now we get something new:
>
> % /home/htoday/cgi-bin# ./echo.lc
> /home/htoday/cgi-bin/livecode-community-server: error while loading shared
> libraries: libXext.so.6: cannot open shared object file: No such file or
> directory
>
> ldd show one missing dependency.. apt-get install cannot find it.
>
> % /home/htoday/cgi-bin# apt-get install libXext.so.6
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> E: Unable to locate package libXext.so.6
> E: Couldn't find any package by regex 'libXext.so.6'
>
>
> /home/htoday/cgi-bin# ldd ./livecode-community-server
> linux-vdso.so.1 =>  (0x7ffc5a7ee000)
> libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7efe1ec8e000)
> libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
> (0x7efe1ea7)
> libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6
> (0x7efe1e73a000)
> libXext.so.6 => not found
> librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7efe1e532000)
> libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6
> (0x7efe1e22d000)
> libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7efe1df27000)
> libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1
> (0x7efe1dd11000)
> libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7efe1d94b000)
> /lib64/ld-linux-x86-64.so.2 (0x55dc8d5d8000)
> libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1
> (0x7efe1d72c000)
> libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6
> (0x7efe1d527000)
> libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6
> (0x7efe1d321000)
>
> That's it for today..
>
>
> On February 19, 2016 at 5:17:19 PM, Sannyasin Brahmanathaswami (
> bra...@hindu.org(mailto:bra...@hindu.org)) wrote:
>
> > I'll go ahead and try regressing on the HT server... since it is running
> XOOPS/php and our very few LC cgi are failing but not the whole site.. we
> can test without grave consequences.
>
> ___
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Trouble with LiveCode Server on Ubuntu

2016-02-19 Thread Sannyasin Brahmanathaswami
 
Ok I tried regressing to 6.7.5

but things got worse:  

root@hinduismtoday:/home/htoday/cgi-bin# ./echo.lc  
-bash: ./echo.lc: /home/htoday/cgi-bin/livecode-community-server: bad 
interpreter: No such file or directory
root@hinduismtoday:/home/htoday/cgi-bin# ldd livecode-community-server
not a dynamic executable
root@hinduismtoday:/home/htoday/cgi-bin# ldd ./livecode-community-server
not a dynamic executable
root@hinduismtoday:/home/htoday/cgi-bin#

So then I went the other way: installed 80 DP14 linux 64

now we get something new:

% /home/htoday/cgi-bin# ./echo.lc
/home/htoday/cgi-bin/livecode-community-server: error while loading shared 
libraries: libXext.so.6: cannot open shared object file: No such file or 
directory

ldd show one missing dependency.. apt-get install cannot find it.

% /home/htoday/cgi-bin# apt-get install libXext.so.6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package libXext.so.6
E: Couldn't find any package by regex 'libXext.so.6'
 

/home/htoday/cgi-bin# ldd ./livecode-community-server
linux-vdso.so.1 =>  (0x7ffc5a7ee000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7efe1ec8e000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 
(0x7efe1ea7)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 
(0x7efe1e73a000)
libXext.so.6 => not found
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7efe1e532000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 
(0x7efe1e22d000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7efe1df27000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 
(0x7efe1dd11000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7efe1d94b000)
/lib64/ld-linux-x86-64.so.2 (0x55dc8d5d8000)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 
(0x7efe1d72c000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 
(0x7efe1d527000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 
(0x7efe1d321000)

That's it for today.. 


On February 19, 2016 at 5:17:19 PM, Sannyasin Brahmanathaswami 
(bra...@hindu.org(mailto:bra...@hindu.org)) wrote:

> I'll go ahead and try regressing on the HT server... since it is running 
> XOOPS/php and our very few LC cgi are failing but not the whole site.. we can 
> test without grave consequences.  

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Trouble with LiveCode Server on Ubuntu

2016-02-19 Thread Sannyasin Brahmanathaswami
 
OK, successfully upgraded the Hinduism Today server to

Linux 4.4.0-x86_64-linode63 on x86_64

so now we have Ubuntu OS parity now between the two instances

on the one where LC works, where I think I have an old version of LC server 
6.7.5

we get:

/home/himalayan/cgi-bin# ldd ./livecode-community-server
linux-gate.so.1 => (0xf771d000)
libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xf7708000)
libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xf76c2000)
libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xf76a5000)
libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xf7688000)
libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xf74da000)
/lib/ld-linux.so.2 (0x56639000)

is this a 32 bit version?  


On the Hinduism Today server I installed LC server: 7.1.2 RC3 , Linux 64 and we 
are still getting failure  

[2016-02-19 19:01:52]: uid: (1000/htoday) gid: (1000/htoday) cmd: echo.lc  
[2016-02-19 19:01:52]: (2)No such file or directory: exec failed (echo.lc)

and the ldd returns a vastly different set of data for LC server 7.1.2 RC 3 
server (Linux 64)  

/home/htoday/cgi-bin# ldd ./livecode-community-server  
linux-vdso.so.1 => (0x7fff3f9e3000)
libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x7f67f0a56000)
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f67f0838000)
libX11.so.6 => /usr/lib/x86_64-linux-gnu/libX11.so.6 (0x7f67f0502000)
libXext.so.6 => not found
librt.so.1 => /lib/x86_64-linux-gnu/librt.so.1 (0x7f67f02fa000)
libstdc++.so.6 => /usr/lib/x86_64-linux-gnu/libstdc++.so.6 (0x7f67efff5000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x7f67efcef000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x7f67efad9000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x7f67ef713000)
/lib64/ld-linux-x86-64.so.2 (0x5595f0c8)
libxcb.so.1 => /usr/lib/x86_64-linux-gnu/libxcb.so.1 (0x7f67ef4f4000)
libXau.so.6 => /usr/lib/x86_64-linux-gnu/libXau.so.6 (0x7f67ef2ef000)
libXdmcp.so.6 => /usr/lib/x86_64-linux-gnu/libXdmcp.so.6 (0x7f67ef0e9000)

So.. I am out of my depth now... should I regress to an earlier version of LC 
Server? I don't want to move up to a new version of LC server on the Himalayan 
site if it is going to fail there... 

I'll go ahead and try regressing on the HT server... since it is running 
XOOPS/php  and our very few LC cgi are failing but not the whole site.. we can 
test without grave consequences.

Actually this is good this is happening because had I upgraded our main 
RevIgniter site it would have died!



On February 19, 2016 at 4:38:46 PM, Richard wrote:

> If that's the case just dropping in the 64-bit LC should do it.  
>  
> If not we'll have to dig deeper, perhaps running LC from the command  
> line with ldd, e.g.:  
>  
> ldd ./livecode-community-server  
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Re: Trouble with LiveCode Server on Ubuntu

2016-02-19 Thread Sannyasin Brahmanathaswami
Ahh... I had already tried the latest 7.2.1 64 LiveCode

but I just discovered that the server/instance where it *does* work we have

Kernel and CPU

where as on Hinduism Today site we have the 4.1.5- version of linux

so let me see if I can get the OS upgraded without bringing down the server 
first.  Linux 4.4.0-x86_64-linode63 on x86_64




BR


On February 19, 2016 at 1:02:38 PM, Sannyasin Brahmanathaswami 
(bra...@hindu.org) wrote:

Sannyasin Brahmanathaswami wrote:
> My sys stats say:
> Operating system Ubuntu Linux 14.04.1
> Webmin version 1.780 Virtualmin version 4.16.gpl
> Time on system  Fri Feb 19 
> 14:57:14 
> 2016 Kernel and CPU Linux 
> 4.1.5-x86_64-linode61 on x86_64
>
> but I can certainly give the 32-bit version of LC server a go...

Maybe your setup is the other way around: could it be that you have a
32-bit LC engine there now without the required 32-bit multiarch packages?

If that's the case just dropping in the 64-bit LC should do it.

If not we'll have to dig deeper, perhaps running LC from the command
line with ldd, e.g.:

ldd ./livecode-community-server

--
Richard Gaskin
Fourth World Systems
Software Design and Development for the Desktop, Mobile, and the Web
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Trouble with LiveCode Server on Ubuntu

2016-02-19 Thread Richard Gaskin

Sannyasin Brahmanathaswami wrote:

My sys stats say:
Operating systemUbuntu Linux 14.04.1
Webmin version  1.780   Virtualmin version  4.16.gpl
Time on system  Fri Feb 19 14:57:14 2016  
Kernel and CPU  Linux 4.1.5-x86_64-linode61 on x86_64

but I can certainly give the 32-bit version of LC server a go...


Maybe your setup is the other way around:  could it be that you have a 
32-bit LC engine there now without the required 32-bit multiarch packages?


If that's the case just dropping in the 64-bit LC should do it.

If not we'll have to dig deeper, perhaps running LC from the command 
line with ldd, e.g.:


  ldd ./livecode-community-server

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com

___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Trouble with LiveCode Server on Ubuntu

2016-02-19 Thread Sannyasin Brahmanathaswami
My sys stats say:
Operating systemUbuntu Linux 14.04.1
Webmin version  1.780   Virtualmin version  4.16.gpl
Time on system  Fri Feb 19 14:57:14 2016  
Kernel and CPU  Linux 4.1.5-x86_64-linode61 on x86_64

but I can certainly give the 32-bit version of LC server a go...


On February 19, 2016 at 12:46:58 PM, Richard Gaskin 
(ambassa...@fourthworld.com) wrote:

. Just dropped in the 32-bit LC and it
worked great.
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Trouble with LiveCode Server on Ubuntu

2016-02-19 Thread Richard Gaskin
I saw the "(2)No such file or directory" error on one of my VPSes 
yesterday.  Mystified me, since I know the file is there.


Looking into it further it turns out that error can happen with 
executables when the executable is 64-bit on a 32-bit system.  I had 
installed the 64-bit LC Server engine, but had forgotten that I'd set up 
that VPS with a 32-bit Ubuntu.  Just dropped in the 32-bit LC and it 
worked great.


Hopefully your resolution will be as simple.

--
 Richard Gaskin
 Fourth World Systems
 Software Design and Development for the Desktop, Mobile, and the Web
 
 ambassa...@fourthworld.comhttp://www.FourthWorld.com


Sannyasin Brahmanathaswami wrote:


We have two Linode Cloud servers. Both have almost the exact same Ubuntu 14.04 
configuration.

But on one of them I cannot get LiveCode server to "fire"

the layout is correct and exact match for the server that is working. 
Permssions are all set properly to 755 and the owner and group are correct.

/cgi-bin
drivers
externals
livecode-community-server
echo.lc

the latter CGI is very simple

#!/home/htoday/cgi-bin/livecode-community-server
put the keys of $_SERVER into tCGIVars

repeat for each line x in tCGIVars
put x & ": " & $_SERVER[x] & ("
"& cr) after tGlobals
end repeat

put "Hello, Livecode Server is Up and Running" & "
" & tGlobals


but we get this in the suexec log:

[2016-02-19 14:01:51]: uid: (1000/htoday) gid: (1000/htoday) cmd: echo.lc
[2016-02-19 14:01:51]: (2)No such file or directory: exec failed (echo.lc)

 A small bin/sh cgi is working

http://www.hinduismtoday.com/cgi-bin/test-sh.cgi

%
#!/bin/sh
# make Apache happy with the right html content tags
echo "Content-Type: text/plain"
echo ""

echo "testing bin/sh"

So there is nothing wrong with sudoers and user ID for and httpd.conf is set up 
correctly or the sh cgi would also fail.

and of course using this in /public_html/.htaccess

AddHandler livecode-script .lc
Action livecode-script /cgi-bin/livecode-community-server

and a simple .lc file in public_html  gets us the same result



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Trouble with LiveCode Server on Ubuntu

2016-02-19 Thread Sannyasin Brahmanathaswami
 
We have two Linode Cloud servers. Both have almost the exact same Ubuntu 14.04 
configuration.

But on one of them I cannot get LiveCode server to "fire"  

the layout is correct and exact match for the server that is working. 
Permssions are all set properly to 755 and the owner and group are correct.

/cgi-bin  
drivers
externals
livecode-community-server
echo.lc

the latter CGI is very simple  

#!/home/htoday/cgi-bin/livecode-community-server  
put the keys of $_SERVER into tCGIVars

repeat for each line x in tCGIVars  
put x & ": " & $_SERVER[x] & ("
"& cr) after tGlobals
end repeat

put "Hello, Livecode Server is Up and Running" & "
" & tGlobals  


but we get this in the suexec log:  

[2016-02-19 14:01:51]: uid: (1000/htoday) gid: (1000/htoday) cmd: echo.lc  
[2016-02-19 14:01:51]: (2)No such file or directory: exec failed (echo.lc)

 A small bin/sh cgi is working

http://www.hinduismtoday.com/cgi-bin/test-sh.cgi

%
#!/bin/sh
# make Apache happy with the right html content tags
echo "Content-Type: text/plain"
echo ""

echo "testing bin/sh"

So there is nothing wrong with sudoers and user ID for and httpd.conf is set up 
correctly or the sh cgi would also fail.

and of course using this in /public_html/.htaccess

AddHandler livecode-script .lc
Action livecode-script /cgi-bin/livecode-community-server

and a simple .lc file in public_html  gets us the same result

http://lists.runrev.com/mailman/listinfo/use-livecode