LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-06-2009, 04:27 PM   #1
jimbo1708
Member
 
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154

Rep: Reputation: 31
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
 
Old 01-07-2009, 08:26 AM   #2
jimbo1708
Member
 
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154

Original Poster
Rep: Reputation: 31
bump
 
Old 01-08-2009, 08:31 PM   #3
jimbo1708
Member
 
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154

Original Poster
Rep: Reputation: 31
This is the last bump I am going to do, I promise, but I would really appreciate some help.

- Jim
 
Old 02-22-2009, 12:38 AM   #4
jarober
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
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.
 
Old 02-22-2009, 12:04 PM   #5
jimbo1708
Member
 
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jarober View Post
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Install Intrepid Server PV DomU at Xen 3.3.0 Intrepid Server Dom0 (kernel 2.6.2 LXer Syndicated Linux News 0 01-01-2009 08:10 PM
Using laptop with headless server??? sundancekidster Linux - Hardware 4 07-23-2007 11:27 PM
Headless Server Install steve4586 Linux - General 3 12-14-2006 06:13 AM
headless server maintanence danimalz Debian 11 03-12-2006 01:29 AM
headless server gravij Linux - General 2 06-06-2004 07:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration