LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Cincom VisualWorks on headless Intrepid Server (https://www.linuxquestions.org/questions/linux-software-2/cincom-visualworks-on-headless-intrepid-server-695439/)

jimbo1708 01-06-2009 04:27 PM

Cincom VisualWorks on headless Intrepid Server
 
Hello,

I have exhausted my typical guru friends on this question, although I only did their instructions, as I could not give them access to my server itself. I am trying to set up Cincom's VisualWorks on my server so I can deploy my smalltalk programs on it. If you have used VisualWorks before, you will know that it heavily relies on X. The program copies by copying a directory /vw7.6nc/ to somewhere on your server. The program works on my other computer with:

Code:

/usr/local/vw7.6nc/bin/linux86/visual /home/bryanjp/demo.im -headless
On my laptop, I can run the VisualWorks in headless mode but when I try to run this on my server, which does not have X, I get following error message

Code:

bryanjp@bryanserver:~$ ls -l /usr/local/vw7.6nc/bin/linux86/
total 5228
drwxr-xr-x 2 root root    4096 2008-12-21 14:12 assert
drwxr-xr-x 2 root root    4096 2008-12-21 14:12 debug
-r-xr-xr-x 1 root root  59629 2008-12-21 14:12 herald.so
-r--r--r-- 1 root root    820 2008-12-21 14:12 readme.txt
drwxr-xr-x 2 root root    4096 2008-12-21 14:12 userprim
-r-xr-xr-x 1 root root  681600 2008-12-21 14:12 visual
-r-xr-xr-x 1 root root 1860223 2008-12-21 14:12 vwlinux86
-r-xr-xr-x 1 root root 2228914 2008-12-21 14:12 vwlinux86gui
-r-xr-xr-x 1 root root  472230 2008-12-21 14:12 vwlinux86gui.so
bryanjp@bryanserver:~$ /usr/local/vw7.6nc/bin/linux86/visual /home/bryanjp/demo.im -headless
-bash: /usr/local/vw7.6nc/bin/linux86/visual: No such file or directory

Can anyone explain why this is happening? A guru I know recommended strace, and he told me its a problem with the X libraries, but I don't know how to interpret it.

Code:

bryanjp@bryanserver:~$ strace /usr/local/vw7.6nc/bin/linux86/visual /home/bryanjp/demo.im -headless
execve("/usr/local/vw7.6nc/bin/linux86/visual", ["/usr/local/vw7.6nc/bin/linux86/v"..., "/home/bryanjp/demo.im", "-headless"], [/* 19 vars */]) = -1 ENOENT (No such file or directory)
dup(2)                                  = 3
fcntl(3, F_GETFL)                      = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 0), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7ff260f43000
lseek(3, 0, SEEK_CUR)                  = -1 ESPIPE (Illegal seek)
write(3, "strace: exec: No such file or di"..., 40strace: exec: No such file or directory
) = 40
close(3)                                = 0
munmap(0x7ff260f43000, 4096)            = 0
exit_group(1)                          = ?
Process 5113 detached

Any ideas are welcome! Thank you.

- Jim

jimbo1708 01-07-2009 08:26 AM

bump

jimbo1708 01-08-2009 08:31 PM

This is the last bump I am going to do, I promise, but I would really appreciate some help.

- Jim

jarober 02-22-2009 12:38 AM

Start your app like this:

visual -NOLOGO myImageHere.im -nogui

That will startup with no UI hooks. You'll have to make sure (using a subsystem is the easiest way) that your application starts up when the image starts. For more tips, visit Smalltalk Daily - which I can't post the url to (the site blocked my attempt) - just Google it. Also Google for the Cincom Smalltalk Website for more help.

You can also see Smalltalk Daily by visiting my blog - again, Google me (James Robertson) to find that.

jimbo1708 02-22-2009 12:04 PM

Quote:

Originally Posted by jarober (Post 3452907)
Start your app like this:

visual -NOLOGO myImageHere.im -nogui

That will startup with no UI hooks. You'll have to make sure (using a subsystem is the easiest way) that your application starts up when the image starts. For more tips, visit Smalltalk Daily - which I can't post the url to (the site blocked my attempt) - just Google it. Also Google for the Cincom Smalltalk Website for more help.

You can also see Smalltalk Daily by visiting my blog - again, Google me (James Robertson) to find that.

Code:

bryanjp@bryanserver:~$ visual -NOLOGO demo.im -nogui
-bash: /usr/local/vw7.6nc/bin/linux86/visual: No such file or directory


Hi James,

I've since tracked the problem down using strace to ENOENT being the return. This is only returned when the file doesn't exist, or a library is missing. In my case it is a library missing. I also found that running the 64 bit VM does work, but I haven't had time to convert my code to the 64 bit VM. Again thank you!

Also, I am a HUGE fan of your smalltalk daily. I love watching them and it seems like everytime I have an issue, it is answered with your Smalltalk Daily

- Jim


All times are GMT -5. The time now is 11:42 AM.