Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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'm trying to compile a source code, that can be found here.
I downloaded both source codes, and then I wrote (as it is said in the readme file) :
cd $HOME/Downloads/log
make ../oplayl
I got an error saying g++ doesn't exist, so I wrote
sudo apt-get install g++
and then I wrote make ../oplayl again.
But I get a ton of compilation errors.
Can you help me please ?
Well, the tarball doesn't include a ./configure option, but it does incllude a makefile. In reading that makefile, I found a reference to make.i. In reading that file, I found CPPFLAGS, which reference /usr/local/X11/include.
Now, the author doesn't say which Linux distro he used to compile the game. In my distro (OpenSuse 10.3), I don't have a /usr/local/X11/include: I have /usr/include/X11.
Therefore, you need to find where your X11 includes are (locate /X11 | less in a terminal) and scroll down until you find your X11 includes. If they are not in /usr/local, you need to edit make.i and replace every instance of /usr/local/X11/include to show the correct path in your distro,
Then try again.
PS: I hope you realize that the last update of that app was in 2002! If may turn out that the app requires software of an older version than you now have. Installing that older software may break you system unless you take precautions to install that software in some alternate location using CPPFLAGS to specify the prefix, libexec, etc. location.
Last edited by bigrigdriver; 12-11-2009 at 10:50 PM.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
Rep:
Logistello
http://www.cs.ualberta.ca/~mburo/logistello.tar.gz
> > logistello.tar.gz
mkdir logistello
cd logistello
mkdir obj oplayl
tar xvf logistello.tar.gz
cd log
make ../oplayl
.. "log" will compile with g++ version 3.2.3,
.. not g++-3.3 so far. ( May be g++-2.95 will do too.)
Luckily I had CentOS 3.9 started on another computer,
and got the binary = "temp" in a minute.
If you want the result, click my name, send an email.
And I will attach the gzipped 'temp', 203 kB, to a return mail.
.....
P.S : ldd temp → libstdc++.so.5 . Else : no special dependencies.
Should work on any modern Linux.
Tested on PCLinuxOS 2009 (2010) , Debian Etch.
.....
EDIT : Compiles with g++-3.3 on Debian Etch.
.....
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
Rep:
The object made on Debian Etch, using g++-3.3 works on Ubuntu 9.10
using this libstdc++5 package : libstdc++5_3.3.6-18_i386.deb http://ftp.de.debian.org/debian/pool....6-18_i386.deb
.. to be installed with ..
sudo dpkg -i libstdc++5_3.3.6-18_i386.deb
And no, I didn't send anything before I saw your mail.
..... ..
.....
I wrote : sudo dpkg -i libstdc++5_3.3.6-18_i386.deb
answer:
dpkg:error processing libstdc++5_3.3.6-18_i386.deb(--install):
cannot access archive: No such file or directory
errors were encountered while processing:
libstdc++5_3.3.6-18_i386.deb
I wrote sudo dpkg -i /home/'username'/Desktop/libstdc++5_3.3.6-18_i386.deb
(with my username)
answer:
dpkg:error processing /home/'username'/Desktop/libstdc++5_3.3.6-18_i386.deb (--install):
cannot access archive: No such file or directory
errors were encountered while processing:
/home/'username'/Desktop/libstdc++5_3.3.6-18_i386.deb
I wrote : sudo find / -name libstdc++5_3.3.6-18_i386.deb
answer : no result
Just wondering..Are you trying to compile this program as a exercise in learning to compile from source code?? Or you really want a Othello game?? If its the second..Your on Debian right?? If you open Synaptic and search for othello..There are few games that pop up..So If you want a Othello game you dont need to compile it..Unless this is a exercise in compiling from source..If thats the case ..never mind...lol.
Stratotak, the answer is both : I'd like to know how to compile a code, and I'd like to have a good othello game too. I've heard that this one is (or has been, at least, according to wikipedia) the best one in the world. I'm not satisfied with the one that was given with ubuntu (which is the distribution I use, to answer your question), I can beat it by myself.
knudfl, ok, I installed the lib.
then i wrote cd logistello then cd log then make ../oplayl, and I still get a lot of errors.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.