[+] Instalacja pakietu build-essentiall

Tematy związane z oprogramowaniem, instalacją, konfiguracją
wojcienty
Posty: 5
Rejestracja: 03 października 2013, 15:25

[+] Instalacja pakietu build-essentiall

Post autor: wojcienty »

Witam.
Mam
problem z instalacją pakietu build-essential, a mianowicie jak wydaję mu polecenie

Kod: Zaznacz cały

aptitude install build-essential
to on żąda ode mnie abym włożył mu płytę, której nie posiadam (według mnie to on powinien sobie to z internetu pobrać).

Kod: Zaznacz cały

Do pobrania 1737 kB/32,9 MB archiwów. Zajęte po rozpakowaniu: 86,6 MB.
Kontynuować? [Y/n/?] y
Wymiana nośnika: Proszę włożyć dysk oznaczony "Debian GNU/Linux 7.1.0 _Wheezy_ - Official i386 CD Binary-1 20130615-21:54" do napędu "/media/cdrom/" i nacisnąć [Enter].
Z góry dziękuję za pomoc.
Awatar użytkownika
pone13
Beginner
Posty: 337
Rejestracja: 30 listopada 2007, 20:59
Lokalizacja: Leszno

Post autor: pone13 »

Edytuj plik /etc/apt/sources.list i wyłącz wpisy dotyczące płyt cd, następnie wydaj polecenie (jako root):

Kod: Zaznacz cały

aptitude update
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

wojcienty
Posty: 5
Rejestracja: 03 października 2013, 15:25

Post autor: wojcienty »

Działa. Dziękuję. A powiedzcie mi jak zainstalować program z paczek tar.bz? Robię według tego poradnika (dział instalacja ze źródeł).

http://damlab.pl/poradnik-debiana/handb ... szy_pakiet

i przy wpisywaniu:

Kod: Zaznacz cały

make
wyskakuje mi takie coś

Kod: Zaznacz cały

make: *** Nie podano obiektów i nie znaleziono makefile. Stop.
Awatar użytkownika
pone13
Beginner
Posty: 337
Rejestracja: 30 listopada 2007, 20:59
Lokalizacja: Leszno

Post autor: pone13 »

Po rozpakowaniu (dział rozpakowywanie archiwów) wejdź do rozpakowanego katalogu poleceniem:

Kod: Zaznacz cały

cd ./nazwa_katalogu
I teraz wydaj polecenia z działu instalacja, ze źródeł listingi 28 do 30.

Instalacja ze źródeł, szczególnie dla początkującego, będzie bolesna, ale próbuj inaczej się nie nauczysz.

Configure i Make raczej na pewno wyświetlą monit o brakujących bibliotekach np.

Kod: Zaznacz cały

checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for initscr in -lcurses... no
[B]configure: error: ncurses library missing[/B]
Brakuje biblioteki ncurses, więc trzeba ją zainstalować. Uruchamiasz aptitude, wciskasz klawisz '/' i wpisujesz w oknie wyszukiwania libncurses.

Po wynikach wyszukiwania przesuwasz się klawiszem 'n' w przód lub 'Shift+n' w tył aż znajdziesz pakiet libncurses5.

Podświetlasz go na liście i wybierasz do instalacji za pomocą 'Shift +', instalujesz wybrane za pomocą 'g'.
Oczywiście jeżeli znasz nazwę pakietu możesz zainstalować od razu za pomocą poleceń:

Kod: Zaznacz cały

aptitude install pakiet
lub:

Kod: Zaznacz cały

apt-get install pakie

Nie raz znalezienie brakującej biblioteki wymaga pomocy Google.

Powodzenia.
wojcienty
Posty: 5
Rejestracja: 03 października 2013, 15:25

Post autor: wojcienty »

Polecenie:

Kod: Zaznacz cały

./configure
zwraca mi takie coś

Kod: Zaznacz cały

checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) 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 if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
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
checking how to run the C++ preprocessor... g++ -E
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 -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for g++... yes
checking for inline... inline
checking gcc version... 4.7
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking for iconv_open... yes
checking for pread... yes
checking for pwrite... yes
checking for lrintf... no
checking for strlcpy... no
checking for daemon... yes
checking for dirname... yes
checking for basename... yes
checking for strcasecmp... yes
checking for localtime_r... yes
checking for fallocate64... yes
checking for posix_fallocate... yes
checking for memmem... yes
checking for strsep... yes
checking for strtold... yes
checking for syslog... yes
checking for valloc... yes
checking for getpagesize... yes
checking for posix_memalign... yes
checking for statvfs... yes
checking for htonll... no
checking for ntohll... no
checking for mkdtemp... yes
checking whether make sets $(MAKE)... (cached) yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for library containing cos... -lm
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for pkg-config... no
checking for OPENSSL... checking for OpenSSL... configure: error: Cannot locate ssl

Czyli w synaptiku mam szukać jakiś pakietów ssl? I jeszcze takie pytania, jaka jest różnica jak wejdę do katalogu za pomocą.

Kod: Zaznacz cały

cd nazwa_katalaogu

a:

Kod: Zaznacz cały

cd ./nazwa_katalogu
Awatar użytkownika
pone13
Beginner
Posty: 337
Rejestracja: 30 listopada 2007, 20:59
Lokalizacja: Leszno

Post autor: pone13 »

Zainstaluj openssl i libssl, './' wskazuje na bieżący katalog np. jesteś w katalogu /home/użytkownik więc polecenie:

Kod: Zaznacz cały

cd ./data
zostanie rozwinięte do:

Kod: Zaznacz cały

cd /home/[b]użytkownik[/b]/data


Polecenie:

Kod: Zaznacz cały

cd data
też jest poprawne w tym kontekście.
wojcienty
Posty: 5
Rejestracja: 03 października 2013, 15:25

Post autor: wojcienty »

Przy wydaniu polecenia:

Kod: Zaznacz cały

./configure --prefix=/usr
wyświetla mi się takie coś:

Kod: Zaznacz cały

checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking how to create a pax tar archive... gnutar
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
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 dependency style of gcc... gcc3
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert i686-pc-linux-gnu file names to i686-pc-linux-gnu format... func_convert_file_noop
checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... gcc -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 for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) 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 if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking dependency style of gcc... (cached) gcc3
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
checking how to run the C++ preprocessor... g++ -E
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 -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for g++... yes
checking for inline... inline
checking gcc version... 4.7
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking for iconv_open... yes
checking for pread... yes
checking for pwrite... yes
checking for lrintf... no
checking for strlcpy... no
checking for daemon... yes
checking for dirname... yes
checking for basename... yes
checking for strcasecmp... yes
checking for localtime_r... yes
checking for fallocate64... yes
checking for posix_fallocate... yes
checking for memmem... yes
checking for strsep... yes
checking for strtold... yes
checking for syslog... yes
checking for valloc... yes
checking for getpagesize... yes
checking for posix_memalign... yes
checking for statvfs... yes
checking for htonll... no
checking for ntohll... no
checking for mkdtemp... yes
checking whether make sets $(MAKE)... (cached) yes
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... yes
checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for library containing cos... -lm
checking for library containing socket... none required
checking for library containing gethostbyname... none required
checking for pkg-config... no
checking for OPENSSL... checking for OpenSSL... /usr
checking for LIBCURL... configure: error: in `/home/wojcienty/Pobrane/transmission-2.76':
configure: error: The pkg-config script could not be found or is too old.  Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.


Alternatively, you may set the environment variables LIBCURL_CFLAGS
and LIBCURL_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.


To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
See `config.log' for more details

A po wpisaniu:

Kod: Zaznacz cały

make
daje dalej to samo:

Kod: Zaznacz cały

make: *** Nie podano obiektów i nie znaleziono makefile. Stop.
Awatar użytkownika
Rafal_F
Moderator
Posty: 2350
Rejestracja: 29 sierpnia 2008, 16:45

Post autor: Rafal_F »

Zainstaluj pakiety: libcurl4-openssl-dev i pkg-config.

Dlaczego kompilujesz transmission ze źródeł skoro jest w repozytoriach?

Kod: Zaznacz cały

aptitude install transmission
Jeżeli bardzo chcesz skompilować własną wersję wszystkie wymagane do tego pakiety możesz zainstalować w ten sposób:

Kod: Zaznacz cały

aptitude --arch-only build-dep transmission
wojcienty
Posty: 5
Rejestracja: 03 października 2013, 15:25

Post autor: wojcienty »

Jest ale wersja 2.52 a mnie jest potrzebna wersja 2.76 i chciałbym się czegoś nowego nauczyć. Ogólnie rzecz mówiąc, do Linuksa przekonuje się już około czterech lat i zawsze mi jakiś numer wywinie.

Edycja:
Nareszcie udało mi się to zainstalować. Bez waszej pomocy nigdy w życiu bym tego nie zrobił. Dziękuję za pomoc.

Ps. Pewnie jeszcze nie raz tu napiszę.
ODPOWIEDZ