Linux - SoftwareThis 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.
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.
I have xboard and Gnuchess from rpm. I downloaded and unpacked the Spike_12_linux .tar.gz in /opt and chowned to my user acccount. When I typed 'sudo xboard -fcp /opt/spike' I got "failed to start first chess program on local host spike --no such file or directory. also three "broken pipe" dialog boxes in xboard. How do I get gnuchess and Spike to play against each other and myself? I'm guessing I have to move the spike files but where? Thanks
Thanks for your help. I do know that the /opt directory is root priveliged which could be goofing things up. Thats why I think I might have to move the files. For Simon I will post ls output from 'sudo ls -l /opt/spike' I do have to sudo just to get this info.
-rwxr-xr-x 1 joe joe 1348395 Nov 3 2006 /opt/spike
I tried the -fd option and got three fatal errors again.
sudo xboard -fcp spike -fd /opt/spike
Password:
xboard: Error writing to first chess program: Broken pipe
xboard: Error: first chess program (spike) exited unexpectedly
xboard: Error writing to first chess program: Broken pipe
xboard: Error writing to first chess program: Broken pipe
xboard: Error writing to first chess program: Broken pipe
xboard: Error writing to first chess program: Broken pipe
Warning: XtRemoveGrab asked to remove a widget not on the list
I think the spike and all its files need to go in the same Dir as gnu but I don't know where.
hi guys iam looking for fredora or redhat it work without installaion in the PC called (live CD )can you guide me to find some web site to dwonload >>>
regards
I do know that the /opt directory is root priveliged which could be goofing things up.
Sorry, I thought /opt/spike was a directory, but it is the executable. Generally it is a better idea to keep things together in a subdir of /opt rather than in /opt itself. How about the following (which supposes /opt only contains the spike stuff):
sudo rm /opt/*
sudo mkdir /opt/Spike
sudo chown joe:joe /opt/Spike
cd /opt/Spike
gzip -cd <path to spike.tar.gz> | tar xvf -
booksh: you're off topic here. The thread is about chess programs.
minimal help follows:
google is your freind... also try looking up the distros you are interested in at Distrowatch or at the LQ ISO page. Do familiarize yourself with the services LQ offers.
That's a good lesson for me thanks. The file structure stuff is still bit awkward for me (used to windows). The Spike_12_linux.tar.gz is in /opt too. If I input 'sudo rm /opt/*' won't that go too? So just to clarify; do I need to move the .tar.gz back to the desktop and then run your commands?
So just to clarify; do I need to move the .tar.gz back to the desktop and then run your commands?
Hope you haven't nuked your tar.gz already
'sudo rm /opt/*' will remove all files from /opt. So definitely move or copy anything you want to save. It won't remove directories. If you want to be selective just remove the files one-by-one. Or just make a new directory and move the files into it using 'mv'.
Most tar.gz packages unpack into their own directory. This stops the files getting mixed up with what's already there. Don't know why spike didn't do that.
If you are not familiar with basic commands like rm, mv, cp and their options, use of pattern matching with '*' and so on, you should look for a beginner's guide to unix/linux and play around with them a bit.
I was confused by spike not creating its own directory also because that's what all the books say. So....I read the spike read me and it said to move the files into the same directory as xboard (which spike was tested with) and run 'xboard -fcp ./spike' So I moved the files to /usr/bin/ where xboard resides and got the same broken pipe dialogs. I noticed that local user owns spike but xboard is owned by root so I ran it with sudo and that didn't work either. I don't understand why xboard starts without sudo if it's owned by root but it works fine with gnuchess.
spike joe joe
xboard root root
gnuchess root games
all these have a *at the end in /usr/bin/ What does that mean?
Do think ownership is problem?
I don't think linux is to blame for your problems. I downloaded a copy of spike and unpacked it into directory ~/Src/Spike (the '~' can always be used as shorthand for your home directory). Initially I tried
xboard -fd ~/Src/Spike -fcp spike
and got the same error as you. Then I tried the full path name of the executable spike file:
xboard -fd ~/Src/Spike -fcp ~/Src/Spike/spike
and it worked. At least I did P-K4 and somebody replied with P-K4. No sudo stuff needed.
The man page for xboard was not very clear on this. Maybe it assumes 'spike' is in the user's PATH (the list of dirs which get searched when you run a program).
The advice in the spike README was not that great either when xboard is in /usr/bin. The spike author was probably a great programmer, but not so good at packaging his work in a foolproof way.
IMHO making your own directory as above is the best solution.
Last edited by maroonbaboon; 09-10-2007 at 05:43 PM.
I can't thank you enough. I would have never figured that out. I deleted all the files, moved the tar .gz to ~/Src/Spike (after creating the directories) and unpacked it again there. I pasted your command and it worked! I quess the programmer took liberties when he didn't make spike unpack to its own directory. (ps. ...while doing this I accidently sent the Spike.cnfg to a file named src in my home. I believe its the src code for "jin" chess interface so I removed it. Is there a command for "undo move? I'm just topping off this thread (which I think is a good one) for other newbies. Thanks again for your time.
while doing this I accidently sent the Spike.cnfg to a file named src in my home. I believe its the src code for "jin" chess interface so I removed it. Is there a command for "undo move?
Not quite sure I understand what you did there. If you have deleted or overwritten something there is no easy and guaranteed way to get it back (unless you are using a desktop/file manager with a trashcan). If it is just some source code it is usually easy to get another copy. If it's important, well, best to have a backup. If you just mv'ed it to the wrong place, mv it again
Nothing wrong with using a file manager. Just if you are familiar the command line it is often quicker than groping around with a mouse.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.