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?
Error Trying to Build DIRTSAND Server
Error Trying to Build DIRTSAND Server
Those wonderfull Worlds are called " Ages" , because that is what it takes to build one. -Dendwaler
Have you even TRIED to set up a client and server? THAT takes ages. -PeterC
Have you even TRIED to set up a client and server? THAT takes ages. -PeterC
- Lyrositor
- Director of Wiki Operations
- Posts: 208
- Joined: Tue Feb 07, 2012 6:05 pm
- MOULa KI#: 6940115
- Contact:
Re: Error Trying to Build DIRTSAND Server
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?

Your system obviously doesn't have the GNU C++ Compiler (GCC) installed. Are you sure you installed all the prerequisites?
In Ubuntu, you should be able to install it using "sudo apt-get install g++".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+.
Lyrositor
Explorer #16601888
Explorer #16601888
Re: Error Trying to Build DIRTSAND Server
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)
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)
Those wonderfull Worlds are called " Ages" , because that is what it takes to build one. -Dendwaler
Have you even TRIED to set up a client and server? THAT takes ages. -PeterC
Have you even TRIED to set up a client and server? THAT takes ages. -PeterC
- Lyrositor
- Director of Wiki Operations
- Posts: 208
- Joined: Tue Feb 07, 2012 6:05 pm
- MOULa KI#: 6940115
- Contact:
Re: Error Trying to Build DIRTSAND Server
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)
Lyrositor
Explorer #16601888
Explorer #16601888
Re: Error Trying to Build DIRTSAND Server
I think I'll take a vacation here. No idea where to find that.
Those wonderfull Worlds are called " Ages" , because that is what it takes to build one. -Dendwaler
Have you even TRIED to set up a client and server? THAT takes ages. -PeterC
Have you even TRIED to set up a client and server? THAT takes ages. -PeterC
- Lyrositor
- Director of Wiki Operations
- Posts: 208
- Joined: Tue Feb 07, 2012 6:05 pm
- MOULa KI#: 6940115
- Contact:
Re: Error Trying to Build DIRTSAND Server
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.
If you know what you're doing, setting up a shard need only take a few minutes to an hour.
Lyrositor
Explorer #16601888
Explorer #16601888
Re: Error Trying to Build DIRTSAND Server
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+.
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+.
Those wonderfull Worlds are called " Ages" , because that is what it takes to build one. -Dendwaler
Have you even TRIED to set up a client and server? THAT takes ages. -PeterC
Have you even TRIED to set up a client and server? THAT takes ages. -PeterC
- Lyrositor
- Director of Wiki Operations
- Posts: 208
- Joined: Tue Feb 07, 2012 6:05 pm
- MOULa KI#: 6940115
- Contact:
Re: Error Trying to Build DIRTSAND Server
You can use Google to find those. Better yet, use Synaptic, and search for the libs (maybe with the -dev prefix too).
Lyrositor
Explorer #16601888
Explorer #16601888
Re: Error Trying to Build DIRTSAND Server
So I don't use git to install libreadline, zlib, OpenSSL or the postgresqk dev packages?
Those wonderfull Worlds are called " Ages" , because that is what it takes to build one. -Dendwaler
Have you even TRIED to set up a client and server? THAT takes ages. -PeterC
Have you even TRIED to set up a client and server? THAT takes ages. -PeterC
- Lyrositor
- Director of Wiki Operations
- Posts: 208
- Joined: Tue Feb 07, 2012 6:05 pm
- MOULa KI#: 6940115
- Contact:
Re: Error Trying to Build DIRTSAND Server
No, git is only used to download the sources for Plasma.
Lyrositor
Explorer #16601888
Explorer #16601888