Running 64-bit app on CentOS 7

I use the latest Xojo version and I have adjusted the build settings to Linux and its architecture to 64-bit. I have CHMOD the files to 777. When I try to run the app, I still get an error called ‘500 internal server error’.

I have searched the project if there is a ‘int32’ was involved, this was not the case.

How can I resolve this ?

Thank you.

well, maybe use ldd command on the app and on the .so files to see if they link to a library which is not installed?

[quote=227456:@Eric Fernee]I use the latest Xojo version and I have adjusted the build settings to Linux and its architecture to 64-bit. I have CHMOD the files to 777. When I try to run the app, I still get an error called ‘500 internal server error’.

I have searched the project if there is a ‘int32’ was involved, this was not the case.

How can I resolve this ?

Thank you.[/quote]
Standalone or CGI?

This is a CGI app.

@ Christian, how can I achieve this ?

ldd is a command line tool.
go with cd in the folder and use ldd with name of the file to check.
It will show all libs and which is there or missing. Missing have zero address.

I’ve seen the same thing, with no luck puzzling it out so far. Because I’m on a VPS, I can’t go to the command line and do commands, like ldd. All I’ve been able to do so far is bother my site host to get 32 bit libraries - and that seems to have them stumped. Either that, or they’re taking a week off…:wink:

I also just tried building for 64 bit, uploading using binary mode, then setting all permissions exactly right (755 for all except config, which is 644), and I still get an error 500. I have no idea what to tell anybody next.

FWIW, I’ve also recently signed up for an account on Phillip Zedalis’ ServerWarp, hopefully that will work “out of the box”!

When I fill in ‘ldd test.cgi’ I get an error: ‘no dynamic executable file’

Did I overlooked something ?

You have to do ldd on the app or one of the lib files (.so), not the cgi script file:

ldd MyXojoApp ldd XojoLibFile.so

Thanks Paul.

I got the following output:

ldd test

statically linked

ldd XojoConsoleFramework64.so

    linux-vdso.so.1 =>  (0x00007ffc1aafd000)
    libgobject-2.0.so.0 => /lib64/libgobject-2.0.so.0 (0x00007fcec60b0000)
    libglib-2.0.so.0 => /lib64/libglib-2.0.so.0 (0x00007fcec5d7c000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007fcec5b60000)
    libdl.so.2 => /lib64/libdl.so.2 (0x00007fcec595c000)
    libm.so.6 => /lib64/libm.so.6 (0x00007fcec5659000)
    libc++.so.1 => /var/www/vhosts/domainname.eu/httpdocs/cgi-bin/testapp/test Libs/./libc++.so.1 (0x00007fcec52a8000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007fcec5092000)
    libc.so.6 => /lib64/libc.so.6 (0x00007fcec4cd0000)
    libffi.so.6 => /lib64/libffi.so.6 (0x00007fcec4ac8000)
    /lib64/ld-linux-x86-64.so.2 (0x00007fcec69ed000)
    librt.so.1 => /lib64/librt.so.1 (0x00007fcec48c0000)

Can I assume that all these libraries are missing ? And what can I do to resolve this ?

No, those are there. They all have addresses.

Did you test all .so files in libs folder or app folder?
and the app itself?

and do you have libicu installed? This one is loaded at runtime.

Thank you Christian.

I have test all the files in the directories. Only the files below gives an error: ‘no dynamic executable file’

localizable.mo
config.cfg
test.cgi

Lbicu already has been installed:

[root@server~]# yum install libicu
Geladen plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
base | 3.6 kB 00:00
extras | 3.4 kB 00:00
updates | 3.4 kB 00:00
Determining fastest mirrors
Package libicu-50.1.2-11.el7.x86_64 is already installed with most recent version
Nothing to do

Which options do I have left ?

Can you run the executable directly from the command line ?
That may give a better message about what is missing

Which command can I use for this ?

Thank you.

I found something to execute:

[root@server testapp]# ./test.cgi
Use of uninitialized value $ENV{“REQUEST_METHOD”} in string eq at ./test.cgi line 110.
Can’t use an undefined value as a symbol reference at ./test.cgi line 118.

Perhaps is this the problem ?

$ cd toFilePath
$ ./test

Then I get the error:

segmentation error

Nothing more than that ?

That’s all I get. Maybe I have to contact support ?