Error Trying to Build DIRTSAND Server

Announcements and discussion regarding any projects related to Cyan Worlds' Plasma Engine including (but not limited to) CyanWorlds.com Engine, Drizzle, OfflineKI, PyPRP, and libHSPlasma.

Error Trying to Build DIRTSAND Server

Postby PeterC » Thu Aug 30, 2012 10:53 am

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?
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
User avatar
PeterC
 
Posts: 56
Joined: Sun Jun 03, 2012 9:37 am

Re: Error Trying to Build DIRTSAND Server

Postby Lyrositor » Thu Aug 30, 2012 12:55 pm

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++".
Lyrositor
Explorer #16601888
User avatar
Lyrositor
Director of Wiki Operations
 
Posts: 208
Joined: Tue Feb 07, 2012 6:05 pm

Re: Error Trying to Build DIRTSAND Server

Postby PeterC » Thu Aug 30, 2012 2:32 pm

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)
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
User avatar
PeterC
 
Posts: 56
Joined: Sun Jun 03, 2012 9:37 am

Re: Error Trying to Build DIRTSAND Server

Postby Lyrositor » Thu Aug 30, 2012 2:57 pm

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
User avatar
Lyrositor
Director of Wiki Operations
 
Posts: 208
Joined: Tue Feb 07, 2012 6:05 pm

Re: Error Trying to Build DIRTSAND Server

Postby PeterC » Thu Aug 30, 2012 3:17 pm

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
User avatar
PeterC
 
Posts: 56
Joined: Sun Jun 03, 2012 9:37 am

Re: Error Trying to Build DIRTSAND Server

Postby Lyrositor » Thu Aug 30, 2012 4:58 pm

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.
Lyrositor
Explorer #16601888
User avatar
Lyrositor
Director of Wiki Operations
 
Posts: 208
Joined: Tue Feb 07, 2012 6:05 pm

Re: Error Trying to Build DIRTSAND Server

Postby PeterC » Thu Aug 30, 2012 5:17 pm

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+.
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
User avatar
PeterC
 
Posts: 56
Joined: Sun Jun 03, 2012 9:37 am

Re: Error Trying to Build DIRTSAND Server

Postby Lyrositor » Thu Aug 30, 2012 5:27 pm

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
User avatar
Lyrositor
Director of Wiki Operations
 
Posts: 208
Joined: Tue Feb 07, 2012 6:05 pm

Re: Error Trying to Build DIRTSAND Server

Postby PeterC » Thu Aug 30, 2012 6:18 pm

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
User avatar
PeterC
 
Posts: 56
Joined: Sun Jun 03, 2012 9:37 am

Re: Error Trying to Build DIRTSAND Server

Postby Lyrositor » Thu Aug 30, 2012 6:51 pm

No, git is only used to download the sources for Plasma.
Lyrositor
Explorer #16601888
User avatar
Lyrositor
Director of Wiki Operations
 
Posts: 208
Joined: Tue Feb 07, 2012 6:05 pm

Next

Return to Plasma Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron