I downloaded the sources of xboard from here: http://ftp.gnu.org/gnu/xboard/ . Then I didn`t extract the files (should I?) but saved the files so they are visible in my downloads (xboard-4.7.2.tar.gz). Then I opened the terminal window and typed: sudo zypper install xboard-4.7.2.tar.gz . After that the terminal window showed:
Loading repository data…
Reading installed packages…
‘xboard-4.7.2.tar.gz’ not found in package names. Trying capabilities.
No provider of ‘xboard-4.7.2.tar.gz’ found.
Resolving package dependencies…
Does anyone know what I should do? /or how can I change directory to the source files in the terminal window?
‘xboard-4.7.2.tar.gz’ not found in package names. Trying capabilities.
No provider of ‘xboard-4.7.2.tar.gz’ found.
are you trying to install the zipped SOURCECODE file as if it were a rpm ???
that will not work
you have to compile the SORUCECODE
then install it
it is NOT a precompiled “package” you can install with zypper
Then I didn`t extract the files (should I?)
YES
then read the two files in it called README and INSTALL
you will also have to install EVERY needed program that is needed to build the source
BEFORE you can build this source
but do yourself a very big favor and use the packagemanager
and use the games repo as “malcolmlewis” mentioned
and the "add and install software " GUI in yast2
or the terminal using “zypper”
Now I installed xboard from here http://software.opensuse.org/package/xboard and chose “unstable packages” and clicked openSUSE 13.1 and installed games 4.7.2 from the list. However now I can open xboard but it complains failed to start first chess program fairymax on localhost: fairymax: No such file or directory
So I first need to extract the polyglot file and stockfish files? After that I planned to use the command: sudo zypper install xboard polyglot stockfish and see where I get
So I first need to extract the polyglot file and stockfish files? After
that I planned to use the command: sudo zypper install xboard polyglot
stockfish and see where I get
Hi
It doesn’t work like that unfortunately, they need extracting compiling
and installing, basically turn the source into a compiled application.
There are normally readme’s included on what is needed to be installed
to compile etc.
The zypper application is for installing rpm’s which adds extra steps
from the above to ‘package’ up all the bits and pieces and add
additional steps (macros) to do things like run a macro after the
program is installed to add to the menu system, or start a daemon etc
Windows applications don’t work nativeley in linux, there is wine, but
then you need to install all the windows associated apps to maybe get
it to work. You can use virtualization to install a copy of windows and
run your applications, there is also a product called crossover (wine
based) that can be used YMMV for this though.
–
Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
openSUSE 13.1 (Bottle) (x86_64) GNOME 3.10.2 Kernel 3.11.10-7-desktop
If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below… Thanks!
So add the Packman repo if you haven’t done so already (for multimedia stuff f.e.), either in YaST->Software Repositories->Add->Community Repositories, or by running:
sudo zypper ar http://packman.inode.at/suse/13.1/ Packman
Then you can install polyglot with YaST->Software Management or:
sudo zypper in polyglot
No idea about stockfish though.
But other engines available as ready packages for openSUSE (and usable with xboard) include crafty and phalanx. The former is available in the Packman repo as well, the latter is even included in the standard distribution, so you can just install it in YaST->Software Management and with zypper.
Thanks for your advices. I decided download stockfish DD source code from here: http://stockfishchess.org/ and extracted into stockfish-dd-src filefolder. When I double clicked it, it opens some files like polyglot.ini, Readme.md, src and src_c11. I opened readme and there was: ### Compiling it yourself
On Unix-like systems, it should be possible to compile Stockfish
directly from the source code with the included Makefile.
In general it is recommended to run make help to see a list of make
targets with corresponding descriptions.
I went back to the stockfish-dd-src filefolder and clicked on src showing some random files. I found Makefile and there was something like: ### Section 1. General Configuration
Extract the archive you downloaded, open a terminal window, cd into the stockfish directory (the one that contains the Makefile) and run “make”.
As the documentation says, you can also run “make help” to get a list of options you can add to “make”.
Most likely you will have to install some other packages as well though, like “make” and a C compiler.
Better run YaST->Software Management, click on “View”->“Patterns” and install the C/C++ development pattern.
On 2014-02-15 21:16, matrix wrote:
>
> Ok…
>
> stockfish-dd-src filefolder. When I double clicked it, it opens some
…
> I went back to the stockfish-dd-src filefolder and clicked on src
> The question is how can I compile stockfish? Help would be appreciated,
Well… first thing, you can not click your way around. You need working
on a terminal. Are you comfortable with that?
Now I installed Meta package for pattern development C++ and GNUmake + 140 other things(during the installation). “Extract the archive you downloaded, open a terminal window, cd into the stockfish directory (the one that contains the Makefile) and run “make”.”
I have already extracted the stockfish into stockfish-dd-src filefolder. Im having trouble following "open a terminal window, cd into the stockfish directory (the one that contains the Makefile) and run “make”. I opened terminal window and typed “make” and it says make: *** No targets specified and no makefile found. Stop.
I can go downloads > stockfish-dd-src > src > Makefile.
Now I installed Meta package for pattern development C++ and GNUmake + 140 other things(during the installation). “Extract the archive you downloaded, open a terminal window, cd into the stockfish directory (the one that contains the Makefile) and run “make”.”
I have already extracted the stockfish into stockfish-dd-src filefolder. Im having trouble following "open a terminal window, cd into the stockfish directory (the one that contains the Makefile) and run “make”. I opened terminal window and typed “make” and it says make: *** No targets specified and no makefile found. Stop.
I can go downloads > stockfish-dd-src > src > Makefile.
If I understand you correctly, you should type this to make the directory containing the Makefile the current directory:
cd ~/Downloads/stockfish-dd-src/src
Then running “make” should work.
To install it, you would have to run “sudo make install” afterwards, it will be installed to /usr/local/bin then by default (that’s why you need to run it with root rights, i.e. sudo).
kimon@Host-001:~> cd ~/Downloads/stockfish-dd-src/src
kimon@Host-001:~/Downloads/stockfish-dd-src/src> make
To compile stockfish, type:
make target ARCH=arch [COMP=comp]
Supported targets:
build > Standard build
signature-build > Standard build with embedded signature
profile-build > PGO build
signature-profile-build > PGO build with embedded signature
strip > Strip executable
install > Install executable
clean > Clean up
Supported archs:
x86-64 > x86 64-bit
x86-64-modern > x86 64-bit with popcnt support
x86-32 > x86 32-bit with SSE support
x86-32-old > x86 32-bit fall back for old hardware
linux-ppc-64 > PPC-Linux 64 bit
osx-ppc-64 > PPC-Mac OS X 64 bit
osx-ppc-32 > PPC-Mac OS X 32 bit
osx-x86-64 > x86-Mac OS X 64 bit
osx-x86-32 > x86-Mac OS X 32 bit
armv7 > ARMv7 32 bit
general-64 > unspecified 64-bit
general-32 > unspecified 32-bit
Supported compilers:
gcc > Gnu compiler (default)
mingw > Gnu compiler with MinGW under Windows
clang > LLVM Clang compiler
icc > Intel compiler
Non-standard targets:
make hpux > Compile for HP-UX. Compiler = aCC
Examples. If you don’t know what to do, you likely want to run:
make build ARCH=x86-64 (This is for 64-bit systems)
make build ARCH=x86-32 (This is for 32-bit systems)
kimon@Host-001:~/Downloads/stockfish-dd-src/src> make target ARCH=arch [COMP=comp]
make: *** No rule to make target `target’. Stop.
kimon@Host-001:~/Downloads/stockfish-dd-src/src>
On a related subject, but not 100% on topic, sometime back I created a wiki on Chess game applications for openSUSE. I mention xboard and other chess applications in that wiki. Shortly after a large openSUSE community wiki migration activity took place, where a new standard for wiki formatting was requested and implemented, and that chess wiki that did not meet that standard, wiki such as that were archived and eventually made difficult to access. The idea being to encourage the migration.
Unfortunately, when this migration occured, for personal and employment reasons (wrt the job that actually pays me a salary and helps pays the rent), I no longer had the time to maintain such. Instead, I copied the wiki information here: openSUSE chess applications under oldcpu page
I have not updated this for sometime - and I’m hoping in a few years from now, when I retire from paid employed work, I’ll be able to spend more time updating such wiki that I created a number of years in the past.
What I do with my Packman packager installed polygot and stockfish20, with xboard already installed, to run the program is send the command:
xboard -size medium -fd '/usr/share/stockfish20' -fcp 'polyglot stockfish20.ini'
One needs a ‘stockfish20.ini’ file, and I do not know if that is automatically generated when stockfish is compiled/installed. I can post the packman packager packaged version of the file here if it is of any help. Its not large, only ~50 lines or so, with configuration information (specifies both book file, specifies the engine command, specifies various hash information such as book, game play tuning, etc … ).