Автор Тема: Компилиране на пакети  (Прочетена 2553 пъти)

IvanRadev

  • Напреднали
  • *****
  • Публикации: 75
  • Distribution: Ubuntu 10.10
  • Window Manager: Gnome
    • Профил
Компилиране на пакети
« -: Oct 23, 2007, 18:04 »
Изтеглих си Avant Window Manager с рзширение tar.gz разкомпресирах го и прочетох: INSTALL

Цитат
The simplest way to compile this package is:

  1. `cd' to the directory containing the package's source code and type
     `./configure' to configure the package for your system.  If you're
     using `csh' on an old version of System V, you might need to type
     `sh ./configure' instead to prevent `csh' from trying to execute
     `configure' itself.

     Running `configure' takes awhile.  While running, it prints some
     messages telling which features it is checking for.

  2. Type `make' to compile the package.

  3. Optionally, type `make check' to run any self-tests that come with
     the package.

  4. Type `make install' to install the programs and any data files and
     documentation.

  5. You can remove the program binaries and object files from the
     source code directory by typing `make clean'.  To also remove the
     files that `configure' created (so you can compile the package for
     a different kind of computer), type `make distclean'.  There is
     also a `make maintainer-clean' target, but that is intended mainly
     for the package's developers.  If you use it, you may have to get
     all sorts of other programs in order to regenerate files that came
     with the distribution.


Отварям конзолата влизам във вече разархивираната папка и пиша configure ама нищо не става. Не успях да разбера синтаксиса на тази команда. Инсталирал съм build-essential

Това също го мъчих:

Цитат
How to compile a program from source code

Make sure you have all the neccesary development tools (i.e. libraries, compilers, headers):
gksudo apt-get install build-essential
gksudo apt-get install linux-headers-`uname -r`

"uname -r" lists the current kernel you are using.

Extract your package (as detailed above)
tar xvzf package.tar.gz

Commence the build (compiling) process:
cd /path/to/extracted/package
./configure
make
make install

(Note - typing ./ before a filename tells unix to execute the file as an application.)
[edit]
Create an Ubuntu (Debian) package (.deb)

Install package tools:
gksudo apt-get install checkinstall

Rebuild package using "checkinstall":
cd /path/to/extracted/package
./configure
make
checkinstall

Keep the resulting ".deb" file for future use. It can be installed using:
gksudo dpkg -i package.deb

Note: These are basic instructions that may not always work. Some packages require additional dependencies and optional parameters to be specified in order to build them successfully.


Дайте ми, моля ви конкретен пример как да стане !
Активен

Gaara

  • Напреднали
  • *****
  • Публикации: 631
  • Distribution: Debian
  • Window Manager: E17
    • Профил
Компилиране на пакети
« Отговор #1 -: Oct 23, 2007, 18:10 »
За пример е още рано, но за въпроси никога. Та да започнем:
- Дистро?
- Версия (система, пакет и т.н.)?
- Казваш "не става", а какво не става? Изход? Команди?
Активен

Last night, Darth Vader came down from planet Vulcan and told me that if you don't install Debian, he'd melt your brain.

tolostoi

  • Напреднали
  • *****
  • Публикации: 1337
  • Distribution: Ubuntu
  • Window Manager: Unity
  • левел: авераж :)
    • Профил
Компилиране на пакети
« Отговор #2 -: Oct 23, 2007, 18:14 »
Не се пише configure а се пише ./configure.
Активен


... в Столичен инспекторат една година след миграцията, продължават да работят под Linux. Което, май прави "експеримента" успешен
by entusiast

IvanRadev

  • Напреднали
  • *****
  • Публикации: 75
  • Distribution: Ubuntu 10.10
  • Window Manager: Gnome
    • Профил
Компилиране на пакети
« Отговор #3 -: Oct 23, 2007, 18:27 »
Ubuntu 7.04
avant-window-navigator-0.2.tar

  
Цитат
home@home-desktop:~/OperaDownloads/avant-window-navigator-0.2$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
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 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 library containing strerror... none required
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 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 build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking 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 recognize dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
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 g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... 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... 98304
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 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 static flag -static 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 if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
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++ static flag -static 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
appending configuration tag "F77" to libtool
checking for a Python interpreter with version >= 2.3.5... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for headers required to compile python extensions... not found
configure: error: could not find Python headers
home@home-desktop:~/OperaDownloads/avant-window-navigator-0.2$





Активен

winboze

  • Напреднали
  • *****
  • Публикации: 242
    • Профил
    • WWW
Компилиране на пакети
« Отговор #4 -: Oct 23, 2007, 18:56 »
Ами то си пише - трябва ти хедърите на python. Инсталирай python2.5-dev
Активен

.: МРАЗЯ ПАКЕТНИ ЗАВИСИМОСТИ :.

IvanRadev

  • Напреднали
  • *****
  • Публикации: 75
  • Distribution: Ubuntu 10.10
  • Window Manager: Gnome
    • Профил
Компилиране на пакети
« Отговор #5 -: Oct 23, 2007, 19:07 »
видях това за хедърите на python, го оправих, но сега:

Цитат
No package 'pygtk-2.0' found


и това не знам как да го инсталирам   ':huh:'
Активен

Nikolavp

  • Напреднали
  • *****
  • Публикации: 408
    • Профил
    • WWW
Компилиране на пакети
« Отговор #6 -: Oct 23, 2007, 19:37 »
Цитат (IvanRadev @ Окт. 23 2007,20:07)
видях това за хедърите на python, го оправих, но сега:

Цитат
No package 'pygtk-2.0' found


и това не знам как да го инсталирам   ':huh:'

Пробвай така:
[code]aptitude install auto-apt;auto-apt run ./configure[code]и ще трябва хедърите да ти се инсталират сами, когато скрипта зареве '<img'>
Успех!
Активен

http://blog-nikolavp.rhcloud.com - простотиите, с които се занимавам в свободното време

IvanRadev

  • Напреднали
  • *****
  • Публикации: 75
  • Distribution: Ubuntu 10.10
  • Window Manager: Gnome
    • Профил
Компилиране на пакети
« Отговор #7 -: Oct 23, 2007, 19:51 »
Колкото и пакета да инсталирам все ми иска още и още '<img'>
Със Synaptic успях да добавя някои, но след като видях това се отказах
Примерен код
home@home-desktop:~/OperaDownloads/avant-window-navigator-0.2$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
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 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 library containing strerror... none required
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 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 build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking 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 recognize dependent libraries... pass_all
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
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 g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... 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... 98304
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 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 static flag -static 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 if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
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++ static flag -static 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
appending configuration tag "F77" to libtool
checking for a Python interpreter with version >= 2.3.5... python
checking for python... /usr/bin/python
checking for python version... 2.5
checking for python platform... linux2
checking for python script directory... ${prefix}/lib/python2.5/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages
checking for headers required to compile python extensions... found
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for PYGTK... yes
checking for pygtk-codegen-2.0... /usr/bin/pygtk-codegen-2.0
checking for pygtk defs... /usr/share/pygtk/2.0/defs
checking for PYCAIRO... yes
checking for gconftool-2... /usr/bin/gconftool-2
checking for intltool >= 0.34... 0.36.2 found
checking for perl... /usr/bin/perl
checking for XML::Parser... ok
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for LC_MESSAGES... yes
checking libintl.h usability... yes
checking libintl.h presence... yes
checking for libintl.h... yes
checking for ngettext in libc... yes
checking for dgettext in libc... yes
checking for bind_textdomain_codeset... yes
checking for msgfmt... no
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.7... yes
checking for GLIB - version >= 2.8.0... yes (version 2.12.11)
checking for AWN... configure: error: Package requirements ( glib-2.0 gobject-2.0 gtk+-2.0 gdk-2.0 libwnck-1.0 gnome-desktop-2.0 libgnome-2.0 gnome-vfs-2.0 gconf-2.0 x11 xproto dbus-glib-1 libglade-2.0 xdamage xcomposite xrender) were not met:

No package 'libwnck-1.0' found
No package 'gnome-desktop-2.0' found
No package 'libgnome-2.0' found
No package 'gnome-vfs-2.0' found
No package 'gconf-2.0' found
No package 'dbus-glib-1' found
No package 'libglade-2.0' found
No package 'xdamage' found
No package 'xcomposite' 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 AWN_CFLAGS
and AWN_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.

home@home-desktop:~/OperaDownloads/avant-window-navigator-0.2$




Активен

HeavenWarrior

  • Напреднали
  • *****
  • Публикации: 168
    • Профил
Компилиране на пакети
« Отговор #8 -: Oct 23, 2007, 22:03 »
http://download.tuxfamily.org/osrdebi....ex.html

Тука има готови пакети, теглиш dpkg -i иметонапакетакойтоинсталираш. Може и да греша командата, отдавна не съм докосвал Дебиян.
Активен

FreeBSD 6.2 KDE 3.5.7; Debian Sid KDE 4.0.0
"If You Know Your Brother Is A Greedy Bastard Never Give Him The Password" --Puffy Baba And The 40 Vendors (OpenBSD songs)

IvanRadev

  • Напреднали
  • *****
  • Публикации: 75
  • Distribution: Ubuntu 10.10
  • Window Manager: Gnome
    • Профил
Компилиране на пакети
« Отговор #9 -: Oct 24, 2007, 14:41 »
Как да исталирам GSS? Казаха ми, че дефакто GSS е компилатора на пакети.
Активен

Gaara

  • Напреднали
  • *****
  • Публикации: 631
  • Distribution: Debian
  • Window Manager: E17
    • Профил
Активен

Last night, Darth Vader came down from planet Vulcan and told me that if you don't install Debian, he'd melt your brain.

IvanRadev

  • Напреднали
  • *****
  • Публикации: 75
  • Distribution: Ubuntu 10.10
  • Window Manager: Gnome
    • Профил
Компилиране на пакети
« Отговор #11 -: Oct 27, 2007, 14:56 »
Мерси @Gaara!
Активен