Strona 1 z 1

błąd przy kompilacji gry Ragnarok Online

: 25 grudnia 2008, 12:58
autor: Neji04
Mam taki problem kiedy chcę kompilować pliki to otrzymuję pewne błędy. Dodam, że są to pliki Ea czyli gry Ragnarok Online.

Kod: Zaznacz cały

root@ks367269:~# cd stable
root@ks367269:~/stable# ./configure --prefix=/stable
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 whether byte ordering is bigendian... no
checking whether pointers can be stored in ints (old code)... yes (with -m32)
checking whether gcc supports -Wno-unused-parameter... yes
checking whether gcc supports -Wno-pointer-sign... yes
checking whether gcc supports -Wno-switch... yes
checking for setrlimit... no
checking for inflateEnd in -lz... no
configure: error: zlib library not found or incompatible, please specify the correct path with --with-zlib=DIR... stopping
Znajomy mówił, że potem trzeba wpisać "make" i "make sql" ale tam jest napisane:

Kod: Zaznacz cały

root@ks367269:~/stable# make
make: *** Nie podano obiektów i nie znaleziono makefile. Stop.
root@ks367269:~/stable# make sql
make: *** Brak reguł do wykonania obiektu `sql'. Stop.
root@ks367269:~/stable#
Aha i jeszcze znalazłem te brakujące biblioteki:

Kod: Zaznacz cały

# apt-get install libgmp3
# apt-get install libgmp3-dev
# apt-get install zlib1g
# apt-get install zlib1g-dev
# apt-get install zlibc
Ale i tak nie działa po zainstalowaniu tego.

Pomoże ktoś?

: 25 grudnia 2008, 13:31
autor: lis6502
Dziwnie się w ogóle jakoś do tego zabierasz - nie rozumiem po co --prefix=/stable, no ale widocznie jest Ci do czegoś potrzebny :)
Musisz także wiedzieć jak czytać takie logi - make i make sql wpisujesz jeśli ./configure przejdzie bez błędów.
configure: error: zlib library not found
oznacza, że musisz zainstalować pakiet zlib-dev, żeby znać dokładne nazwy piszesz

Kod: Zaznacz cały

lis6502@Nexus:~$ aptitude search zlib |grep dev
i najlepiej zainstalować wszystko ma flagę p, jak na przykład u mnie
p zlib1g-dbg - compression library - development

: 25 grudnia 2008, 15:59
autor: Neji04
Z tamtym sobie poradziliśmy jakoś ale teraz jak wpisuję make sql to pojawia się:

Kod: Zaznacz cały

MySQL not found or disabled by the configure script
make: *** [needs_mysql] Error 1 
Wie ktoś jak temu zaradzić?

[Dodano: 2008-12-25, 16:39]

Nikt nie wie?