1. linux下安装及配置

      1.1 编译安装

  1. $ ./configure
  2. $ make
  3. $ make install
  4. Making install in include
  5. make[1]: Entering directory `/home/software/yaml-0.2.2/include'
  6. make[2]: Entering directory `/home/software/yaml-0.2.2/include'
  7. make[2]: Nothing to be done for `install-exec-am'.
  8. /bin/mkdir -p '/usr/local/include'
  9. /bin/install -c -m 644 yaml.h '/usr/local/include/.'
  10. make[2]: Leaving directory `/home/software/yaml-0.2.2/include'
  11. make[1]: Leaving directory `/home/software/yaml-0.2.2/include'
  12. Making install in src
  13. make[1]: Entering directory `/home/software/yaml-0.2.2/src'
  14. make[2]: Entering directory `/home/software/yaml-0.2.2/src'
  15. /bin/mkdir -p '/usr/local/lib'
  16. /bin/sh ../libtool --mode=install /bin/install -c libyaml.la '/usr/local/lib'
  17. libtool: install: /bin/install -c .libs/libyaml-0.so.2.0.6 /usr/local/lib/libyaml-0.so.2.0.6
  18. libtool: install: (cd /usr/local/lib && { ln -s -f libyaml-0.so.2.0.6 libyaml-0.so.2 || { rm -f libyaml-0.so.2 && ln -s libyaml-0.so.2.0.6 libyaml-0.so.2; }; })
  19. libtool: install: (cd /usr/local/lib && { ln -s -f libyaml-0.so.2.0.6 libyaml.so || { rm -f libyaml.so && ln -s libyaml-0.so.2.0.6 libyaml.so; }; })
  20. libtool: install: /bin/install -c .libs/libyaml.lai /usr/local/lib/libyaml.la
  21. libtool: install: /bin/install -c .libs/libyaml.a /usr/local/lib/libyaml.a
  22. libtool: install: chmod 644 /usr/local/lib/libyaml.a
  23. libtool: install: ranlib /usr/local/lib/libyaml.a
  24. libtool: finish: PATH="/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin:/sbin" ldconfig -n /usr/local/lib
  25. ----------------------------------------------------------------------
  26. Libraries have been installed in:
  27. /usr/local/lib
  28. If you ever happen to want to link against installed libraries
  29. in a given directory, LIBDIR, you must either use libtool, and
  30. specify the full pathname of the library, or use the '-LLIBDIR'
  31. flag during linking and do at least one of the following:
  32. - add LIBDIR to the 'LD_LIBRARY_PATH' environment variable
  33. during execution
  34. - add LIBDIR to the 'LD_RUN_PATH' environment variable
  35. during linking
  36. - use the '-Wl,-rpath -Wl,LIBDIR' linker flag
  37. - have your system administrator add LIBDIR to '/etc/ld.so.conf'
  38. See any operating system documentation about shared libraries for
  39. more information, such as the ld(1) and ld.so(8) manual pages.
  40. ----------------------------------------------------------------------
  41. make[2]: Nothing to be done for `install-data-am'.
  42. make[2]: Leaving directory `/home/software/yaml-0.2.2/src'
  43. make[1]: Leaving directory `/home/software/yaml-0.2.2/src'
  44. Making install in .
  45. make[1]: Entering directory `/home/software/yaml-0.2.2'
  46. make[2]: Entering directory `/home/software/yaml-0.2.2'
  47. make[2]: Nothing to be done for `install-exec-am'.
  48. /bin/mkdir -p '/usr/local/lib/pkgconfig'
  49. /bin/install -c -m 644 yaml-0.1.pc '/usr/local/lib/pkgconfig'
  50. make[2]: Leaving directory `/home/software/yaml-0.2.2'
  51. make[1]: Leaving directory `/home/software/yaml-0.2.2'
  52. Making install in tests
  53. make[1]: Entering directory `/home/software/yaml-0.2.2/tests'
  54. make[2]: Entering directory `/home/software/yaml-0.2.2/tests'
  55. make[2]: Nothing to be done for `install-exec-am'.
  56. make[2]: Nothing to be done for `install-data-am'.
  57. make[2]: Leaving directory `/home/software/yaml-0.2.2/tests'
  58. make[1]: Leaving directory `/home/software/yaml-0.2.2/tests'

1.2 配置规则

1.3 demo程序

2. 参考文献