Skocz do zawartości

Pglinux 1.5 - Kompilacja


Joga.Bonito

Rekomendowane odpowiedzi

Siemka,

 

wiece co może być nie tak, ściągnąłem sobie pglinux-1.5beta w postaci źródła, polecenie './config' zadziałało, tak samo jak 'make' ale 'make install' już nie :(

 

[root@c123-5 pglinux-1.5beta]# ls
aclocal.m4         config.h         HttpServer.cpp  missing        README
AUTHORS            config.h.in      HttpServer.h    mkinstalldirs  sha1.cpp
autom4te.cache     config.log       INSTALL         NEWS           sha1.h
Blocker_BSD.cpp    config.status    install-sh      p2p.p2b.p2p    stamp-h
Blocker_Linux.cpp  config.sub       installxtra.sh  PeerGuard.cpp  stamp-h.in
BlockList.cpp      configure        Main.cpp        PeerGuard.h
BlockList.h        configure.ac     Makefile        peerguardnf.1
ChangeLog          COPYING          Makefile.am     PG.conf
config.guess       HttpRequest.cpp  Makefile.in     pgtext.cpp

 

./configure

 

[root@c123-5 pglinux-1.5beta]# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets $(MAKE)... yes
checking for working aclocal-1.4... found
checking for working autoconf... found
checking for working automake-1.4... found
checking for working autoheader... found
checking for working makeinfo... found
checking for g++... g++
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 g++ accepts -g... yes
checking for gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for main in -lipq... yes
checking for main in -lncurses... yes
checking for main in -lpthread... yes
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/wait.h that is POSIX.1 compatible... 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 fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking for unistd.h... (cached) yes
checking for stdbool.h that conforms to C99... yes
checking for _Bool... yes
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for pid_t... yes
checking for size_t... yes
checking whether time.h and sys/time.h may both be included... yes
checking for unistd.h... (cached) yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for working memcmp... yes
checking return type of signal handlers... void
checking for atexit... yes
checking for isascii... yes
checking for memset... yes
checking for mkfifo... yes
checking for socket... yes
checking for strcasecmp... yes
checking for strchr... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing default-1 commands

 

make

 

[root@c123-5 pglinux-1.5beta]# make
g++ -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/libipq   -g -O2 -c Main.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/libipq   -g -O2 -c PeerGuard.cp p
g++ -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/libipq   -g -O2 -c BlockList.cp p
g++ -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/libipq   -g -O2 -c Blocker_Linu x.cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/libipq   -g -O2 -c Blocker_BSD. cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/libipq   -g -O2 -c HttpServer.c pp
g++ -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/libipq   -g -O2 -c HttpRequest. cpp
g++ -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/libipq   -g -O2 -c sha1.cpp
g++  -g -O2  -o peerguardnf  -I/usr/include/libipq Main.o PeerGuard.o BlockList. o Blocker_Linux.o Blocker_BSD.o HttpServer.o HttpRequest.o sha1.o -lipq -lpthrea d -lpthread -lncurses -lipq
g++ -DHAVE_CONFIG_H -I. -I. -I.   -I/usr/include/libipq   -g -O2 -c pgtext.cpp
g++  -g -O2  -o pgtext  pgtext.o -lncurses -lpthread -lpthread -lncurses -lipq

 

i teraz make install

 

[root@c123-5 pglinux-1.5beta]# make install
make[1]: Entering directory `/root/pglinux-1.5beta'
make[1]: Nie nic do roboty w `install-exec-am'.
/bin/sh ./../mkinstalldirs /usr/bin
/bin/sh: ./../mkinstalldirs: Nie ma takiego pliku ani katalogu
make[1]: *** [install-mybinPROGRAMS] Błąd 127
make[1]: Leaving directory `/root/pglinux-1.5beta'

 

Nie jestem jeszcze dobry w te klocki, wiecie co tu można zrobić?

 

I na koniec, czy da się jakoś skonwertować pliki .deb do .rpm ? Bo paczka dla debiana jest ale już dla red hata nie.

 

Pozdro!

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
×
×
  • Dodaj nową pozycję...