INSTALL 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. To install libs3 on a POSIX system (except Microsoft Windows):
  2. --------------------------------------------------------------
  3. Note that all POSIX builds have prerequisites, such as development libraries
  4. that libs3 requires and that must be installed at the time that libs3 is
  5. built. The easiest way to find out what those are, is to run the build
  6. command and then observe the results.
  7. *** For RPM-based systems (Fedora Core, Mandrake, etc) ***
  8. * rpmbuild -ta <libs3 archive>
  9. for example:
  10. rpmbuild -ta libs3-0.3.tar.gz
  11. *** For dpkg-based systems (Debian, Ubuntu, etc) ***
  12. * make deb
  13. This will produce a Debian package in the build/pkg directory.
  14. *** For all other systems ***
  15. * make [DESTDIR=destination root] install
  16. DESTDIR defaults to /usr
  17. To install libs3 on a Microsoft Windows system:
  18. -----------------------------------------------
  19. *** Using MingW ***
  20. * libs3 can be built on Windows using the MingW compiler. No other tool
  21. is needed. However, the following libraries are needed to build libs3:
  22. - curl development libraries
  23. - libxml2 development libraries, and the libraries that it requires:
  24. - iconv
  25. - zlib
  26. These projects are independent of libs3, and their release schedule and
  27. means of distribution would make it very difficult to provide links to
  28. the files to download and keep them up-to-date in this file, so no attempt
  29. is made here.
  30. Development libraries and other files can be placed in:
  31. c:\libs3-libs\bin
  32. c:\libs3-libs\include
  33. If the above locations are used, then the GNUmakefile.mingw will work with
  34. no special caveats. If the above locations are not used, then the following
  35. environment variables should be set:
  36. CURL_LIBS should be set to the MingW compiler flags needed to locate and
  37. link in the curl libraries
  38. CURL_CFLAGS should be set to the MingW compiler flags needed to locate and
  39. include the curl headers
  40. LIBXML2_LIBS should be set to the MingW compiler flags needed to locate and
  41. link in the libxml2 libraries
  42. LIBXML2_CFLAGS should be set to the MingW compiler flags needed to locate and
  43. include the libxml2 headers
  44. * mingw32-make [DESTDIR=destination] -f GNUmakefile.mingw install
  45. DESTDIR defaults to libs3-<version>
  46. * DESTDIR can be zipped up into a .zip file for distribution. For best
  47. results, the dependent libraries (curl, openssl, etc) should be included,
  48. along with their licenses.