LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   Synergy and Solaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/synergy-and-solaris-627401/)

madivad 03-11-2008 10:01 PM

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?

jlliagre 03-12-2008 03:30 AM

Java class files must have the .class extension (eg: ClassName.class) and can then be run with the command "java ClassName".

madivad 03-13-2008 09:43 AM

Quote:

Originally Posted by jlliagre (Post 3085972)
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.

jlliagre 03-13-2008 08:54 PM

So can you provide more hints about this synergy binary download ?

Is there a readme file ?

madivad 03-13-2008 09:59 PM

Quote:

Originally Posted by jlliagre (Post 3088031)
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...

jlliagre 03-13-2008 10:12 PM

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


madivad 03-13-2008 10:37 PM

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)

jlliagre 03-13-2008 10:48 PM

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) ?

madivad 03-13-2008 11:34 PM

Quote:

Originally Posted by jlliagre (Post 3088138)
...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

madivad 03-14-2008 12:05 AM

Quote:

Originally Posted by jlliagre (Post 3088108)
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 :-)

jlliagre 03-14-2008 03:12 AM

I'm afraid I'm not :)

Looking forward your next thread !

madivad 03-14-2008 04:21 AM

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 01:34 AM.