PtokaX > Support

PtokaX Debian/Ubuntu Installer

(1/7) > >>

ATAG:
Very first release..
It helps to download, compile and install PtokaX 0.4.1.1 into /usr/share/PtokaX
Tested only on Ununtu 8.04 ::)


--- Code: ---#!/bin/sh

# install dependencies
echo " "
echo "Looking for dependencies and some other usefull package..."
echo " "

sudo apt-get install liblua5.1-0 liblua5.1-0-dev lua5.1 liblua5.1-filesystem0 liblua5.1-socket2 liblua5.1-sql-mysql-2 liblua5.1-sql-sqlite3-2 zlib1g-dev make g++

# get PtokaX source and extract
echo " "
echo "OK, I'll get the sources..."
echo " "

wget http://www.PtokaX.org/files/0.4.1.1-posix-src.tgz
tar -xf 0.4.1.1-posix-src.tgz
rm 0.4.1.1-posix-src.tgz

# Get tinyxml source and extract
wget http://garr.dl.sourceforge.net/sourceforge/tinyxml/tinyxml_2_5_3.tar.gz
tar -xf tinyxml_2_5_3.tar.gz
rm tinyxml_2_5_3.tar.gz

# copy needed files to PtokaX/tinyxml/src/
cp tinyxml/tinystr.cpp PtokaX/tinyxml/src/
cp tinyxml/tinystr.h PtokaX/tinyxml/src/
cp tinyxml/tinyxml.cpp PtokaX/tinyxml/src/
cp tinyxml/tinyxml.h PtokaX/tinyxml/src/
cp tinyxml/tinyxmlerror.cpp PtokaX/tinyxml/src/
cp tinyxml/tinyxmlparser.cpp PtokaX/tinyxml/src/
rm -r tinyxml

echo " "
echo "Compiling PtokaX. This may take some time..."
echo " "

# build PtokaX
cd PtokaX/tinyxml
make
cd ..
make
chmod +x ./PtokaX

# copy it...
sudo cp -f ./PtokaX /usr/bin/
sudo cp -fr cfg.example /usr/share/PtokaX/
sudo cp -fr scripting.docs /usr/share/PtokaX/
sudo cp -fr language /usr/share/PtokaX/
sudo chmod 777 /usr/share/PtokaX

echo " "
echo "It's ready. Good bye!"
echo " "

--- End code ---

kotur:
Hi,
I have some problems with instaling on CentOS 5. Problem begins after I type this second MAKE.

--- Code: ---[i]" # build PtokaX
cd PtokaX/tinyxml
make
cd ..
make
chmod +x ./PtokaX" [/i]

It writes this:
[root@server PtokaX]# make
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/ClientTagManager.cpp -o /usr/src/PtokaX/obj/ClientTagManager.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/colUsers.cpp -o /usr/src/PtokaX/obj/colUsers.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/DcCommands.cpp -o /usr/src/PtokaX/obj/DcCommands.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/DeFlood.cpp -o /usr/src/PtokaX/obj/DeFlood.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/eventqueue.cpp -o /usr/src/PtokaX/obj/eventqueue.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/globalQueue.cpp -o /usr/src/PtokaX/obj/globalQueue.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/hashBanManager.cpp -o /usr/src/PtokaX/obj/hashBanManager.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/hashUsrManager.cpp -o /usr/src/PtokaX/obj/hashUsrManager.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/hashRegManager.cpp -o /usr/src/PtokaX/obj/hashRegManager.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/HubCommands.cpp -o /usr/src/PtokaX/obj/HubCommands.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/IP2Country.cpp -o /usr/src/PtokaX/obj/IP2Country.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/LanguageManager.cpp -o /usr/src/PtokaX/obj/LanguageManager.o
g++ -g -Wall -Itinyxml/src -I/usr/include -I/usr/local/include -I/usr/include/lua5.1 -I/usr/pkg/include -I/usr/include/lua -I/usr/include/lua/5.1 -c /usr/src/PtokaX/src/LuaBanManLib.cpp -o /usr/src/PtokaX/obj/LuaBanManLib.o
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int GetBan(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:260: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int GetPermBan(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:333: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int GetTempBan(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:406: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int GetRangeBan(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:588: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int GetRangePermBan(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:647: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int GetRangeTempBan(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:696: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int Unban(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:755: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int UnbanPerm(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:791: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int UnbanTemp(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:827: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int UnbanAll(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:861: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int UnbanPermAll(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:892: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int UnbanTempAll(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:923: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int RangeUnban(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:957: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int RangeUnbanPerm(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:992: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int RangeUnbanTemp(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:1027: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int Ban(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:1157: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int BanIP(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:1204: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int BanNick(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:1255: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int TempBan(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:1334: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int TempBanIP(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:1383: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int TempBanNick(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:1437: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int RangeBan(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:1508: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018int RangeTempBan(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:1564: error: \u2018lua_tolstring\u2019 was not declared in this scope
/usr/src/PtokaX/src/LuaBanManLib.cpp: In function \u2018void RegBanMan(lua_State*)\u2019:
/usr/src/PtokaX/src/LuaBanManLib.cpp:1642: error: \u2018luaL_register\u2019 was not declared in this scope
make: *** [/usr/src/PtokaX/obj/LuaBanManLib.o] Error 1

--- End code ---

Do you maybe have idea what can be problem?

Thanks in advance and best regards

ATAG:
Check compile.txt and the makefile for compiling instructions. I think you should change -llua5.1 to something else in makefile. Anyway since it's a debian/ubuntu installer don't use it on centOS - compile it manually.

Alexinno:
hi guys ,
i have the same problem as kotur above , what do i have to change in makefile ?
if i have this file paths

--- Code: ---/usr/bin/lua
/usr/bin/luac
/usr/include/lua.h
/usr/include/lua.hpp
/usr/include/luaconf.h
/usr/include/lualib.h
/usr/lib/liblua-5.1.so
/usr/lib/liblua.so
/usr/lib/pkgconfig/lua.pc
/usr/local/bin/lua
/usr/local/bin/luac
/usr/local/include/lua.h
/usr/local/include/lualib.h
/usr/local/lib/liblua.a
/usr/local/lib/liblua_pi.a
/usr/local/lib/liblua_pi.la
/usr/local/lib/liblua_pi.so
/usr/local/lib/liblua_pi.so.0
/usr/local/lib/liblua_pi.so.0.0.0
/usr/local/lib/liblualib.a
/usr/local/lib/lua
/usr/local/lib/lua/5.1
/usr/local/man/man1/lua.1
/usr/local/man/man1/luac.1
/usr/local/share/lua
/usr/local/share/lua/5.1

--- End code ---

ATAG:

--- Quote ---#*******************************************************************************
# Binary to create
#
# Lua in Debian is lua5.1. Other known names are lua-5.1, lua51 and lua.
# If you have Lua lib with another name than lua5.1 change it in -llua5.1.
#
# In case when you don't have Lua as dynamic library (in debian liblua5.1.so)
# but as static library (liblua.a default when you compile Lua from sources)
# then remove -llua5.1 and after tinyxml/tinyxml.a add /usr/local/lib/liblua.a (default path when is Lua compiled from sources).
#*******************************************************************************
--- End quote ---
You can change -llua5.1:

--- Quote ---PtokaX: $(CURDIR)/obj/ClientTagManager.o $(CURDIR)/obj/colUsers.o $(CURDIR)/obj/DcCommands.o $(CURDIR)/obj/DeFlood.o $(CURDIR)/obj/eventqueue.o $(CURDIR)/obj/globalQueue.o $(CURDIR)/obj/hashBanManager.o $(CURDIR)/obj/hashUsrManager.o \
  $(CURDIR)/obj/hashRegManager.o $(CURDIR)/obj/HubCommands.o $(CURDIR)/obj/IP2Country.o $(CURDIR)/obj/LanguageManager.o $(CURDIR)/obj/LuaBanManLib.o $(CURDIR)/obj/LuaCoreLib.o $(CURDIR)/obj/LuaIP2CountryLib.o $(CURDIR)/obj/LuaProfManLib.o \
  $(CURDIR)/obj/LuaRegManLib.o $(CURDIR)/obj/LuaScript.o $(CURDIR)/obj/LuaScriptManager.o $(CURDIR)/obj/LuaScriptManLib.o $(CURDIR)/obj/LuaSetManLib.o $(CURDIR)/obj/LuaTmrManLib.o $(CURDIR)/obj/LuaUDPDbgLib.o $(CURDIR)/obj/ProfileManager.o \
  $(CURDIR)/obj/PtokaX.o $(CURDIR)/obj/pxstring.o $(CURDIR)/obj/RegThread.o $(CURDIR)/obj/ResNickManager.o $(CURDIR)/obj/ServerManager.o $(CURDIR)/obj/ServerThread.o $(CURDIR)/obj/serviceLoop.o $(CURDIR)/obj/SettingManager.o \
  $(CURDIR)/obj/TextFileManager.o $(CURDIR)/obj/UdpDebug.o $(CURDIR)/obj/UDPThread.o $(CURDIR)/obj/User.o $(CURDIR)/obj/utility.o $(CURDIR)/obj/ZlibUtility.o
   $(CXX) -lpthread -lz -llua5.1 -lrt -o PtokaX \
--- End quote ---
try -llua-5.1 or something else...

Navigation

[0] Message Index

[#] Next page

Go to full version