LamaHub 0.0.6.2 Problemas na instalação fonte

1. LamaHub 0.0.6.2 Problemas na instalação fonte

Roberto Vasconcelos Melo
rvmelo

(usa Outra)

Enviado em 11/09/2018 - 17:22h

Quando tento instalar o pacote LamaHub para o linux sigo essas intrsuções:

Linux / Unix - Source
---------------------

LamaHub need packages:
- gcc
- make
- zlib1g-dev (zlib with source code) : for support zpipe compression
- lua51 : for support lua script language
- lua51-dev (source of lua lang.)

Installation process:
1. first you need extract archive, type in console/terminal: gunzip LamaHub-X.X.X.X.tar.gz
and: tar xvf LamaHub-X.X.X.X.tar
where X.X.X.X is version of hubsoft
2. you need go to folder with LamaHub: cd X.X.X.X
3. for compilation: make (You can enable zpipe or lua with: ZPIPE=1 LUA=1 make)
or use fallowing command for ZeX/OS build: CC=i586-pc-zexos-gcc LIBS=" " make
4. in the end, you need create owner account over: ./server ownernick ownerpassword
5. after it, you can start hub with command: ./server -d


No entanto quando tento executar o make recebo o seguinte erro:

elua.c:39:17: fatal error: lua.h: No such file or directory


No entanto se preencho as variáveis do Makefile dessa forma:

# these will probably work if Lua has been installed globally
LUA= /usr/include/lua5.1
LUAINC= /usr/include/lua5.1
LUALIB= /usr/lib/x86_64-linux-gnu/liblua5.1.a
LUABIN= /usr/bin


Recebo esse erro:

cc -O3 -c -oelua.o elua.c
cc -O3 -c -ohublist.o hublist.c
cc -O3 -c -oplugin.o plugin.c
cc -O3 -c -ouser_rights.o user_rights.c
cc -oserver user.o commands.o utils.o config.o main.o sockets.o proto.o trigger.o ezlib.o ban.o chatroom.o elua.o hublist.o plugin.o user_rights.o -ldl -lcrypt
config.o: In function `config_save':
config.c:(.text+0x1eb): undefined reference to `luascript_save'
config.o: In function `config_load':
config.c:(.text+0x404): undefined reference to `luascript_save'
main.o: In function `init':
main.c:(.text+0x5bb): undefined reference to `init_lua'
collect2: error: ld returned 1 exit status
Makefile:39: recipe for target 'server' failed
make: *** [server] Error 1
root@ip-172-31-19-69:/home/ubuntu/0.0.6.2# locate -r /liblua5.1.a$/usr/lib/x86_64-linux-gnu/liblua5.1.a


Aqui se encontra meu arquivo Makefile:

# defines

ifeq ($(CC),)
CC = gcc
endif

ifeq ($(LIBS),)
EXTRALIBS = -ldl -lcrypt
endif

ifeq ($(ZPIPE),1)
ZPIPEFLAG = -DZPIPE
ZPIPELIB = -lz
endif

ifeq ($(LUA),1)
LUAFLAG = -DLUA
LUALIB = -llua
endif

CFLAGS := -O3 $(ZPIPEFLAG) $(LUAFLAG)
CLIBS = $(ZPIPELIB) $(EXTRALIBS) $(LUALIB)

OBJS=user.o commands.o utils.o config.o main.o sockets.o proto.o trigger.o ezlib.o ban.o chatroom.o elua.o hublist.o plugin.o user_rights.o

# targets
all: server

clean:
rm -f *.o server $(OBJS)

# implicit rules
.c.o:
$(CC) $(CFLAGS) -c -o$@ $<

# explicit rules
server: $(OBJS)
$(CC) -o$@ $(OBJS) $(CLIBS)


Alguém sabe como corrigir isso?







  






Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts