Capire come installare da sorgenti
Inviato: martedì 21 agosto 2007, 17:05
Ho gia installato facili programmi da sorgenti con il metodo classico
e per i programmi semplici e voloci da compilare (ad esempio simdock) è facile capire cosa non va e sopratutto capire quali librerie mancano.
Ora però è un anno che utilizzo ubuntu e sento la necessità di poter installare qualunque programma che trovo navigando in internet. Ma spesso la compilazione è molto lunga, e non so come venirne fuori (avendo già letto il file readme) se si presentano degli errori.
Ecco, vorrei capire che cosa la shell scrive e interpretare le righe in modo corretto per riuscire ad installare i programmi in modo corretto.
Ad esempio alla pagina http://download.html.it/software/vedi/1565/kvirc/ ho trovato un programma per irc, ma quando do ./configure ottengo
Dall'ultima riga qualcosa si capisce che non è andato a buon fine, ma come si capisce chi è il responsabile del fallimento (insomma tutti qei no confondono parecchio) ? ???
PS: se qualcuno mi aiuta a capire anche con qualche altro esempio o con qualche guida anche in inglese a me va benissimo! (yes)
Codice: Seleziona tutto
./configure
make
make installOra però è un anno che utilizzo ubuntu e sento la necessità di poter installare qualunque programma che trovo navigando in internet. Ma spesso la compilazione è molto lunga, e non so come venirne fuori (avendo già letto il file readme) se si presentano degli errori.
Ecco, vorrei capire che cosa la shell scrive e interpretare le righe in modo corretto per riuscire ad installare i programmi in modo corretto.
Ad esempio alla pagina http://download.html.it/software/vedi/1565/kvirc/ ho trovato un programma per irc, ma quando do ./configure ottengo
Codice: Seleziona tutto
1331;32m################################################################################
### Trying to find out where I am
################################################################################
1330;39mchecking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
1331;32m################################################################################
### Initializing automake
################################################################################
1330;39mchecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
1331;32m################################################################################
### Checking the compilation mode
################################################################################
1330;39mchecking if you want the debug symbols... no
checking if you want the profiling information... no
checking if you want to use pipes for compilation... no
checking for the optimisation level... using no optimisation flag
checking if you want to use -fno-rtti... no
checking if you want a strict ansi compilation... no
checking if you want a strict ansi compilation... no
checking if you want gcc to be paranoic... no
1331;32m################################################################################
### Checking the C++ environment
################################################################################
1330;39mchecking 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 ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for AIX... no
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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
1331;32m################################################################################
### Initializing libtool
################################################################################
1330;39mchecking for a sed that does not truncate output... /bin/sed
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... no
configure: WARNING: dlfcn.h: accepted by the compiler, rejected by the preprocessor!
configure: WARNING: dlfcn.h: proceeding with the compiler's result
checking for dlfcn.h... yes
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for f77... no
checking for xlf... no
checking for frt... no
checking for pgf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for f90... no
checking for xlf90... no
checking for pgf90... no
checking for epcf90... no
checking for f95... no
checking for fort... no
checking for xlf95... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for gfortran... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 32768
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... no
checking for shl_load in -ldld... no
checking for dlopen... no
checking for dlopen in -ldl... yes
checking whether a program can dlopen itself... yes
checking whether a statically linked program can dlopen itself... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking for shl_load... (cached) no
checking for shl_load in -ldld... (cached) no
checking for dlopen... (cached) no
checking for dlopen in -ldl... (cached) yes
checking whether a program can dlopen itself... (cached) yes
checking whether a statically linked program can dlopen itself... (cached) yes
appending configuration tag "F77" to libtool
1331;32m################################################################################
### Checking system properties
################################################################################
1330;39mchecking for strings.h... (cached) yes
checking linux/soundcard.h usability... yes
checking linux/soundcard.h presence... yes
checking for linux/soundcard.h... yes
checking sys/soundcard.h usability... yes
checking sys/soundcard.h presence... yes
checking for sys/soundcard.h... yes
checking soundcard.h usability... no
checking soundcard.h presence... no
checking for soundcard.h... no
checking for getenv... yes
checking for strerror... yes
checking for inet_ntoa... yes
checking for inet_aton... yes
checking for setenv... yes
checking for unsetenv... yes
checking for putenv... yes
checking for gmtime_r... yes
checking for localtime_r... yes
checking for inet_ntop... yes
checking for inet_pton... yes
checking for getaddrinfo... yes
checking for getnameinfo... yes
checking if we can get interface addresses... "yes"
checking if the compiler supports dynamic labels... "yes"
checking if this system is big endian... no
checking if you want the memory profiling... no
checking how to waste your time... by performing senseless checks
checking if you want memory checking in malloc... no
checking if you want to use system memmove... yes
checking if you want to optimize for big channels... no: using 101 as dict size
checking if you want ix86 assembly optimisations... no
checking for msgfmt... /usr/bin/msgfmt
checking if you want the splash screen to be compiled in... yes
checking if you want the DCC VOICE sound support... yes
checking if you want the info tips to be compiled in... yes
checking if you want to disable the ipV6 support... no
checking if you want to disable the cryptography support... no
checking if you want to disable the X bell support... no
checking if you want to link to the embedded version of qt... no
checking if you want to disable inter-process communication... no
checking if you want to explicitly disable the gsm codec support... no
checking if you want to ignore SIGALARM... no
checking if you want the pseudo-transparency support... yes
1331;32m################################################################################
### Looking for required libraries
################################################################################
1330;39mchecking for dlopen capabilities... external in libdl
checking if you want to use the solaris lthread... no
checking if you want to use freebsd native pthread support... no..using lpthread
checking if your pthread implementation works... yes
1331;32m################################################################################
### Looking for X
################################################################################
1330;39mchecking for X... libraries , headers
checking if you want to ignore X at all... no
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
1331;32m################################################################################
### Looking for Qt
################################################################################
1330;39mchecking for the Qt library name... "qt"
checking for the general Qt directory... failed...continuing with normal checks
checking for the Qt library... found in /usr/lib
checking for the Qt header files... FAILED
1331;31m################################################################################
### CONFIGURE ERROR:
### Can not find the qt .. header files.
### Make sure that qt is correctly installed on your system,
### and the qt version is the one requested by this version of kvirc.
### Try to run configure again, this time passing the --with-qt-include-dir
### option (see ./configure --help).
### You may also take a look at the config.log file in this directory,
### that will tell you which check has failed and maybe more about the reason
### of the failure.
### If you're feeling that this may be a bug in this configure script
### and want to report this to me , please include your configure script,
### the config.log file as well as the complete configure output.
################################################################################
1330;39mconfigure: error: This was a fatal one...aborting
PS: se qualcuno mi aiuta a capire anche con qualche altro esempio o con qualche guida anche in inglese a me va benissimo! (yes)