C++ 尝试编译这些文件时出错zconf丢失
我已经将源代码下载到一个我年轻时玩过的失传已久的MMO上,我正在按照网站上糟糕的说明编译它,它只说: 服务器需要Linux、MySQL开发库和32位gcc环境进行编译 这是唯一的说明,所以我C++ 尝试编译这些文件时出错zconf丢失,c++,gcc,compilation,C++,Gcc,Compilation,我已经将源代码下载到一个我年轻时玩过的失传已久的MMO上,我正在按照网站上糟糕的说明编译它,它只说: 服务器需要Linux、MySQL开发库和32位gcc环境进行编译 这是唯一的说明,所以我 sudo apt-get install build-essential zlib1g-dev 但是如果我试着去做 sudo make 我得到一个错误: gcc -Wall -Wshadow -Wno-pointer-sign -O3 -g -fno-strict-aliasing -m32 -DSTA
sudo apt-get install build-essential zlib1g-dev
但是如果我试着去做
sudo make
我得到一个错误:
gcc -Wall -Wshadow -Wno-pointer-sign -O3 -g -fno-strict-aliasing -m32 -DSTAFF -o .obj/server.o -c server.c
In file included from server.c:46:0:
/usr/include/zlib.h:34:19: fatal error: zconf.h: No such file or directory
#include "zconf.h"
我不确定我是否应该使用make
,没有要运行的configure
文件,关于如何正确编译此文件的任何信息都将非常感谢
(不确定是堆栈溢出还是服务器故障)
这是所有文件夹内容:
act.c book.c consistency.c direction.h flower_ppd.h libload.h mem.h path.c respawn.c spell.h tell.c
act.h book.h consistency.h do.c forest.c light.c merchant.c path.h respawn.h staffer2.c tell.h
alchemy.c btrace.c container.c do.h gatekeeper.c light.h merc.sql pents.c runtime staffer3.c teufel.c
area1.h btrace.h container.h drdata.c gwendylon.c log.c military.c player.c saltmine.c staffer.c teufel_pk.c
area2.c caligar.c create_account.c drdata.h ice.c log.h military.h player_driver.c sector.c staffer_ppd.h teufel_pk.h
area3.c chat.c create_armor.c drvlib.c ice_shared.c lookup.c mine.c player_driver.h sector.h start timer.c
area3.h chat.h create.c drvlib.h ignore.c lookup.h misc_ppd.h player.h see.c statistics.c timer.h
area.c chatserver.c create_character.c dungeon.c ignore.h looping mission_ppd.h poison.c see.h statistics.h todo.txt
area.h clan.c create.h dungeon_tab.c io.c los.c missions.c poison.h server.c storage.sql tool.c
arena.c clan.h create_tables.sql edemon.c io.h los.h motd.c prof.c server.h store.c tool.h
arkhata.c clanlog.c create_weapons.c effect.c item_id.h lostcon.c motd.h professor.c sewers.c store.h transport.c
arkhata.h clanlog.h database.c effect.h lab1.c lostcon.h motd.txt prof.h shrike.c strategy.c transport.h
badip.c clanmaster.c database.h error.c lab2.c lq.c my punish.c shrine.h swamp.c tunnel.c
badip.h client.h date.c error.h lab3.c mail.c MYSQLPASS punish.h sidestory.c swear.c two.c
balance.h club.c date.h expire.c lab4.c mail.h nomad.c quest_exp.h simple_baddy.c swear.h two_ppd.h
bank.c club.h death.c expire.h lab5.c Makefile nomad_ppd.h questlog.c skill.c talk.c update_server.c
bank.h clubmaster.c death.h fdemon.c lab.c map.c notify.c questlog.h skill.h talk.h warped.c
base.c command.c depot.c fight.h lab.h map.h notify.h random.c sleep.c task.c warrmines.c
bones.c command.h depot.h fk.txt libload.c mem.c palace.c rdtsc.S sleep.h task.h zones
你是从可靠的渠道得到的吗?(例如开发者,如果它是开源的)@Lasoloz是的,它就在开发者网站上。也许你应该试着联系开发者。我试图编译,但是有mysql依赖项,我现在没有时间。可能是zlib1g开发包的问题。解决了将zconf.h链接到/usr/include/:sudo ln-sfn/usr/include/*-linux-*/zconf.h/usr/include/的问题。您是从可信的来源获得的吗?(例如开发者,如果它是开源的)@Lasoloz是的,它就在开发者网站上。也许你应该试着联系开发者。我试图编译,但是有mysql依赖项,我现在没有时间。可能是zlib1g开发包的问题。解决了将zconf.h链接到/usr/include/:sudo ln-sfn/usr/include/*-linux-*/zconf.h/usr/include的符号问题/