1. 程式人生 > >ubuntu12.04 編譯安裝libev

ubuntu12.04 編譯安裝libev

這種小巧的c庫

很適合學習makefile什麼的。

很適合學習如何給c工程搞個自動編譯指令碼啥的。

[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP# cd libev

[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev# ls
[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev# cvs -z3 -d :pserver:
[email protected]
/schmorpforge co libev

cvs checkout: Updating libev
U libev/Changes
U libev/LICENSE
U libev/Makefile.am
U libev/README
U libev/README.embed
U libev/Symbols.ev
U libev/Symbols.event
U libev/autogen.sh
U libev/configure.ac
U libev/ev++.h
U libev/ev.3
U libev/ev.c
U libev/ev.h
U libev/ev.pod
U libev/ev_epoll.c
U libev/ev_kqueue.c
U libev/ev_poll.c
U libev/ev_port.c
U libev/ev_select.c
U libev/ev_vars.h
U libev/ev_win32.c
U libev/ev_wrap.h
U libev/event.c
U libev/event.h
U libev/event_compat.h
U libev/import_libevent
U libev/libev.m4
U libev/update_ev_c
U libev/update_ev_wrap
U libev/update_symbols

[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev# 

[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev# automake –add-missing
automake: no Automake input file found for `–add-missing'
automake: no input file found among supplied arguments
[email protected]

:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev# 

[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev# automake --add-missing
automake: `configure.ac' or `configure.in' is required
[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev#

[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev# automake --add-missing
configure.ac: no proper invocation of AM_INIT_AUTOMAKE was found.
configure.ac: You should verify that configure.ac invokes AM_INIT_AUTOMAKE,
configure.ac: that aclocal.m4 is present in the top-level directory,
configure.ac: and that aclocal.m4 was recently regenerated (using aclocal).
configure.ac:20: installing `./install-sh'
configure.ac:8: required file `config.h.in' not found
Makefile.am:14: Libtool library used but `LIBTOOL' is undefined
Makefile.am:14:   The usual way to define `LIBTOOL' is to add `LT_INIT'
Makefile.am:14:   to `configure.ac' and run `aclocal' and `autoconf' again.
Makefile.am:14:   If `LT_INIT' is in `configure.ac', make sure
Makefile.am:14:   its definition is in aclocal's search path.
Makefile.am: installing `./depcomp'
/usr/share/automake-1.11/am/depend2.am: am__fastdepCC does not appear in AM_CONDITIONAL
/usr/share/automake-1.11/am/depend2.am:   The usual way to define `am__fastdepCC' is to add `AC_PROG_CC'
/usr/share/automake-1.11/am/depend2.am:   to `configure.ac' and run `aclocal' and `autoconf' again.
/usr/share/automake-1.11/am/depend2.am: AMDEP does not appear in AM_CONDITIONAL
/usr/share/automake-1.11/am/depend2.am:   The usual way to define `AMDEP' is to add one of the compiler tests
/usr/share/automake-1.11/am/depend2.am:     AC_PROG_CC, AC_PROG_CXX, AC_PROG_CXX, AC_PROG_OBJC,
/usr/share/automake-1.11/am/depend2.am:     AM_PROG_AS, AM_PROG_GCJ, AM_PROG_UPC
/usr/share/automake-1.11/am/depend2.am:   to `configure.ac' and run `aclocal' and `autoconf' again.

[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev# 

[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev# sh autogen.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: linking file `./config.guess'
libtoolize: linking file `./config.sub'
libtoolize: linking file `./install-sh'
libtoolize: linking file `./ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:7: installing `./missing'
[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev# 

[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev# gedit configure_Help.txt 

`configure' configures this package to adapt to many kinds of systems.


Usage: ./configure [OPTION]... [VAR=VALUE]...


To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE.  See below for descriptions of some of the useful variables.


Defaults for the options are specified in brackets.


Configuration:
  -h, --help              display this help and exit
      --help=short        display options specific to this package
      --help=recursive    display the short help of all the included packages
  -V, --version           display version information and exit
  -q, --quiet, --silent   do not print `checking ...' messages
      --cache-file=FILE   cache test results in FILE [disabled]
  -C, --config-cache      alias for `--cache-file=config.cache'
  -n, --no-create         do not create output files
      --srcdir=DIR        find the sources in DIR [configure dir or `..']


Installation directories:
  --prefix=PREFIX         install architecture-independent files in PREFIX
                          [/usr/local]
  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
                          [PREFIX]


By default, `make install' will install all the files in
`/usr/local/bin', `/usr/local/lib' etc.  You can specify
an installation prefix other than `/usr/local' using `--prefix',
for instance `--prefix=$HOME'.


For better control, use the options below.


Fine tuning of the installation directories:
  --bindir=DIR            user executables [EPREFIX/bin]
  --sbindir=DIR           system admin executables [EPREFIX/sbin]
  --libexecdir=DIR        program executables [EPREFIX/libexec]
  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
  --libdir=DIR            object code libraries [EPREFIX/lib]
  --includedir=DIR        C header files [PREFIX/include]
  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
  --infodir=DIR           info documentation [DATAROOTDIR/info]
  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
  --mandir=DIR            man documentation [DATAROOTDIR/man]
  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
  --htmldir=DIR           html documentation [DOCDIR]
  --dvidir=DIR            dvi documentation [DOCDIR]
  --pdfdir=DIR            pdf documentation [DOCDIR]
  --psdir=DIR             ps documentation [DOCDIR]


Program names:
  --program-prefix=PREFIX            prepend PREFIX to installed program names
  --program-suffix=SUFFIX            append SUFFIX to installed program names
  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names


System types:
  --build=BUILD     configure for building on BUILD [guessed]
  --host=HOST       cross-compile to build programs to run on HOST [BUILD]


Optional Features:
  --disable-option-checking  ignore unrecognized --enable/--with options
  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  --enable-maintainer-mode  enable make rules and dependencies not useful
  (and sometimes confusing) to the casual installer
  --disable-dependency-tracking  speeds up one-time build
  --enable-dependency-tracking   do not reject slow dependency extractors
  --enable-shared[=PKGS]  build shared libraries [default=yes]
  --enable-static[=PKGS]  build static libraries [default=yes]
  --enable-fast-install[=PKGS]
                          optimize for fast installation [default=yes]
  --disable-libtool-lock  avoid locking (might break parallel builds)


Optional Packages:
  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
                          both]
  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
  --with-sysroot=DIR Search for dependent libraries within DIR
                        (or the compiler's sysroot if not specified).


Some influential environment variables:
  CC          C compiler command
  CFLAGS      C compiler flags
  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
              nonstandard directory <lib dir>
  LIBS        libraries to pass to the linker, e.g. -l<library>
  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
              you have headers in a nonstandard directory <include dir>
  CPP         C preprocessor


Use these variables to override the choices made by `configure' or to help
it to find libraries and programs with nonstandard names/locations.


Report bugs to the package provider.

[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev# ./configure --prefix=/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home
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... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking how to print strings... printf
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 sys/inotify.h usability... yes
checking sys/inotify.h presence... yes
checking for sys/inotify.h... yes
checking sys/epoll.h usability... yes
checking sys/epoll.h presence... yes
checking for sys/epoll.h... yes
checking sys/event.h usability... no
checking sys/event.h presence... no
checking for sys/event.h... no
checking port.h usability... no
checking port.h presence... no
checking for port.h... no
checking poll.h usability... yes
checking poll.h presence... yes
checking for poll.h... yes
checking sys/select.h usability... yes
checking sys/select.h presence... yes
checking for sys/select.h... yes
checking sys/eventfd.h usability... yes
checking sys/eventfd.h presence... yes
checking for sys/eventfd.h... yes
checking sys/signalfd.h usability... yes
checking sys/signalfd.h presence... yes
checking for sys/signalfd.h... yes
checking for inotify_init... yes
checking for epoll_ctl... yes
checking for kqueue... no
checking for port_create... no
checking for poll... yes
checking for select... yes
checking for eventfd... yes
checking for signalfd... yes
checking for clock_gettime... no
checking for clock_gettime syscall... yes
checking for nanosleep... yes
checking for library containing floor... -lm
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev# 

rverRTSP/libev/libev# make install
make[1]: Entering directory `/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev'
test -z "/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib" || /bin/mkdir -p "/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib"
 /bin/bash ./libtool   --mode=install /usr/bin/install -c   libev.la '/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib'
libtool: install: /usr/bin/install -c .libs/libev.so.4.0.0 /home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib/libev.so.4.0.0
libtool: install: (cd /home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib && { ln -s -f libev.so.4.0.0 libev.so.4 || { rm -f libev.so.4 && ln -s libev.so.4.0.0 libev.so.4; }; })
libtool: install: (cd /home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib && { ln -s -f libev.so.4.0.0 libev.so || { rm -f libev.so && ln -s libev.so.4.0.0 libev.so; }; })
libtool: install: /usr/bin/install -c .libs/libev.lai /home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib/libev.la
libtool: install: /usr/bin/install -c .libs/libev.a /home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib/libev.a
libtool: install: chmod 644 /home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib/libev.a
libtool: install: ranlib /home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib/libev.a
libtool: finish: PATH="/opt/sun_java/jdk1.7.0_17/bin:/opt/sun_java/jdk1.7.0_17/jre/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/sbin" ldconfig -n /home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib
----------------------------------------------------------------------
Libraries have been installed in:
   /home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/lib


If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'


See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/include" || /bin/mkdir -p "/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/include"
 /usr/bin/install -c -m 644 ev.h ev++.h event.h '/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/include'
test -z "/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/share/man/man3" || /bin/mkdir -p "/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/share/man/man3"
 /usr/bin/install -c -m 644 ev.3 '/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/home/share/man/man3'
make[1]: Leaving directory `/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev'
[email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev# 

相關推薦

ubuntu12.04 編譯安裝libev

這種小巧的c庫 很適合學習makefile什麼的。 很適合學習如何給c工程搞個自動編譯指令碼啥的。 [email protected]:/home/zhangbin/codeStore/testCODE/testMeServerRTSP# cd libev [e

ubuntu12.04編譯安裝核心

ubuntu12.04編譯新核心 作為初學者,樓主想嘗試一下如何在ubuntu 12.04下編譯和升級核心版本。baidu了幾個中文指導。花去了一天的時間。在virtual box和PC上一一嘗試,無論是dpkg方式還是直接編譯方式均告失敗。樓主的12.04是預設安裝,沒

ubuntu14.04編譯安裝mysql5.6.28

add memory server 目錄 是否 efault mysql-bin cnblogs adl 一、安裝必備工具sudo apt-get install make bison g++ build-essential libncurses5-dev cmake nc

Ubuntu 16.04 編譯安裝 ss

ast logs sha timeout odi http end ibm 大小 在網上沒有找到合適的適合ubuntu的ss客戶端, 考慮到ss的編譯安裝其實就帶了ss-local這樣的客戶端, 於是在Ubuntu下編譯安裝了ss. 首先去github上下載最新的安裝包 h

Ubuntu12.04安裝VirtualBox

deb文件 http 修改 nload .com 行修改 align 硬盤 size 一、安裝虛擬機VirtualBox VirtualBox下載地址:https://www.virtualbox.org/wiki/Linux_Downloads 本文下載該版本:virtu

ubuntu12.04安裝Python3.5.2

.py http image clas ubuntu body eas conf inf 1 下載源碼包 (https://www.python.org/downloads/release/python-352/) 2 解壓Python-3.5.2.tar.xz 3 s

WSL Ubuntu18.04 編譯安裝 nignx

pen libpcre local configure upa wget libssl bss sta http://nginx.org/en/download.html wget http://nginx.org/download/nginx-1.14.0.tar.g

Ubuntu18.04編譯安裝mysql5.7.23

size https tst 源碼 don 解析 truncate 保存 compiler 本博客為源碼安裝mysql5.7.23案例全過程 環境ubuntu18.04 安裝規劃: 配置文件:/etc/my.cnf 數據目錄:/r2/mysqldata 安裝目錄:/usr/

Ubuntu12.04安裝sebek伺服器

**安裝Sebek 伺服器檔案** 1 1.使用 ls 命令找到剛剛加進來的檔案,例如 sebek-server.tar.gz 2.輸入 tar xvzf sebek-server.tar.gz 3.然後使用ls 命令 應該可以看到如下圖結果 4.使用 cd sebekd 進入 sebek

ubuntu 16.04 編譯安裝 amule

安裝依賴 $ sudo apt-get install libcrypto++-utils binutils-dev libcrypto++-dev libgtk2.0-dev libgeoip-dev zlib1g-dev libupnp-dev libboost-all-dev libwxba

ubuntu16.04編譯安裝mysql原始碼

轉自:https://blog.csdn.net/Touatou/article/details/79601104 虛擬機器安裝:VirtualBox-5.2.0-118431-Win.exe,下載地址:http://cn.ubuntu.com/download/

Ubuntu12.04安裝搜狗輸入法

搜狗輸入法在Ubuntu12、14、16都可以去官網下載對應deb安裝包。 為了能安裝輸入法,建議安裝im-config(sudo apt-get install im-switch),不推薦使用ibus(現在ibus已經不好用了),然後開啟im-switch

【新手推薦】Ubuntu12.04英文版安裝中文語言包及輸入法

在安裝中文語言包和中文輸入法之前,我先配置好了pc-arm的交叉編譯環境和QT,因為我要在qt中使用中文,所以不知道是否應該先把開發環境配置好再安裝輸入法。 1.更新源列表: ubuntu上的軟體安裝都需要實時聯網,所以在安裝軟體時都應該保持網路暢通。安裝軟體需要獲取網路資

Ubuntu12.04安裝配置adb工具

由專案需要,現在需要在android下測試linux核心的Futex中的requeue漏洞。那麼首先要做的肯定是搭建測試 環境。網上看了一些部落格,發現很多都是照搬照抄,甚至將SUBSYSYTEM

Ubuntu 16.04編譯安裝OpenCV(Python)

環境: Ubuntu 16.04 64bit ,openCV opencv-3.1.0 1.安裝opencv依賴包 $ sudo apt-get install build-essential $ sudo apt-get install cmake git libgtk2

ubuntu 14.04編譯安裝nginx 1.14.2

環境:Ubuntu 14.04+nginx 1.14.1+php 近期,nginx 1.14.1報了漏洞需要將nginx版本升級到1.14.2。apt-get支援的最新版就是1.14.1,所以需要編譯安裝1.14.2。 一、儲存nginx 1.14.1的配置檔案並解除安裝  

ubuntu12.04安裝cmake-3.0.1

對Cmake的說明          Cmake是一個跨平臺的程式編譯工具,說的簡單點,就是同樣的原始檔,在windows下使用cmake,選擇VS編譯器,就可以編譯出vs的工程,使用CDT就可以編譯出Eclipse的工程,使用一般的編譯器,還可以直接編譯出Make

Ubuntu12.04安裝、使用、解除安裝MySQL

轉自:http://blog.csdn.net/yimi0903/article/details/11800713 一、安裝     Step1:安裝MySQL-server,mysql-client         執行以下命令: sudo apt-get i

ubuntu12.04怎麼安裝五筆

1、sudo apt-get install fcitx  //安裝 fcitx 2、sudo apt-get install fcitx-table-wbpy  //安裝五筆拼音混合輸入的庫表 3、sudo apt-get install  fcitx-table-wu

Ubuntu12.04安裝和配置Java JDK

裝了ubuntu,不熟悉。 原址如下: 先去Oracle下載Linux下的JDK壓縮包,我下載的是jdk-7u4-linux-i586.tar.gz檔案,下好後直接解壓Step1:# 將解壓好的jdk1.7.0_04資料夾用最高許可權複製到/usr/lib/jvm目錄