搜了一下,你没安装libsearpc-2.0.8.tar.gz 吧?
Build and use seafile client from source allo- edited this page Monday at 12:51am · 30 revisions Pages 59Clone this wiki locally Clone in DesktopBuild Seafile ClientThe components of Seafile clientSeafile client v2.0 consists of three components:
- ccnet-daemon: for networking
- seafile-daemon: for file syncing
- seafile-applet: GUI
LinuxPreparationThe following list is what you need to install on your development machine.
You should install all of them before you build seafile.Package names are according to Ubuntu 12.04. For other Linux distros, please find their corresponding names yourself.
- autoconf/automake/libtool
- libevent-dev ( 2.0 or later )
- libcurl4-openssl-dev (1.0.0 or later)
- libgtk2.0-dev ( 2.24 or later)
- uuid-dev
- intltool ( 0.40 or later)
- libsqlite3-dev (3.7 or later)
- valac (only needed if you build from git repo)
- libjansson-dev
- libqt4-dev
- valac
- cmake
- libfuse-dev (for seafile >= 2.1)
- python-simplejson (for seaf-cli)
sudo apt-get install autoconf automake libtool libevent-dev libcurl4-openssl-dev libgtk2.0-dev uuid-dev intltool libsqlite3-dev valac libjansson-dev libqt4-dev cmake libfuse-devFor a fresh Fedora 20 installation, the following will install all dependencies via YUM:
$ sudo yum install wget gcc libevent-devel openssl-devel gtk2-devel libuuid-devel sqlite-devel jansson-devel intltool cmake qt-devel fuse-devel libtool vala gcc-c++
BuildingFirst you should get the latest source of libsearpc/ccnet/seafile/seafile-client:Download the source tarball of the latest tag from
For example, if the latest released seafile client is 2.0.8, then just use the
v2.0.8 tags of the four projects. You should get four tarballs:
- libsearpc-2.0.8.tar.gz
- ccnet-2.0.8.tar.gz
- seafile-2.0.8.tar.gz
- seafile-client-2.0.8.tar.gz
export version=2.0.8
alias wget='wget --content-disposition -nc'wget https://github.com/haiwen/libsearpc/archive/v
${version}.tar.gzwget https://github.com/haiwen/ccnet/archive/v
${version}.tar.gzwget https://github.com/haiwen/seafile/archive/v
${version}.tar.gzwget https://github.com/haiwen/seafile-client/archive/v
${version}.tar.gzNow uncompress them:tar xf libsearpc-
${version}.tar.gztar xf ccnet-
${version}.tar.gztar xf seafile-
${version}.tar.gztar xf seafile-client-
${version}.tar.gzTo build Seafile client, you need first build
libsearpc and
ccnet,
seafile.
set pathsexport PREFIX=/usr
export PKG_CONFIG_PATH="$PREFIX/lib/pkgconfig:$PKG_CONFIG_PATH"export PATH="$PREFIX/bin:$PATH"libsearpccd libsearpc-
${version}./autogen.sh./configure --prefix
=$PREFIXmakesudo make install
ccnetcd ccnet-
${version}./autogen.sh./configure --prefix
=$PREFIXmakesudo make install
seafilecd seafile-
${version}/./autogen.sh./configure --prefix
=$PREFIX --disable-guimakesudo make install
seafile-clientcd seafile-client-
${version}cmake -DCMAKE_BUILD_TYPE
=Release -DCMAKE_INSTALL_PREFIX
=$PREFIX .makesudo make install
custom prefixwhen installing to a custom $PREFIX, i.e. /opt, you may need a script to set the path variables correctlycat >
$PREFIX/bin/seafile-applet.sh
<<END#!/bin/bashexport LD_LIBRARY_PATH="$PREFIX/lib:$LD_LIBRARY_PATH"export PATH="$PREFIX/bin:$PATH"exec seafile-applet $@ENDcat >
$PREFIX/bin/seaf-cli.sh
<<ENDexport LD_LIBRARY_PATH="$PREFIX/lib:$LD_LIBRARY_PATH"export PATH="$PREFIX/bin:$PATH"export PYTHONPATH=$PREFIX/lib/python2.7/site-packagesexec seaf-cli $@ENDchmod +x
$PREFIX/bin/seafile-applet.sh
$PREFIX/bin/seaf-cli.shyou can now start the client with $PREFIX/bin/seafile-applet.sh.
Use Seafile ClientAfter you build and install Seafile client on Linux, you can start it by the seafile-applet command
$ sudo ldconfig
### (it is need sometimes after compilation)$ seafile-applet
### use seafile-applet.sh if seafile was installed into a custom prefix