Anybody has a compiled stockfish engine for ubuntu?

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

menniepals
Posts: 265
Joined: Wed Mar 08, 2006 8:31 pm
Location: Houston, Texas

Anybody has a compiled stockfish engine for ubuntu?

Post by menniepals »

Hello, I am having trouble to compile the latest stockfish under ubuntu for some reason. It also tells me something like permission denied. If anybody has a kind heart around, please send me a compiled stockfish engine..Thanks a lot. Yours, Alfred
apalangjr@gmail.com
mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: Anybody has a compiled stockfish engine for ubuntu?

Post by mcostalba »

menniepals wrote:Hello, I am having trouble to compile the latest stockfish under ubuntu for some reason. It also tells me something like permission denied. If anybody has a kind heart around, please send me a compiled stockfish engine..Thanks a lot. Yours, Alfred
apalangjr@gmail.com
Could you please post the compile messages (all that stuff that is printed from when you write 'make' in the console window)

It would be very nice if you can do this so that I can try to understund what went wrong.

Thanks in advance
Marco
Ryan Benitez
Posts: 719
Joined: Thu Mar 09, 2006 1:21 am
Location: Portland Oregon

Re: Anybody has a compiled stockfish engine for ubuntu?

Post by Ryan Benitez »

Could it be a permissions issue? Try typing su then entering your password when prompted before typing make.
mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: Anybody has a compiled stockfish engine for ubuntu?

Post by mcostalba »

Ryan Benitez wrote:Could it be a permissions issue? Try typing su then entering your password when prompted before typing make.
Sorry, but I don't completely agree here. You should not be forced to compile as root or you have something wrong in your setup.

In my opinion the most sane thing to do is to look at the build output and see what's happened.
zamar
Posts: 613
Joined: Sun Jan 18, 2009 7:03 am

Re: Anybody has a compiled stockfish engine for ubuntu?

Post by zamar »

Possible issues:

* Compiling is done by default with intel C++ compiler. Most people don't have it installed in their systems, so you need either download it manually from Intel's website (it's free, but requires registration) or do compiling with gcc. To do compiling with gcc you need to edit Makefile:

From this:

# CXX = g++
# CXX = g++-4.2
CXX = icpc

to this:

CXX = g++
# CXX = g++-4.2
# CXX = icpc

* As Ryan pointed out it could be a permission issue. You get messages like that if you have performed some operations as root and then try to redo things as normal user.


Anyway, if you can't get out of this mess yourself, I guess I could do a Linux-compile for you some day. You need a 64-bit or 32-bit version?
Joona Kiiski
Ryan Benitez
Posts: 719
Joined: Thu Mar 09, 2006 1:21 am
Location: Portland Oregon

Re: Anybody has a compiled stockfish engine for ubuntu?

Post by Ryan Benitez »

mcostalba wrote:
Ryan Benitez wrote:Could it be a permissions issue? Try typing su then entering your password when prompted before typing make.
Sorry, but I don't completely agree here. You should not be forced to compile as root or you have something wrong in your setup.

In my opinion the most sane thing to do is to look at the build output and see what's happened.
Well my suggestion is not a good habit but it seems low risk in this case. It is likely that Joona is on the right path with his suggestion about the compiler but I would have expected a command not found message.
mcostalba
Posts: 2684
Joined: Sat Jun 14, 2008 9:17 pm

Re: Anybody has a compiled stockfish engine for ubuntu?

Post by mcostalba »

Ryan Benitez wrote: but I would have expected a command not found message.
Yes, it should be like that, if I remember correctly, if you try to access a file in a directory where you don't have permissions.
User avatar
Zach Wegner
Posts: 1922
Joined: Thu Mar 09, 2006 12:51 am
Location: Earth

Re: Anybody has a compiled stockfish engine for ubuntu?

Post by Zach Wegner »

You'd get the same message if you try to execute a non-executable file. Which is a permissions issue.
glorfindel

Re: Anybody has a compiled stockfish engine for ubuntu?

Post by glorfindel »

menniepals wrote: It also tells me something like permission denied.
Maybe you are trying to compile StockFish inside a directory where you don't have write permissions? In that case, no need to become root, simply move the StockFish sources in a writeable directory in your home (~/) dir.
Just an idea ...
menniepals
Posts: 265
Joined: Wed Mar 08, 2006 8:31 pm
Location: Houston, Texas

Re: Anybody has a compiled stockfish engine for ubuntu?

Post by menniepals »

No problem now. I am using now Arena with wine and then stockfish. This is much easier solution. But I think Stockfish is one of the prime engines we should be watching in the future. It is very strong.