Como especificar para instalar bibliotecas em / usr / local /

1

Estou tentando configurar e instalar um pacote de aplicativo e biblioteca. O pacote é este . Eu segui as instruções e ele foi bem instalado, e eu posso executar o binário do diretório src , onde ele foi instalado.

Agora eu queria instalar um conjunto de bibliotecas adicionando --enable-asio-lib ou seja, eu corri %código%. Eu já tinha instalado as dependências necessárias e não havia erros.

No entanto, quando eu verifico / usr / local / lib ou / usr / local / include, não há arquivos presentes. O que preciso fazer para que o ./configure --enable-asio-lib instale as bibliotecas (e possivelmente os binários) no local regular onde esses arquivos são normalmente instalados?

    
por tgun926 10.05.2015 / 15:20

2 respostas

1

Você pode usar:

./configure --prefix=/usr/local

ou no seu caso

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

Ele será instalado na árvore de diretórios /usr/local , ou seja, em /usr/local/bin/ , /usr/local/lib , etc ...

    
por solsTiCe 10.05.2015 / 16:48
1

O prefixo padrão em configure é /usr/local .

Instale a ferramenta checkinstall :

sudo apt-get install checkinstall

e siga estes passos:

git clone [email protected]:tatsuhiro-t/nghttp2.git
cd nghttp2
autoreconf -i
automake
autoconf

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

Instale com

make install

ou checkinstall para um pacote deb:

sudo checkinstall

Existe um aviso durante a instalação:

*** 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

Se você ver isso, pressione Enter e 3 e digite por exemplo:

0.7.15

Após o pacote ser instalado.

Aqui está uma lista de todos os arquivos instalados:

/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
    
por A.B. 10.05.2015 / 18:50