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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
01-06-2009, 05:27 PM
|
#1
|
Member
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154
Rep:
|
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
|
|
|
01-07-2009, 09:26 AM
|
#2
|
Member
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154
Original Poster
Rep:
|
bump
|
|
|
01-08-2009, 09:31 PM
|
#3
|
Member
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154
Original Poster
Rep:
|
This is the last bump I am going to do, I promise, but I would really appreciate some help.
- Jim
|
|
|
02-22-2009, 01:38 AM
|
#4
|
LQ Newbie
Registered: Feb 2009
Posts: 1
Rep:
|
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.
|
|
|
02-22-2009, 01:04 PM
|
#5
|
Member
Registered: Jan 2007
Location: Pennsylvania
Distribution: Ubuntu 8.10 Server/9.04 Desktop, openSUSE 11.1
Posts: 154
Original Poster
Rep:
|
Quote:
Originally Posted by jarober
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 09:33 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|