]> git.ipfire.org Git - thirdparty/libarchive.git/blame - INSTALL
Release 3.7.4
[thirdparty/libarchive.git] / INSTALL
CommitLineData
8797188b 1More complete build documentation is available on the libarchive
1572069f 2Wiki: https://github.com/libarchive/libarchive/wiki
8797188b
TK
3
4On most Unix-like systems, you should be able to install libarchive,
5bsdtar, and bsdcpio using the following common steps:
b3cfa26b
TK
6 ./configure
7 make
8 make install
9
10If you need to customize the target directories or otherwise adjust
11the build setting, use
12 ./configure --help
13to list the configure options.
14
b60a5be8
TK
15If you are developing libarchive and need to update the
16configure script and other build files:
17 /bin/sh build/autogen.sh
b3cfa26b 18
8797188b
TK
19To create a distribution, please use the 'distcheck' target:
20 /bin/sh build/autogen.sh && ./configure && make distcheck
21
7a8dcef3 22On Unix-like and non-Unix-like systems, use the "cmake" utility (available from
d4682a2c
TK
23http://cmake.org/) to generate suitable build files for your platform.
24Cmake requires the name of the directory containing CmakeLists.txt and
25the "generator" to use for your build environment. For example, to
26build with Xcode on Mac OS, you can use the following command:
27 cmake -G "Xcode" ~/libarchive-download-dir/
8797188b
TK
28The result will be appropriate makefiles, solution files, or project
29files that can be used with the corresponding development tool.
7a8dcef3
TK
30The default on Unix-like systems is to generate Makefiles, so you
31can also use cmake instead of the configure script:
32 cmake ~/libarchive-download-dir/
33 make
34 make install
35See the libarchive Wiki or the cmake site for further documentation.