2011-04-09 03:53:55 +00:00
|
|
|
Basic Installation
|
|
|
|
==================
|
|
|
|
|
|
|
|
Libsearpc requires several other packages to be built. Before installing, read the `README` file and
|
|
|
|
MAKE SURE the required packages have been installed in your system.
|
|
|
|
|
|
|
|
|
|
|
|
1. If you downladed a tarball. Extract it to some path like `~/dev`, and cd ~/dev/libsearpc-1.0
|
|
|
|
If you git-cloned it from the repo, just cd into the directory.
|
|
|
|
|
|
|
|
2. run the following commands sequentially:
|
|
|
|
|
2011-04-09 10:40:55 +00:00
|
|
|
./autogen.sh
|
2011-04-09 03:53:55 +00:00
|
|
|
./configure
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
|
2011-04-09 10:40:55 +00:00
|
|
|
Note that `make install` requires root privilege, for example `sudo make install` in Debian distribution.
|
2011-04-09 03:53:55 +00:00
|
|
|
|
|
|
|
|
2011-04-09 10:40:55 +00:00
|
|
|
Optionally compile pysearpc
|
2011-05-18 09:28:52 +00:00
|
|
|
===========================
|
2011-04-09 10:40:55 +00:00
|
|
|
|
2011-05-18 09:28:52 +00:00
|
|
|
By default, Pysearpc are compiled. If you'd like to not compile pysearpc, use the following command:
|
2011-04-09 10:40:55 +00:00
|
|
|
|
2011-05-18 09:28:52 +00:00
|
|
|
./configure --enable-compile-python=no
|
2011-04-09 10:40:55 +00:00
|
|
|
|
|
|
|
In this way, Pysearpc would not be compiled or installed.
|
|
|
|
|
2012-06-09 16:26:31 +00:00
|
|
|
In MacOs, if you want to use py2app, you would better run the following commnads:
|
|
|
|
./configure LDFLAGS="-Xlinker -headerpad_max_install_names"
|
|
|
|
In this way, the following error will be avoided:
|
|
|
|
raise ValueError("New Mach-O header is too large to relocate")
|
|
|
|
|
2011-04-09 10:40:55 +00:00
|
|
|
|
2011-05-18 09:28:52 +00:00
|
|
|
Optionally compile demos
|
|
|
|
========================
|
2011-04-09 10:40:55 +00:00
|
|
|
|
|
|
|
By default, a pair of client/server demo programs are compiled. If you'd like to disable this, use
|
|
|
|
the following command:
|
|
|
|
|
|
|
|
./configure --enable-compile-demo=no
|
|
|
|
|
|
|
|
Note that whatever your choice is, the demos would never be installed. They just stay in the source
|
|
|
|
directory.
|
|
|
|
|
|
|
|
Other options
|
2011-05-18 09:28:52 +00:00
|
|
|
=============
|
2011-04-09 10:40:55 +00:00
|
|
|
|
|
|
|
Other options provided by Autoconf can be found in the manual of GNU Autoconf.
|
|
|
|
|
|
|
|
http://www.gnu.org/software/autoconf/manual/autoconf.html
|
|
|
|
|
|
|
|
|