You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by Andrzej <bo...@wp.pl> on 2017/09/22 16:07:51 UTC

libsasl2.so.3 (branch HBASE-14850)

I have build my own library bases on simple-client.
When try run is error: libsasl2.so.3 cannot open shared object file no 
such file or directory
I have libsasl2.so.2 and I don't know how install libsasl2.so.3

Re: libsasl2.so.3 (branch HBASE-14850)

Posted by Andrzej <bo...@wp.pl>.
W dniu 22.09.2017 o 19:10, Ted Yu pisze:
> Please refer to hbase-native-client/docker-files/Dockerfile for necessary
> dependencies.
> 
> The binaries built within docker should not be directly linked outside
> docker, unless OS outside docker is the same as within.

I try:
based on 
hbase-native/HBASE-14850/hbase-native-client/docker-files/Dockerfile:

wget ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.tar.gz
tar zxf cyrus-sasl-2.1.26.tar.gz
cd cyrus-sasl-2.1.26
./configure
make
sudo make install

but are make errors:
digestmd5.c:859:5: error: unknown type name 'des_key_schedule'
      des_key_schedule keysched;  /* key schedule for des initialization */
      ^
digestmd5.c:860:5: error: unknown type name 'des_cblock'
      des_cblock ivec;            /* initial vector for encoding */
      ^
digestmd5.c:861:5: error: unknown type name 'des_key_schedule'
      des_key_schedule keysched2; /* key schedule for 3des initialization */
      ^
digestmd5.c:902:5: error: 'DES_DECRYPT' undeclared (first use in this 
function)
      DES_DECRYPT);

=====
I have something not installed? But I don't get #include errors but DES 
idents errors.

Re: libsasl2.so.3 (branch HBASE-14850)

Posted by Ted Yu <yu...@gmail.com>.
Please refer to hbase-native-client/docker-files/Dockerfile for necessary
dependencies.

The binaries built within docker should not be directly linked outside
docker, unless OS outside docker is the same as within.

On Fri, Sep 22, 2017 at 10:08 AM, Andrzej <bo...@wp.pl> wrote:

> W dniu 22.09.2017 o 18:57, Ted Yu pisze:
> > So libsasl2.so.3 is in your docker VM.
> > Can you give the full error w.r.t. libsasl2.so.3 not being opened (I
> assume
> > you got the error within docker) ?
>
> No, build is ok within docker, but I can't use it outside docker
>
> Previous I have problems with forcing Buck to rebuild, but I have restored
> VirtualBox snapshot of Linux.
>

Re: libsasl2.so.3 (branch HBASE-14850)

Posted by Andrzej <bo...@wp.pl>.
W dniu 22.09.2017 o 18:57, Ted Yu pisze:
 > So libsasl2.so.3 is in your docker VM.
 > Can you give the full error w.r.t. libsasl2.so.3 not being opened (I 
assume
 > you got the error within docker) ?

No, build is ok within docker, but I can't use it outside docker

Previous I have problems with forcing Buck to rebuild, but I have 
restored VirtualBox snapshot of Linux.

Re: libsasl2.so.3 (branch HBASE-14850)

Posted by Ted Yu <yu...@gmail.com>.
So libsasl2.so.3 is in your docker VM.

Can you give the full error w.r.t. libsasl2.so.3 not being opened (I assume
you got the error within docker) ?

On Fri, Sep 22, 2017 at 9:53 AM, Andrzej <bo...@wp.pl> wrote:

> W dniu 22.09.2017 o 18:19, Ted Yu pisze:
>
>> On my docker VM, I found the following:
>>
>> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
>> /usr/lib/x86_64-linux-gnu/libsasl2.so.2
>> /usr/local/lib/libsasl2.so.3.0.0
>> /usr/local/lib/libsasl2.so.3
>>
>
> In my docker:
> root@securecluster:/usr/src/hbase/hbase-native-client# whereis  libsasl2
> libsasl2: /usr/local/lib/libsasl2.so /usr/local/lib/libsasl2.la
> root@securecluster:/usr/src/hbase/hbase-native-client# ls
> /usr/local/lib/libsasl*
> /usr/local/lib/libsasl2.la  /usr/local/lib/libsasl2.so.3
> /usr/local/lib/libsasl2.so  /usr/local/lib/libsasl2.so.3.0.0
> root@securecluster:/usr/src/hbase/hbase-native-client#
>
>
> Take a look at the first RUN command in:
>>
>> hbase-native-client/docker-files/Dockerfile
>>
>
> FROM pjameson/buck-folly-watchman:20160511
>
> ARG CC=/usr/bin/gcc-5
> ARG CXX=/usr/bin/g++-5
> ARG CFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -g -fno-omit-frame-pointer
> -O2 -pthread"
> ARG CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -g -fno-omit-frame-pointer
> -O2 -pthread"
>
> ENV JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/"
>
> RUN wget ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.tar.gz ; \
>     tar zxf cyrus-sasl-2.1.26.tar.gz ; \
>     cd cyrus-sasl-2.1.26 ; \
>     ./configure ; \
>     make ; \
>     make install ;\
>     cp /usr/local/lib/sasl2/* /usr/lib/sasl2/
>
>
> Similar to this RUN I must do outside docker?
>

Re: libsasl2.so.3 (branch HBASE-14850)

Posted by Andrzej <bo...@wp.pl>.
W dniu 22.09.2017 o 18:19, Ted Yu pisze:
> On my docker VM, I found the following:
> 
> /usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
> /usr/lib/x86_64-linux-gnu/libsasl2.so.2
> /usr/local/lib/libsasl2.so.3.0.0
> /usr/local/lib/libsasl2.so.3

In my docker:
root@securecluster:/usr/src/hbase/hbase-native-client# whereis  libsasl2
libsasl2: /usr/local/lib/libsasl2.so /usr/local/lib/libsasl2.la
root@securecluster:/usr/src/hbase/hbase-native-client# ls 
/usr/local/lib/libsasl*
/usr/local/lib/libsasl2.la  /usr/local/lib/libsasl2.so.3
/usr/local/lib/libsasl2.so  /usr/local/lib/libsasl2.so.3.0.0
root@securecluster:/usr/src/hbase/hbase-native-client#


> Take a look at the first RUN command in:
> 
> hbase-native-client/docker-files/Dockerfile

FROM pjameson/buck-folly-watchman:20160511

ARG CC=/usr/bin/gcc-5
ARG CXX=/usr/bin/g++-5
ARG CFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -g -fno-omit-frame-pointer 
-O2 -pthread"
ARG CXXFLAGS="-D_GLIBCXX_USE_CXX11_ABI=0 -fPIC -g 
-fno-omit-frame-pointer -O2 -pthread"

ENV JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64/"

RUN wget ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.tar.gz ; \
     tar zxf cyrus-sasl-2.1.26.tar.gz ; \
     cd cyrus-sasl-2.1.26 ; \
     ./configure ; \
     make ; \
     make install ;\
     cp /usr/local/lib/sasl2/* /usr/lib/sasl2/


Similar to this RUN I must do outside docker?

Re: libsasl2.so.3 (branch HBASE-14850)

Posted by Ted Yu <yu...@gmail.com>.
On my docker VM, I found the following:

/usr/lib/x86_64-linux-gnu/libsasl2.so.2.0.25
/usr/lib/x86_64-linux-gnu/libsasl2.so.2
/usr/local/lib/libsasl2.so.3.0.0
/usr/local/lib/libsasl2.so.3

Which commit were you using for the branch ?
I used:

21c08df9079b8cc9dd1c8c2208a7604fc12fca12

Take a look at the first RUN command in:

hbase-native-client/docker-files/Dockerfile

Cheers

On Fri, Sep 22, 2017 at 9:07 AM, Andrzej <bo...@wp.pl> wrote:

> I have build my own library bases on simple-client.
> When try run is error: libsasl2.so.3 cannot open shared object file no
> such file or directory
> I have libsasl2.so.2 and I don't know how install libsasl2.so.3
>