Page 1 of 3
Error Trying to Build DIRTSAND Server
Posted:
Thu Aug 30, 2012 10:53 am
by PeterC
I tried, as per the DIRTSAND: Getting started, to build the server. On this instruction:
cmake -DCMAKE_INSTALL_PREFIX=/opt/dirtsand ..
I get:
CMake Error: you CXX compiler: "CMAKE_CXX_COMPILER-NOTFOUND" was not found. Please set CMAKE_CXX_COMPILER to a valid compiler path or name.
CMake Error at CMakeLists.txt:8 (message):
GCC version >=4.6 required
Can anyone help?
Re: Error Trying to Build DIRTSAND Server
Posted:
Thu Aug 30, 2012 12:55 pm
by Lyrositor
I would think you could guess from the error.
Your system obviously doesn't have the GNU C++ Compiler (GCC) installed. Are you sure you installed all the prerequisites?
GCC 4.6+ (other C++11-compliant compilers might work, but haven't been tested),
PostgreSQL: you will need both the libraries (for compiling) and the database server (for the vault),
OpenSSL (libssl),
libreadline,
zlib,
git: used to acquire the source code for DIRTSAND,
cmake: used to create the makefiles for GCC 4.6+.
In Ubuntu, you should be able to install it using "sudo apt-get install g++".
Re: Error Trying to Build DIRTSAND Server
Posted:
Thu Aug 30, 2012 2:32 pm
by PeterC
ok, installed g++. tried to install PostgreSQL, zlib, libreadline, and OpenSSL, all to failure. Going to find them all and DL them. Hope that's right.
Edit: found command "get-apt install postgresql-9.1" that works once I start it with the standard "sudo". Looking for the rest.
Edit: ok, installed G++ and PostgreSQL, tried to rerun:
cmake -DCMAKE_INSTALL_PREFIX=/opt/dirtsand ..
and get:
CMake Error at cmake/FindPostgres.cmake:23 (message):
Could not find PostgreSQL
Call Stack (most recent call first):
CMakeLists.txt:19 (find_package)
Re: Error Trying to Build DIRTSAND Server
Posted:
Thu Aug 30, 2012 2:57 pm
by Lyrositor
You also need to install the development packages for PostgreSQL:
PostgreSQL: you will need both the libraries (for compiling) and the database server (for the vault)
Re: Error Trying to Build DIRTSAND Server
Posted:
Thu Aug 30, 2012 3:17 pm
by PeterC
I think I'll take a vacation here. No idea where to find that.
Re: Error Trying to Build DIRTSAND Server
Posted:
Thu Aug 30, 2012 4:58 pm
by Lyrositor
You need to learn Linux for this to work, specifically Ubuntu. Otherwise, you won't get ANYWHERE fast.
If you know what you're doing, setting up a shard need only take a few minutes to an hour.
Re: Error Trying to Build DIRTSAND Server
Posted:
Thu Aug 30, 2012 5:17 pm
by PeterC
Linux will tell me where the following are located?
GCC 4.6+ (other C++11-compliant compilers might work, but haven't been tested),
PostgreSQL: you will need both the libraries (for compiling) and the database server (for the vault),
OpenSSL (libssl),
libreadline,
zlib,
git: used to acquire the source code for DIRTSAND,
cmake: used to create the makefiles for GCC 4.6+.
Re: Error Trying to Build DIRTSAND Server
Posted:
Thu Aug 30, 2012 5:27 pm
by Lyrositor
You can use Google to find those. Better yet, use Synaptic, and search for the libs (maybe with the -dev prefix too).
Re: Error Trying to Build DIRTSAND Server
Posted:
Thu Aug 30, 2012 6:18 pm
by PeterC
So I don't use git to install libreadline, zlib, OpenSSL or the postgresqk dev packages?
Re: Error Trying to Build DIRTSAND Server
Posted:
Thu Aug 30, 2012 6:51 pm
by Lyrositor
No, git is only used to download the sources for Plasma.