Results 1 to 8 of 8

Thread: problem libbit4xpki.so.conf is not an ELF file - it has the wrong magic bytes at the start

  1. #1

    Default problem libbit4xpki.so.conf is not an ELF file - it has the wrong magic bytes at the start

    on my leap 15 with KDE I'm trying to install a middleware to use with firefox and a card reader.
    on the instruction they says:
    Il Middleware Universale per Linux è costituito da 2 file: (the universal middleware is formed of two files)
    libbit4xpki.so
    libbit4xpki.so.conf
    I file vanno copiati sempre insieme in una cartella di sistema, ad esempio: (the files has be copied ALWAYS TOGETHER in a system folder, for example)
    /usr/local/lib
    /usr/lib
    dopo aver copiato i file potrebbe essere necessario aggiornare la cache delle librerie col (after copied the file could be necessary to to update library cache running
    comando: (command
    #> ldconfig
    after copyed the files in /usr/lib64/ the run as root
    Code:
    ldconfig
    the message was this:
    Code:
    Password: 
    -bash: warning: setlocale: LC_CTYPE: cannot change locale (LANG=en_GB.UTF-8): No such file or directory
    pla-3-TW:~ # ldconfig
    ldconfig: /usr/lib64/libbit4xpki.so.conf is not an ELF file - it has the wrong magic bytes at the start.
    what I have to do??
    manythanks, ciao :-) Pier

  2. #2
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,887
    Blog Entries
    15

    Default Re: problem libbit4xpki.so.conf is not an ELF file - it has the wrong magic bytes at the start

    Quote Originally Posted by pier_andreit View Post
    on my leap 15 with KDE I'm trying to install a middleware to use with firefox and a card reader.
    on the instruction they says:
    after copyed the files in /usr/lib64/ the run as root
    Code:
    ldconfig
    the message was this:
    Code:
    Password: 
    -bash: warning: setlocale: LC_CTYPE: cannot change locale (LANG=en_GB.UTF-8): No such file or directory
    pla-3-TW:~ # ldconfig
    ldconfig: /usr/lib64/libbit4xpki.so.conf is not an ELF file - it has the wrong magic bytes at the start.
    what I have to do??
    manythanks, ciao :-) Pier
    Hi
    The *.so file(s) go to your respective lib directory the *.so.conf files go into /etc/ld.so.conf.d/libbit4xpki.so.conf, if you inspect the contents it will just be paths to library files. You can see the default graphiz.conf file. Then run ldconfig...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  3. #3

    Default Re: problem libbit4xpki.so.conf is not an ELF file - it has the wrong magic bytes at the start

    Quote Originally Posted by malcolmlewis View Post
    Hi
    The *.so file(s) go to your respective lib directory the *.so.conf files go into /etc/ld.so.conf.d/libbit4xpki.so.conf, if you inspect the contents it will just be paths to library files. You can see the default graphiz.conf file. Then run ldconfig...
    Manythanks malcolm, I moved libbit4xpki.so.conf here /etc/ld.so.conf.d/libbit4xpki.so.conf.
    but it seems that libbit4xpki.so.conf file is not just path to library files as the graphiz.conf file. ...or I didn't understood?
    the graphiz.conf file content is:
    Code:
    /usr/lib64/graphviz
    /usr/lib64/graphviz/sharp
    /usr/lib64/graphviz/java
    /usr/lib64/graphviz/perl
    /usr/lib64/graphviz/php
    /usr/lib64/graphviz/ocaml
    /usr/lib64/graphviz/python
    /usr/lib64/graphviz/lua
    /usr/lib64/graphviz/tcl
    /usr/lib64/graphviz/guile
    /usr/lib64/graphviz/ruby
    and libbit4xpki.so.conf content is:
    Code:
    dspiniscnspin=true
    DSPinUseGui=false
    HideCacheDsPinCheck=false
    and ldconfig says this:
    Code:
    pla-3-TW:~ # ldconfig
     is not a known library type
     is not a known library type
     is not a known library type
    pla-3-TW:~ #
    Last edited by pier_andreit; 08-Jan-2019 at 09:53. Reason: addd

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,887
    Blog Entries
    15

    Default Re: problem libbit4xpki.so.conf is not an ELF file - it has thewrong magic bytes at the start

    On Tue 08 Jan 2019 04:56:03 PM CST, pier andreit wrote:

    malcolmlewis;2891044 Wrote:
    > Hi
    > The *.so file(s) go to your respective lib directory the *.so.conf
    > files go into /etc/ld.so.conf.d/libbit4xpki.so.conf, if you inspect
    > the contents it will just be paths to library files. You can see the
    > default graphiz.conf file. Then run ldconfig...

    Manythanks malcolm, I moved libbit4xpki.so.conf here
    /etc/ld.so.conf.d/libbit4xpki.so.conf.
    but it seems that libbit4xpki.so.conf file is not just path to library
    files as the graphiz.conf file. ...or I didn't understood?
    the graphiz.conf file content is:

    Code:
    --------------------
    /usr/lib64/graphviz
    /usr/lib64/graphviz/sharp
    /usr/lib64/graphviz/java
    /usr/lib64/graphviz/perl
    /usr/lib64/graphviz/php
    /usr/lib64/graphviz/ocaml
    /usr/lib64/graphviz/python
    /usr/lib64/graphviz/lua
    /usr/lib64/graphviz/tcl
    /usr/lib64/graphviz/guile
    /usr/lib64/graphviz/ruby

    --------------------

    and libbit4xpki.so.conf content is:

    Code:
    --------------------
    dspiniscnspin=true
    DSPinUseGui=false
    HideCacheDsPinCheck=false
    --------------------

    and ldconfig says this:

    Code:
    --------------------
    pla-3-TW:~ # ldconfig
    is not a known library type
    is not a known library type
    is not a known library type
    pla-3-TW:~ #
    --------------------


    Hi
    Seems you weren't the only one.....
    https://aur.archlinux.org/packages/bit4id-ipki/

    So where did this package come from, was it an rpm?

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.25-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  5. #5

    Default Re: problem libbit4xpki.so.conf is not an ELF file - it has thewrong magic bytes at the start

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Seems you weren't the only one.....
    https://aur.archlinux.org/packages/bit4id-ipki/

    So where did this package come from, was it an rpm?
    I followed the instructions in the cd ov my smart card reader and the packages come from a .zip file MU_INCARD_LINUX/linux64 from here
    Code:
    https://www.internavigare.com/omnikey-1021/
    clicking on the download button after "I Driver per le Smart Card Incard possono essere scaricati dai seguenti Link"
    and reading the manual where I red the intructions posted in the first message it seems to be made by
    Code:
    http://bit4id.com/en

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,887
    Blog Entries
    15

    Default Re: problem libbit4xpki.so.conf is not an ELF file - it has thewrong magic bytes at the start

    On Wed 09 Jan 2019 05:56:03 PM CST, pier andreit wrote:


    malcolmlewis;2891155 Wrote:
    > Hi
    > Seems you weren't the only one.....
    > https://aur.archlinux.org/packages/bit4id-ipki/
    >
    > So where did this package come from, was it an rpm?
    >


    I followed the instructions in the cd ov my smart card reader and the
    packages come from a .zip file MU_INCARD_LINUX/linux64 from here

    Code:
    --------------------
    https://www.internavigare.com/omnikey-1021/
    --------------------
    clicking on the download button after "I Driver per le Smart Card
    Incard possono essere scaricati dai seguenti Link"
    and reading the manual where I red the intructions posted in the first
    message it seems to be made by

    Code:
    --------------------
    http://bit4id.com/en
    --------------------


    Hi
    Copy the two files to /usr/lib/bit4id/ by the looks... so wherever the
    files are located now, cd to that directory and then;

    Code:
    mkdir -p /usr/lib/bit4id/
    mv libbit4xpki.so* /usr/lib/bit4id/
    ldconfig
    See how that goes

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.25-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!


  7. #7

    Default Re: problem libbit4xpki.so.conf is not an ELF file - it has thewrong magic bytes at the start

    Quote Originally Posted by malcolmlewis View Post
    Hi
    Copy the two files to /usr/lib/bit4id/ by the looks... so wherever the
    files are located now, cd to that directory and then;

    Code:
    mkdir -p /usr/lib/bit4id/
    mv libbit4xpki.so* /usr/lib/bit4id/
    ldconfig
    See how that goes

    --
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SLES 15 | GNOME Shell 3.26.2 | 4.12.14-25.25-default
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!
    maaaanythanks malcolm it works now!!!! ldconfig gives no errors
    so, as the files was for 64bit I copyed the ones coming from MU_OBERTHUR_LINUX/linux32/ in /usr/lib/bit4id/
    and the ones coming from MU_OBERTHUR_LINUX/linux64/ in /usr/lib64/bit4id/
    and also ldconfig gives no errors :-)
    do you think it is ok to do what I did??
    Last edited by pier_andreit; 12-Jan-2019 at 04:08. Reason: urther operation

  8. #8
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,887
    Blog Entries
    15

    Default Re: problem libbit4xpki.so.conf is not an ELF file - it has thewrong magic bytes at the start

    Quote Originally Posted by pier_andreit View Post
    maaaanythanks malcolm it works now!!!! ldconfig gives no errors
    so, as the files was for 64bit I copyed the ones coming from MU_OBERTHUR_LINUX/linux32/ in /usr/lib/bit4id/
    and the ones coming from MU_OBERTHUR_LINUX/linux64/ in /usr/lib64/bit4id/
    and also ldconfig gives no errors :-)
    do you think it is ok to do what I did??
    Hi
    Yes, that's correct Not sure if you need both though, but won't hurt anything AFAIK.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •