Instalacja ze źródeł - error przy ./configure - python headers

Tutaj można zadać pytanie, jeśli Linuksa widzi się pierwszy raz w życiu ;)
tillman
Piegowaty Guziec
Piegowaty Guziec
Posty: 26
Rejestracja: 26 kwie 2011, 15:42

Instalacja ze źródeł - error przy ./configure - python headers

Post autor: tillman »

Witam, próbuję zainstalować music-applet, którego nie mogłem zainstalować przez
sudo apt-get install music-applet gdyż wywalało błąd nie można odnaleźć pakietu.

Pobrałem więc z http://www.ubuntugeek.com/music-applet- ... ayers.html
mam w katalogu pobrane i rozpakowuję, przechodzę w terminalu do tego katalogu z music-applet , daję polecenie ./configure i dostaję error

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 whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for style of include used by make... GNU
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 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 for /usr/bin/ld option to reload object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
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... no
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 whether to enable strict checks... (cached) no
checking whether to enable deprecated APIs... (cached) yes
checking for a Python interpreter with version >= 2.4... python
checking for python... /usr/bin/python
checking for python version... 2.6
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.6/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.6/site-packages
checking for headers required to compile python extensions... not found
configure: error: could not find Python headers
error na końcu, następnym poleceniem miało być make ale wyskakuje błąd make: *** Nie podano obiektów i nie znaleziono makefile. Stop.
Jak to zainstalować ?
Awatar użytkownika
Semutachi
Piegowaty Guziec
Piegowaty Guziec
Posty: 22
Rejestracja: 04 lip 2011, 11:01
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: Fluxbox
Architektura: x86_64

Re: Instalacja ze źródeł - problem, error przy ./configure - python headers

Post autor: Semutachi »

Zainstaluj pakiet python-dev, następnie uruchom ./configure i jeśli nie będzie błędów make.
Linux Akihabara 2.6.38-bpo.2-amd64 x86_64 GNU/Linux
Awatar użytkownika
jacekalex
Gibki Gibbon
Gibki Gibbon
Posty: 4707
Rejestracja: 17 cze 2007, 02:54
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: MATE
Architektura: x86_64

Re: Instalacja ze źródeł - problem, error przy ./configure - python headers

Post autor: jacekalex »

Najpierw:

Kod: Zaznacz cały

sudo apt-get install devscripts
Odpal potem:

Kod: Zaznacz cały

dpkg-depcheck -b debian/rules build
w folderze ze źródłami.

Albo wersje hakerskie:
Sznurek:
ftp://ftp2.piotrkosoft.net/pub/mirrors/ ... eq.pl.html

To by było na tyle
:craz:
Problemy rozwiązujemy na forum nie na PW -> Niech inni na tym skorzystają.
Komputer jest jak klimatyzacja - gdy otworzysz okna, robi się bezużyteczny...
Linux User #499936
Inny OS: Gentoo Linux :)
tillman
Piegowaty Guziec
Piegowaty Guziec
Posty: 26
Rejestracja: 26 kwie 2011, 15:42

Re: Instalacja ze źródeł - problem, error przy ./configure - python headers

Post autor: tillman »

teraz otrzymuje
checking for pygtk-codegen-2.0... no
configure: error: could not find pygtk-codegen-2.0 script
próbowałem sudo apt-get install pygtk-codegen-2.0 ale nie znalazło.

@jacekalex to coś nie pomogło.
Awatar użytkownika
jacekalex
Gibki Gibbon
Gibki Gibbon
Posty: 4707
Rejestracja: 17 cze 2007, 02:54
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: MATE
Architektura: x86_64

Re: Instalacja ze źródeł - error przy ./configure - python headers

Post autor: jacekalex »

Bo Ubuntu, to nie Gentoo, do kompilacji potrzeba plików nagłówkowych, nie potrzebujesz
pygtk-codegen-2.0, tylko nagłowki pygtk, zainteresuj się np programem apt-file:

Kod: Zaznacz cały

apt-file search pygtk-codegen-2.0
plik jest w pakiecie:

Kod: Zaznacz cały

python-gtk2-dev: /usr/bin/pygtk-codegen-2.0
czyli potrzebujesz paczki:
python-gtk2-dev - a ta na pewno jest w Synapticu.

I z każdą inną brakującą paczką trzeba zrobić to samo.
na początek:

Kod: Zaznacz cały

sudo apt-get install apt-file
sudo apt-file update
A jak nie pomógł np:
dpkg-depcheck czy dpkg-checkbuilddebs, to trzeba trochę pokombinować, wszystko masz w podręczniku opiekunów pakietów Debiana, który Ci podlinkowałem w poprzednim poście.

To by było na tyle
:craz:
Problemy rozwiązujemy na forum nie na PW -> Niech inni na tym skorzystają.
Komputer jest jak klimatyzacja - gdy otworzysz okna, robi się bezużyteczny...
Linux User #499936
Inny OS: Gentoo Linux :)
tillman
Piegowaty Guziec
Piegowaty Guziec
Posty: 26
Rejestracja: 26 kwie 2011, 15:42

Re: Instalacja ze źródeł - error przy ./configure - python headers

Post autor: tillman »

zainstalowałem jeszcze kilka potrzebnych pakietów, jednak przy tym jest problem i nie wiem co dalej
...
checking for MUSICAPPLET_DEPS... configure: error: Package requirements (
gtk+-2.0
libpanelapplet-2.0
pango >= 1.6
pygtk-2.0
gnome-python-2.0
) were not met:

No package 'libpanelapplet-2.0' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables MUSICAPPLET_DEPS_CFLAGS
and MUSICAPPLET_DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details
'libpanelapplet-2.0 był w valac.010 jednak przy próbie instalacji pisze, że mam już najnowsza wersję tego pakietu.


aha, mam jeszcze pytanie. Jak usunąć ten pakiet, o którym pisałeś wcześniej
sudo apt-get install devscripts
System mi po tym zwolnił.
Awatar użytkownika
jacekalex
Gibki Gibbon
Gibki Gibbon
Posty: 4707
Rejestracja: 17 cze 2007, 02:54
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: MATE
Architektura: x86_64

Re: Instalacja ze źródeł - error przy ./configure - python headers

Post autor: jacekalex »

Kod: Zaznacz cały

sudo apt-get remove devscripts 
- ale po tym na 150% nie zwolnił CI system, to jest kilka skryptów, które pomagają w budowaniu pakietów, one nie wplywają na normalną pracę systemu.

Co do zależności tego apletu, to ja bym spróbował zainstalować zależności, do budowania innego, podobnego apletu.
Czyli np:

Kod: Zaznacz cały

sudo apt-get build-dep gnome-applets gnome-applets-data
Powinien zassać wszystko, co potrzebne do kompilowania podobnych apletów.

A poza tym, na ostatnim cytacie masz napisane, czego brakuje, tylko instaluj paczki z końcówką dev.
Problemy rozwiązujemy na forum nie na PW -> Niech inni na tym skorzystają.
Komputer jest jak klimatyzacja - gdy otworzysz okna, robi się bezużyteczny...
Linux User #499936
Inny OS: Gentoo Linux :)
tillman
Piegowaty Guziec
Piegowaty Guziec
Posty: 26
Rejestracja: 26 kwie 2011, 15:42

Re: Instalacja ze źródeł - error przy ./configure - python headers

Post autor: tillman »

zainstalowałem to i teraz komunikat
config.status: executing po/stamp-it commands
# INTLTOOL_MAKEFILE
configure: WARNING: Amarok support is disabled because the following Python modules could not be found:
configure: WARNING: * dcopext
configure: WARNING: * kdecore
configure: WARNING: MPD support is disabled because the following Python modules could not be found:
configure: WARNING: * mpd
configure: WARNING: XMMS1 support is disabled because the following Python modules could not be found:
configure: WARNING: * xmms
configure: WARNING: XMMS2 support is disabled because the following Python modules could not be found:
configure: WARNING: * xmmsclient
możnaby wywnioskować, że coś się zainstalowało (ja używam rhytmbox) z tym , że nic nie widzę
dałem jeszcze make && sudo make install, coś tam porobiło ale dalej nie wiem czy w końcu coś się zainstalowało.
Ostatnio zmieniony 20 lip 2011, 12:32 przez tillman, łącznie zmieniany 1 raz.
Awatar użytkownika
jacekalex
Gibki Gibbon
Gibki Gibbon
Posty: 4707
Rejestracja: 17 cze 2007, 02:54
Płeć: Mężczyzna
Wersja Ubuntu: inny OS
Środowisko graficzne: MATE
Architektura: x86_64

Re: Instalacja ze źródeł - error przy ./configure - python headers

Post autor: jacekalex »

Napisał, że nie znalazł odtwarzaczy, których nie ma?
A masz zainstalowane xmms1, mpd, xmms? bo jak nie, to co mial napisać?
Zakończyl się errorem? czy normalnie?
I teraz w kompilacji (o ile zakończył poprawnie) daje się make, potem np make install, prawda?
Ostatnio zmieniony 20 lip 2011, 20:10 przez jacekalex, łącznie zmieniany 1 raz.
Problemy rozwiązujemy na forum nie na PW -> Niech inni na tym skorzystają.
Komputer jest jak klimatyzacja - gdy otworzysz okna, robi się bezużyteczny...
Linux User #499936
Inny OS: Gentoo Linux :)
tillman
Piegowaty Guziec
Piegowaty Guziec
Posty: 26
Rejestracja: 26 kwie 2011, 15:42

Re: Instalacja ze źródeł - error przy ./configure - python headers

Post autor: tillman »

zrobiłem make i make install , coś porobił, wyglądało pozytywnie, nie widzałem żadnych errorów, na końcu powychodził tylko z katalogów, tylko nie wiem czy w końcu zainstalowałw "programy" nic nie widać, też nic się nie pojawiło na pasku. (a mam włączonego rhytmbox'a )
ODPOWIEDZ

Wróć do „Przedszkole Linuksa”

Kto jest online

Użytkownicy przeglądający to forum: Bing [Bot] i 1 gość