[SOLVED] Local test server issues

Ask for help regarding any technical issue or report any bug or OS independent issues.
Post Reply
ddrichards
Peon
Peon
Posts: 12
Joined: 25 Nov 2016, 15:37

[SOLVED] Local test server issues

Post by ddrichards »

I apologize if this is the wrong area, but I am looking to get some help in regards to setting up a local test server. I've followed the steps provided on the How-To Develop page, but every time I try to connect to the server using the script, I get an error stating it is unable to connect.

"Couldn't connect to remote host."

I am running Ubuntu 16.04 64bit.

Thanks in advance!

Dan
Last edited by ddrichards on 28 Nov 2016, 01:53, edited 1 time in total.
User avatar
Reid
Lead Developer (SoM)
Lead Developer (SoM)
Posts: 1549
Joined: 15 May 2010, 21:39
Location: Artis
Contact:

Re: Local test server issues

Post by Reid »

Heya,

Are you trying to set up an hercules-evol or a tmwa local server?
"Time is an illusion. Lunchtime doubly so."
-- Ford Prefect
ddrichards
Peon
Peon
Posts: 12
Joined: 25 Nov 2016, 15:37

Re: Local test server issues

Post by ddrichards »

I am setting up the Hercules-Evol server. Well, trying to anyhow. lol
User avatar
Reid
Lead Developer (SoM)
Lead Developer (SoM)
Posts: 1549
Joined: 15 May 2010, 21:39
Location: Artis
Contact:

Re: Local test server issues

Post by Reid »

Do you have any visible errors on your terminals?
"Time is an illusion. Lunchtime doubly so."
-- Ford Prefect
User avatar
WildX
Source of Mana
Source of Mana
Posts: 2084
Joined: 07 Aug 2010, 14:13
Location: United Kingdom
Contact:

Re: Local test server issues

Post by WildX »

Moving to support forum. Don't mind me, continue the discussion!

TMW Team member

ddrichards
Peon
Peon
Posts: 12
Joined: 25 Nov 2016, 15:37

Re: Local test server issues

Post by ddrichards »

The only terminal I have open is the one that launches the client. My guess is there are some steps missing from the doc to maybe start the server processes?
User avatar
Reid
Lead Developer (SoM)
Lead Developer (SoM)
Posts: 1549
Joined: 15 May 2010, 21:39
Location: Artis
Contact:

Re: Local test server issues

Post by Reid »

ddrichards wrote:The only terminal I have open is the one that launches the client. My guess is there are some steps missing from the doc to maybe start the server processes?
https://www.themanaworld.org/index.php/ ... cal_server
"Time is an illusion. Lunchtime doubly so."
-- Ford Prefect
ddrichards
Peon
Peon
Posts: 12
Joined: 25 Nov 2016, 15:37

Re: Local test server issues

Post by ddrichards »

Thanks!

When I run the installconfig script, I get the following.

mkdir: cannot create directory ‘../../server-data/conf/import’: File exists
cp: cannot stat 'conf/inter_conf.txt': No such file or directory
mkdir: cannot create directory ‘versions’: File exists

If I ignore that error and try to run the build.sh, I get:

make: *** No rule to make target 'clean'. Stop.
./build.sh: line 22: autoreconf: command not found


Thoughts?

Thanks again for the help!
User avatar
Reid
Lead Developer (SoM)
Lead Developer (SoM)
Posts: 1549
Joined: 15 May 2010, 21:39
Location: Artis
Contact:

Re: Local test server issues

Post by Reid »

ddrichards wrote:./build.sh: line 22: autoreconf: command not found
All these other dependencies need to be installed regardless of sql used:

* zlib-dev or zlib1g-dev package, libpcre-dev, gcc, make, automake, autoconf, libtool
https://www.themanaworld.org/index.php/ ... ependacies
:)
"Time is an illusion. Lunchtime doubly so."
-- Ford Prefect
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Local test server issues

Post by wushin »

The How-to is updated, it should be easier and clearer to set-up a local server with these instructions.

https://www.themanaworld.org/index.php/ ... cal_server
The secret to getting all the important stuff done is doing nothing.
ddrichards
Peon
Peon
Posts: 12
Joined: 25 Nov 2016, 15:37

Re: Local test server issues

Post by ddrichards »

Thanks for the updates. All pre-reqs are installed. I'm not sure if this is good or not, but I get some errors with the Make new command.

Code: Select all

cd ../tools/localserver/ ; ./build.sh
make[1]: Entering directory '/tmw-server/evol-all/server-code'
make[1]: *** No rule to make target 'clean'.  Stop.
make[1]: Leaving directory '/tmw-server/evol-all/server-code'
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for Linux epoll(4)... yes
checking whether make sets $(MAKE)... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking how to run the C preprocessor... gcc -E
checking for ar... /usr/bin/ar
checking whether byte ordering is bigendian... no
checking whether gcc produces 32bit code... no
checking how to make shared objects... -shared yes
checking whether gcc needs -Wl,--no-undefined to check for undefined references in shared objects... yes
checking whether gcc supports -fno-strict-aliasing... yes
checking for setrlimit... yes
checking for strnlen... yes
checking for uselocale... yes
checking for newlocale... yes
checking for freelocale... yes
checking xlocale.h usability... yes
checking xlocale.h presence... yes
checking for xlocale.h... yes
checking whether gcc supports -fno-omit-frame-pointer... yes
checking host OS... Linux
checking for MinGW... no
checking for library containing inflateEnd... -lz
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for library containing sqrt... -lm
checking for library containing clock_gettime... none required
checking whether CLOCK_MONOTONIC is supported and works... yes
checking for library containing pthread_create... -lpthread
checking for library containing pthread_sigmask... none required
checking for library containing pthread_attr_init... none required
checking for library containing pthread_attr_setstacksize... none required
checking for library containing pthread_attr_destroy... none required
checking for library containing pthread_cancel... none required
checking for library containing pthread_join... none required
checking execinfo.h usability... yes
checking execinfo.h presence... yes
checking for execinfo.h... yes
checking for library containing backtrace... none required
checking for mysql_config... no
checking for mysql_init... no
checking mysql.h usability... no
checking mysql.h presence... no
checking for mysql.h... no
checking MySQL library (required)... no
configure: error: MySQL not found or incompatible
Makefile:11: recipe for target 'build' failed
make: *** [build] Error 1
User avatar
wushin
TMW Adviser
TMW Adviser
Posts: 1759
Joined: 18 Dec 2012, 05:56
Location: RiverBest, Brew City, Merica
Contact:

Re: Local test server issues

Post by wushin »

Missing the development libraries for mysql. Search your repos on your OS for mysql development package, install that and retry.

Plus state OS and Version you are using.
The secret to getting all the important stuff done is doing nothing.
ddrichards
Peon
Peon
Posts: 12
Joined: 25 Nov 2016, 15:37

Re: Local test server issues

Post by ddrichards »

The OS is Ubuntu 16.04 64 bit.
ddrichards
Peon
Peon
Posts: 12
Joined: 25 Nov 2016, 15:37

Re: Local test server issues

Post by ddrichards »

This has been fixed following the new tutorial. Thanks!!
Post Reply