Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome. |
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.
|
|
03-11-2008, 11:01 PM
|
#1
|
Member
Registered: Jan 2007
Posts: 70
Rep:
|
Synergy and Solaris
I have synergy configured on most of my PC's here and find it a godsend. It is truly fantastic and easy to use... I have installed it previously on ubuntu, Win2003Server and WinXPPro without much a-do. But I am having trouble getting it to run on Solaris.
I have downloaded the tar file, and expanded it in a new directory under /local/synergy
I have set the conf file to the appropriate settings for my system here, but when I go to run synergyc (the client - as the server is another pc) I get an error:
bash: ./synergy: cannot execute binary file
I have checked the permissions, it is set to root and I am su.
file returns:
Code:
#file synergyc
synergyc: java class file
So what I am thinking, is the class file the code or the compiled executable? I'm sure it's executable, but not 100% sure.
If that is fine, then why would it not execute it?
Any hints?
|
|
|
03-12-2008, 04:30 AM
|
#2
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
|
Java class files must have the .class extension (eg: ClassName.class) and can then be run with the command "java ClassName".
|
|
|
03-13-2008, 10:43 AM
|
#3
|
Member
Registered: Jan 2007
Posts: 70
Original Poster
Rep:
|
Quote:
Originally Posted by jlliagre
Java class files must have the .class extension (eg: ClassName.class) and can then be run with the command "java ClassName".
|
It's not that (I don't think), but i tried it anyway. renamed it to have a .class and ran java synergc (and even tried java synergyc.class)
if I just try ./synergyc it appears that it the shell doesn't know what to do with it, and nor do I.
|
|
|
03-13-2008, 09:54 PM
|
#4
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
|
So can you provide more hints about this synergy binary download ?
Is there a readme file ?
|
|
|
03-13-2008, 10:59 PM
|
#5
|
Member
Registered: Jan 2007
Posts: 70
Original Poster
Rep:
|
Quote:
Originally Posted by jlliagre
So can you provide more hints about this synergy binary download ?
Is there a readme file ?
|
Ok, I feel like an idiot. I went to find the download location to show you, and was misguided by the right hand side which says platform independent. But when i checked the name of the binary again I just noticed it was for OSX not unix specifically.
Taking into consideration your post on my other thread about gcc being installed (just not in the path), I am going to add it to the path and try compiling it myself. <fingers-crossed>
I have always been lazy and downloaded binaries for my linux distros. So now I am doing the quick learning thing re sourceforge and cvs et al to get this working... a good learning experience.
I'm going to go ahead and give this a go, but this is my plan:
- download source code from sourceforge
- add gcc to path
- compile the bugger
- AND SYNERGIZE my desktop! :-)
Sounds simple...
|
|
|
03-13-2008, 11:12 PM
|
#6
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
|
There is a simpler way, just download an already compiled package for Solaris here:
http://www.sunfreeware.com/programli...0.html#synergy
You'll need to install first libgcc3.4 support files:
http://www.sunfreeware.com/programli....html#libgcc34
Here are the commands that should do the job:
Code:
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libgcc-3.4.6-sol10-x86-local.gz
gunzip libgcc-3.4.6-sol10-x86-local.gz
pkgadd -G -d libgcc-3.4.6-sol10-x86-local
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/synergy-1.3.1-sol10-x86-local.gz
gunzip synergy-1.3.1-sol10-x86-local.gz
pkgadd -G -d synergy-1.3.1-sol10-x86-local
|
|
|
03-13-2008, 11:37 PM
|
#7
|
Member
Registered: Jan 2007
Posts: 70
Original Poster
Rep:
|
I'm getting better at this... I have learned not to put spaces or use the word SET when trying to set the path (I know, I don't know what I was thinking)...
gcc added to the path, that seemed to work well
./configure did a whole lot of things - actually I used the command:
./configure --x-includes=/usr/openwin/include --x-libraries=/usr/openwin/lib from here
That has appeared to work, but the very next instruction doesn't work... "make"
Code:
# make
bash: make: command not found
Code:
#find / -name make
/usr/share/lib/make
/usr/ccs/bin/make
/usr/xpg4/bin/make
using ls -al `find / -name make`
confirms the first is a dir and the latter 2 are executables... they have the same date and file size... so I will use it explicitly... and it doesn't work. fatal errors. command failed.
Now I am stuck. Hints? (I truly appreciate your help here)
|
|
|
03-13-2008, 11:48 PM
|
#8
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
|
Add /usr/ccs/bin to your PATH to get the proper make.
Alternatively, and often a better solution with open source software where the toolchain is assumed to be gnu, use gmake (GNU make) instead of make.
But what about my last suggestion (sunfreeware) ?
|
|
|
03-14-2008, 12:34 AM
|
#9
|
Member
Registered: Jan 2007
Posts: 70
Original Poster
Rep:
|
Quote:
Originally Posted by jlliagre
...But what about my last suggestion (sunfreeware) ?
|
we must have been typing at roughly the same time, I never saw that post... although my post comes up as 2:37 (mytime), I had the window open for some time compiling my bits.
thanks trying now
|
|
|
03-14-2008, 01:05 AM
|
#10
|
Member
Registered: Jan 2007
Posts: 70
Original Poster
Rep:
|
Quote:
Originally Posted by jlliagre
Code:
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/libgcc-3.4.6-sol10-x86-local.gz
gunzip libgcc-3.4.6-sol10-x86-local.gz
pkgadd -G -d libgcc-3.4.6-sol10-x86-local
wget ftp://ftp.sunfreeware.com/pub/freeware/intel/10/synergy-1.3.1-sol10-x86-local.gz
gunzip synergy-1.3.1-sol10-x86-local.gz
pkgadd -G -d synergy-1.3.1-sol10-x86-local
|
You are a God, aren't you?
You have been a tremendous help!
Watch out for my next thread :-)
|
|
|
03-14-2008, 04:12 AM
|
#11
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789
|
I'm afraid I'm not
Looking forward your next thread !
|
|
|
03-14-2008, 05:21 AM
|
#12
|
Member
Registered: Jan 2007
Posts: 70
Original Poster
Rep:
|
I know we all must start somewhere but if this has been a tenth as painful for you as it has for me, then that just makes my thanks all the more deserved.
I've said it before, I hate being a noob, I feel like I'm 12 again and just have no idea what's going on.
But thanks to you, I am moving forward at a great rate of knots. I thank you from the depths of my storage drives for your assistance. Thanks mate.
|
|
|
All times are GMT -5. The time now is 10:47 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
|
|