Closed perrynzhou closed 3 years ago
@perrynzhou Yeah, I think I have seen this before with some other user too.
When you are compiling glusterfs from source please use flag --prefix=/usr
at the configure, and then retry compiling gluster-block.
@pkalever the same error
[root@szdpl1486 gluster-block]# ls -l /usr/lib|grep gluster
drwxr-xr-x. 3 root root 24 Oct 15 18:43 glusterfs
-rwxr-xr-x. 1 root root 978 Oct 15 18:43 libglusterd.la
lrwxrwxrwx. 1 root root 20 Oct 15 18:43 libglusterd.so -> libglusterd.so.0.0.1
lrwxrwxrwx. 1 root root 20 Oct 15 18:43 libglusterd.so.0 -> libglusterd.so.0.0.1
-rwxr-xr-x. 1 root root 254312 Oct 15 18:43 libglusterd.so.0.0.1
-rwxr-xr-x. 1 root root 984 Oct 15 18:43 libglusterfs.la
lrwxrwxrwx. 1 root root 21 Oct 15 18:43 libglusterfs.so -> libglusterfs.so.0.0.1
lrwxrwxrwx. 1 root root 21 Oct 15 18:43 libglusterfs.so.0 -> libglusterfs.so.0.0.1
-rwxr-xr-x. 1 root root 3676608 Oct 15 18:43 libglusterfs.so.0.0.1
[root@szdpl1486 gluster-block]# ./autogen.sh && ./configure --enable-tirpc=no
autogen.sh: start libtoolize to get ltmain.sh
libtoolize: putting auxiliary files in `.'.
libtoolize: copying file `./ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIR, `m4'.
libtoolize: copying file `m4/libtool.m4'
libtoolize: copying file `m4/ltoptions.m4'
libtoolize: copying file `m4/ltsugar.m4'
libtoolize: copying file `m4/ltversion.m4'
libtoolize: copying file `m4/lt~obsolete.m4'
autogen.sh: reconfigure with autoreconf
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal -I m4 --force -I m4
checking for rpc/pmap_clnt.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GFAPI... no
checking for GFAPI... no
configure: error: gfapi library >= 3.6 is required to build gluster-block
check the location of libgfapi.so library.
If it's not in your standard path, then try exporting through the LD_LIBARARY_PATH variable
@pkalever that is a bug.change LD_LIBRARY_PATH still happen
[root@szdpl1486 gluster-block]# ls -l /usr/lib |grep gluster
drwxr-xr-x. 3 root root 24 Oct 15 18:43 glusterfs
-rwxr-xr-x. 1 root root 978 Oct 15 18:43 libglusterd.la
lrwxrwxrwx. 1 root root 20 Oct 15 18:43 libglusterd.so -> libglusterd.so.0.0.1
lrwxrwxrwx. 1 root root 20 Oct 15 18:43 libglusterd.so.0 -> libglusterd.so.0.0.1
-rwxr-xr-x. 1 root root 254312 Oct 15 18:43 libglusterd.so.0.0.1
-rwxr-xr-x. 1 root root 984 Oct 15 18:43 libglusterfs.la
lrwxrwxrwx. 1 root root 21 Oct 15 18:43 libglusterfs.so -> libglusterfs.so.0.0.1
lrwxrwxrwx. 1 root root 21 Oct 15 18:43 libglusterfs.so.0 -> libglusterfs.so.0.0.1
-rwxr-xr-x. 1 root root 3676608 Oct 15 18:43 libglusterfs.so.0.0.1
[root@szdpl1486 gluster-block]# export LD_LIBRARY_PATH=/usr/lib:/usr/lib64
[root@szdpl1486 gluster-block]# ./configure --enable-tirpc=no
checking whether make supports nested variables... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking rpc/pmap_clnt.h presence... yes
checking for rpc/pmap_clnt.h... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GFAPI... no
checking for GFAPI... no
configure: error: gfapi library >= 3.6 is required to build gluster-block
@pkalever may you help me how to solove it?
@pkalever that always has problem?how to fixed that problem
@perrynzhou this looks like environment-related, can you add details about your working environment and reproducer steps? I will have to try to reproduce it locally.
Hope you fixed it by now, feel free to reopen as required.
@pranithk @pkalever pkaleverpkalever i build glusterfs with source,but when i install gluster-block failed?how to solove that?