LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
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


Reply
  Search this Thread
Old 03-11-2008, 11:01 PM   #1
madivad
Member
 
Registered: Jan 2007
Posts: 70

Rep: Reputation: 15
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?
 
Old 03-12-2008, 04:30 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Java class files must have the .class extension (eg: ClassName.class) and can then be run with the command "java ClassName".
 
Old 03-13-2008, 10:43 AM   #3
madivad
Member
 
Registered: Jan 2007
Posts: 70

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlliagre View Post
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.
 
Old 03-13-2008, 09:54 PM   #4
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
So can you provide more hints about this synergy binary download ?

Is there a readme file ?
 
Old 03-13-2008, 10:59 PM   #5
madivad
Member
 
Registered: Jan 2007
Posts: 70

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlliagre View Post
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...
 
Old 03-13-2008, 11:12 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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
 
Old 03-13-2008, 11:37 PM   #7
madivad
Member
 
Registered: Jan 2007
Posts: 70

Original Poster
Rep: Reputation: 15
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)
 
Old 03-13-2008, 11:48 PM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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) ?
 
Old 03-14-2008, 12:34 AM   #9
madivad
Member
 
Registered: Jan 2007
Posts: 70

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlliagre View Post
...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
 
Old 03-14-2008, 01:05 AM   #10
madivad
Member
 
Registered: Jan 2007
Posts: 70

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jlliagre View Post
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 :-)
 
Old 03-14-2008, 04:12 AM   #11
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
I'm afraid I'm not

Looking forward your next thread !
 
Old 03-14-2008, 05:21 AM   #12
madivad
Member
 
Registered: Jan 2007
Posts: 70

Original Poster
Rep: Reputation: 15
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.
 
  


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
Xtest error compiling Synergy bpottle Linux - Software 1 12-12-2009 10:09 AM
configuring/using synergy cucolin@ Linux - Software 1 11-14-2006 04:53 PM
synergy not working geletine Linux - Networking 0 06-17-2006 05:46 PM
Installing Synergy on Slackware. kponenation Slackware 5 02-15-2005 05:50 AM
No Sound from Terratec Synergy 600 nik_c Linux - Hardware 0 12-01-2003 04:58 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 10:47 PM.

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
Open Source Consulting | Domain Registration