ubuntu12.04 编译安装libev

这种小巧的c库

很适合学习makefile什么的。

很适合学习如何给c工程搞个自动编译脚本啥的。


root@Ubuntu32:/home/zhangbin/codeStore/testCODE/testMeServerRTSP# cd libev

root@Ubuntu32:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev# ls
root@Ubuntu32:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev#  cvs -z3 -d :pserver:anonymous@cvs.schmorp.de/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

root@Ubuntu32:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev# 




root@Ubuntu32:/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
root@Ubuntu32:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev# 




root@Ubuntu32:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev# automake --add-missing
automake: `configure.ac' or `configure.in' is required
root@Ubuntu32:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev#



root@Ubuntu32:/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.

root@Ubuntu32:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev# 





root@Ubuntu32:/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'
root@Ubuntu32:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev# 





root@Ubuntu32:/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.




root@Ubuntu32:/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
root@Ubuntu32:/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'
root@Ubuntu32:/home/zhangbin/codeStore/testCODE/testMeServerRTSP/libev/libev# 




参考http://www.cnblogs.com/yourihua/archive/2012/08/06/2617629.html

http://zoomq.qiniudn.com/ZQScrapBook/ZqFLOSS/data/20101207205614/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

等风来不如迎风去

你的鼓励是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值