Как указать установить библиотеки в / usr / local /

Я пытаюсь настроить и установить пакет приложения и библиотеки. Пакет это это . Я следовал инструкциям, и он установился нормально, и я могу запустить двоичный файл из каталога src, туда, где он установлен.

Теперь я хотел установить набор библиотек, добавив --enable-asio-lib, т.е. я запустил ./configure --enable-asio-lib. Я уже установил необходимые зависимости, и ошибок не было.

Однако, когда я проверяю / usr / local / lib или / usr / local / include, файлы отсутствуют. Что мне нужно сделать, чтобы ./configure установить библиотеки (и, возможно, двоичные файлы) в обычном месте, где эти файлы обычно установлены?

1
задан 10 May 2015 в 16:20

3 ответа

Стандартный префикс в configure /usr/local.

Установите инструмент checkinstall:

sudo apt-get install checkinstall

и следуйте, это ступает:

git clone git@github.com:tatsuhiro-t/nghttp2.git
cd nghttp2
autoreconf -i
automake
autoconf

# with asio-lib
./configure --enable-asio-lib
make

Установка с

make install

или checkinstall для deb пакета:

sudo checkinstall

Во время установки существует предупреждение того:

*** Warning: The package version "0.7.15-DEV
0.7.15-DEV
0.7.15-DEV
0.7.15-DEV
0.7.15-DEV
0.7.15-DEV
0.7.15-DEV
0.7.15-DEV
0.7.15-DEV
0.7.15-DEV
0.7.15-DEV
0.7.15-DEV
0.7.15-DEV
0.7.15-DEV" is not a

Если Вы видите, что, нажмите Enter и 3 и тип, например:

0.7.15

После того, как пакет установлен.

Вот список всех установленных файлов:

/usr
/usr/local
/usr/local/include
/usr/local/include/nghttp2
/usr/local/include/nghttp2/asio_http2.h
/usr/local/include/nghttp2/asio_http2_client.h
/usr/local/include/nghttp2/asio_http2_server.h
/usr/local/include/nghttp2/nghttp2.h
/usr/local/include/nghttp2/nghttp2ver.h
/usr/local/lib
/usr/local/lib/libnghttp2.a
/usr/local/lib/libnghttp2.la
/usr/local/lib/libnghttp2.so
/usr/local/lib/libnghttp2.so.5
/usr/local/lib/libnghttp2.so.5.8.3
/usr/local/lib/libnghttp2_asio.a
/usr/local/lib/libnghttp2_asio.la
/usr/local/lib/libnghttp2_asio.so
/usr/local/lib/libnghttp2_asio.so.1
/usr/local/lib/libnghttp2_asio.so.1.0.0
/usr/local/lib/pkgconfig
/usr/local/lib/pkgconfig/libnghttp2.pc
/usr/local/lib/pkgconfig/libnghttp2_asio.pc
/usr/local/lib/python2.7
/usr/local/lib/python2.7/dist-packages
/usr/local/lib/python2.7/dist-packages/nghttp2.so
/usr/local/lib/python2.7/dist-packages/python_nghttp2-0.7.15_DEV-py2.7.egg-info
/usr/local/share
/usr/local/share/doc
/usr/local/share/doc/nghttp2
/usr/local/share/doc/nghttp2/README.rst
/usr/local/share/man
/usr/local/share/man/man1
/usr/local/share/man/man1/h2load.1.gz
/usr/local/share/man/man1/nghttp.1.gz
/usr/local/share/man/man1/nghttpd.1.gz
/usr/local/share/man/man1/nghttpx.1.gz
/usr/local/share/nghttp2
/usr/local/share/nghttp2/fetch-ocsp-response
/usr/share
/usr/share/doc
/usr/share/doc/nghttp2
/usr/share/doc/nghttp2/AUTHORS
/usr/share/doc/nghttp2/COPYING
/usr/share/doc/nghttp2/ChangeLog
/usr/share/doc/nghttp2/INSTALL
/usr/share/doc/nghttp2/NEWS
/usr/share/doc/nghttp2/README
/usr/share/doc/nghttp2/README.rst
/usr/share/doc/nghttp2/doc
/usr/share/doc/nghttp2/doc/.gitignore
/usr/share/doc/nghttp2/doc/Makefile
/usr/share/doc/nghttp2/doc/Makefile.am
/usr/share/doc/nghttp2/doc/Makefile.in
/usr/share/doc/nghttp2/doc/README.rst
/usr/share/doc/nghttp2/doc/_themes
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/__init__.py
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/breadcrumbs.html
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/footer.html
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/layout.html
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/layout_old.html
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/search.html
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/searchbox.html
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/css
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/css/badge_only.css
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/css/badge_only.css.map
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/css/theme.css
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/css/theme.css.map
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts/FontAwesome.otf
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts/Inconsolata-Bold.ttf
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts/Inconsolata.ttf
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts/Lato-Bold.ttf
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts/Lato-Regular.ttf
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts/RobotoSlab-Bold.ttf
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts/RobotoSlab-Regular.ttf
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts/fontawesome-webfont.eot
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts/fontawesome-webfont.svg
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts/fontawesome-webfont.ttf
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/fonts/fontawesome-webfont.woff
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/js
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/js/modernizr.min.js
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/static/js/theme.js
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/theme.conf
/usr/share/doc/nghttp2/doc/_themes/sphinx_rtd_theme/versions.html
/usr/share/doc/nghttp2/doc/asio_http2.h.rst
/usr/share/doc/nghttp2/doc/asio_http2.h.rst.in
/usr/share/doc/nghttp2/doc/asio_http2_client.h.rst
/usr/share/doc/nghttp2/doc/asio_http2_client.h.rst.in
/usr/share/doc/nghttp2/doc/asio_http2_server.h.rst
/usr/share/doc/nghttp2/doc/asio_http2_server.h.rst.in
/usr/share/doc/nghttp2/doc/bash_completion
/usr/share/doc/nghttp2/doc/bash_completion/h2load
/usr/share/doc/nghttp2/doc/bash_completion/make_bash_completion.py
/usr/share/doc/nghttp2/doc/bash_completion/nghttp
/usr/share/doc/nghttp2/doc/bash_completion/nghttpd
/usr/share/doc/nghttp2/doc/bash_completion/nghttpx
/usr/share/doc/nghttp2/doc/building-android-binary.rst
/usr/share/doc/nghttp2/doc/building-android-binary.rst.in
/usr/share/doc/nghttp2/doc/conf.py
/usr/share/doc/nghttp2/doc/conf.py.in
/usr/share/doc/nghttp2/doc/contribute.rst
/usr/share/doc/nghttp2/doc/contribute.rst.in
/usr/share/doc/nghttp2/doc/h2load-howto.rst
/usr/share/doc/nghttp2/doc/h2load-howto.rst.in
/usr/share/doc/nghttp2/doc/h2load.1
/usr/share/doc/nghttp2/doc/h2load.1.rst
/usr/share/doc/nghttp2/doc/h2load.h2r
/usr/share/doc/nghttp2/doc/index.rst
/usr/share/doc/nghttp2/doc/index.rst.in
/usr/share/doc/nghttp2/doc/libnghttp2_asio.rst
/usr/share/doc/nghttp2/doc/libnghttp2_asio.rst.in
/usr/share/doc/nghttp2/doc/make.bat
/usr/share/doc/nghttp2/doc/mkapiref.py
/usr/share/doc/nghttp2/doc/nghttp.1
/usr/share/doc/nghttp2/doc/nghttp.1.rst
/usr/share/doc/nghttp2/doc/nghttp.h2r
/usr/share/doc/nghttp2/doc/nghttp2.h.rst
/usr/share/doc/nghttp2/doc/nghttp2.h.rst.in
/usr/share/doc/nghttp2/doc/nghttp2ver.h.rst
/usr/share/doc/nghttp2/doc/nghttp2ver.h.rst.in
/usr/share/doc/nghttp2/doc/nghttpd.1
/usr/share/doc/nghttp2/doc/nghttpd.1.rst
/usr/share/doc/nghttp2/doc/nghttpd.h2r
/usr/share/doc/nghttp2/doc/nghttpx-howto.rst
/usr/share/doc/nghttp2/doc/nghttpx-howto.rst.in
/usr/share/doc/nghttp2/doc/nghttpx.1
/usr/share/doc/nghttp2/doc/nghttpx.1.rst
/usr/share/doc/nghttp2/doc/nghttpx.h2r
/usr/share/doc/nghttp2/doc/package_README.rst
/usr/share/doc/nghttp2/doc/package_README.rst.in
/usr/share/doc/nghttp2/doc/programmers-guide.rst
/usr/share/doc/nghttp2/doc/python-apiref.rst
/usr/share/doc/nghttp2/doc/python-apiref.rst.in
/usr/share/doc/nghttp2/doc/sources
/usr/share/doc/nghttp2/doc/sources/building-android-binary.rst
/usr/share/doc/nghttp2/doc/sources/contribute.rst
/usr/share/doc/nghttp2/doc/sources/h2load-howto.rst
/usr/share/doc/nghttp2/doc/sources/index.rst
/usr/share/doc/nghttp2/doc/sources/libnghttp2_asio.rst
/usr/share/doc/nghttp2/doc/sources/nghttpx-howto.rst
/usr/share/doc/nghttp2/doc/sources/python-apiref.rst
/usr/share/doc/nghttp2/doc/sources/tutorial-client.rst
/usr/share/doc/nghttp2/doc/sources/tutorial-hpack.rst
/usr/share/doc/nghttp2/doc/sources/tutorial-server.rst
/usr/share/doc/nghttp2/doc/tutorial-client.rst
/usr/share/doc/nghttp2/doc/tutorial-client.rst.in
/usr/share/doc/nghttp2/doc/tutorial-hpack.rst
/usr/share/doc/nghttp2/doc/tutorial-hpack.rst.in
/usr/share/doc/nghttp2/doc/tutorial-server.rst
/usr/share/doc/nghttp2/doc/tutorial-server.rst.in
1
ответ дан 11 May 2015 в 02:20
  • 1
    Все еще не работая, I' m пытающийся отклонить все за исключением правил я позволяю (как 80 и 443). – jimboe222 10 August 2016 в 14:15

Можно использовать:

./configure --prefix=/usr/local

или в Вашем случае

./configure --prefix=/usr/local --enable-asio-lib

Это установит в /usr/local дерево каталогов т.е. в /usr/local/bin/, /usr/local/lib, и т.д.

0
ответ дан 11 May 2015 в 02:20

Для nghttp2 asio необходимо использовать следующие команды

./configure --prefix=/usr/local --with-boost=<provide-path-of-boost-root> --enable-asio-lib
0
ответ дан 7 December 2019 в 13:58

Другие вопросы по тегам:

Похожие вопросы: