loongnix源里的libsearpc-dev太老了,不支持单点登录。所以先编译安装最新版libsearpc。
git clone https://github.com/haiwen/libsearpc.git
cd libsearpc/
./autogen.sh
./configure --prefix=/usr/local
make -j$(nproc)
sudo make install
loongnix源里的libseafile-dev太老了,会导致找不到这个文件:seafile/seafile-error.h
,所以接下来编译安装最新版libseafile:
# https://manual.seafile.com/build_seafile/linux/
sudo apt install valac libcurl4-openssl-dev libssl-dev
git clone https://github.com/haiwen/seafile.git
cd seafile
./autogen.sh
./configure --prefix=/usr/local --disable-fuse
make -j$(nproc)
sudo make install
最后编译seafile-client:
# https://github.com/haiwen/seafile-client
# https://stackoverflow.com/questions/51698075/cmake-cannot-find-qt5linguisttools-in-docker-ubuntu-18-04
sudo apt install qttools5-dev
sudo apt install libsqlite3-dev libevent-dev
# 单点登录要用
sudo apt install qtwebengine5-dev
git clone https://github.com/haiwen/seafile-client.git
cd seafile-client/
mkdir build
cd build
# https://github.com/haiwen/seafile-client/issues/845
cmake .. -DBUILD_SHIBBOLETH_SUPPORT=ON
make -j$(nproc)
sudo make install
可能有些依赖我这里没有写,看报错信息装上就好了。
P.S. 新世界上没有qt5-webengine,qt6-webengine工作也不正常,所以无法支持单点登录,编译seafile-client
时需要去掉-DBUILD_SHIBBOLETH_SUPPORT=ON
。