ceph:源代码编译 nfs-ganesha 2.8.4 (V2-stable)
step 1:
从github下载nfs-ganesha ( 标签2.8.4或分支V2-stable )
同时下载相应代码库中指定的版本的 libntirpc 库代码!注意版本一致。注意ntirpc放到src目录中,要改名为libntirpc或直接做个符号链接libntirpc。
step 2:
根据你自己的要求或希望的功能,安装依赖
step 3:
cmake 生成make文件,在此次可以指定功能开关、功能选项
step 4:执行make 编译、安装等
我的相关shell脚本如下:
yum install -y make cmake gcc gcc-c++ kernel-devel kernel-headers yum install -y jemalloc-devel yum install -y krb5-devel yum install -y userspace-rcu-devel yum install -y bison bison-devel yum install -y flex flex-devel yum install -y libnsl2-devel yum install -y uuid uuid-devel uuid-c++-devel yum install -y libunwind-devel yum install -y nfs-utils-devel yum install -y libacl-devel yum install -y dbus-devel yum install -y libcap-devel libcap-ng-devel yum install -y libtirpc-devel libtirpc #yum install -y grpc-devel yum install -y libcephfs-devel librgw-devel yum install -y xfsprogs-devel #yum install -y glusterfs-devel #yum install -y libwbclient-devel #yum install -y glibc-compat yum install -y git yum install -y rpmrebuild selinux-policy-devel yum install -y kylin-lsb yum install -y doxygen git clone --branch V6.0 --recursive https://github.com/nfs-ganesha/nfs-ganesha.git git clone --branch V5.9 --recursive https://github.com/nfs-ganesha/nfs-ganesha.git git clone --branch V4.4.1 --recursive https://github.com/nfs-ganesha/nfs-ganesha.git #git clone --branch V5-table --recursive https://github.com/nfs-ganesha/nfs-ganesha.git #git clone --branch V4-table --recursive https://github.com/nfs-ganesha/nfs-ganesha.git #git clone --branch V3-table --recursive https://github.com/nfs-ganesha/nfs-ganesha.git mkdir bld cd bld cd ~/bld && rm -rf * && cmake ~/nfs-ganesha/src && make -j2 cd ~/bld && rm -rf * && cmake ~/nfs-ganesha/src && make -j2 cd ~/bld && rm -rf * && cmake ~/nfs-ganesha-4.4.1/src && make -j2 cd ~/bld && rm -rf * && cmake ~/nfs-ganesha-4.4.1/src && make -j2 rpm #make -j2 rpm #make install
分类:
ceph
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)