How to resolve the undefined symbol of magic_setparam in /lib64/libmagic.so.1 ?












1















I have successfully installed the command s3cmd (1.6.1) that I downloaded from the s3tools official web site. So the s3cmd software should be all right, and also the system libmagic.so.l itself is no problem.



Can anyone tell me wherever might be something wrong or missing when executing the s3cmd program?



Error loading some components of s3cmd (Import Error)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Invoked as: /bin/s3cmd
Problem: AttributeError: /lib64/libmagic.so.1: undefined symbol: magic_setparam
S3cmd: 1.6.1
python: 2.7.5 (default, Sep 12 2018, 05:31:16)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
environment LANG=en_US

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/s3cmd-1.6.1-py2.7.egg/EGG-INFO/scripts/s3cmd", line 2900, in <module>
File "build/bdist.linux-x86_64/egg/S3/S3.py", line 39, in <module>
File "build/bdist.linux-x86_64/egg/magic.py", line 293, in <module>
File "/usr/lib64/python2.7/ctypes/__init__.py", line 373, in __getattr__
func = self.__getitem__(name)
File "/usr/lib64/python2.7/ctypes/__init__.py", line 378, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib64/libmagic.so.1: undefined symbol: magic_setparam


Other details



$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 7.4 (Maipo)
Release: 7.4
Codename: Maipo

$ rpm -qf /lib64/libmagic.so.1
file-libs-5.11-35.el7.x86_64

$ nm -D /lib64/libmagic.so.1|grep -Ei "setpar"









share|improve this question

























  • Have you tried running “yum update /lib64/libmagic.so.1” so you are using the up to date package? Most likely the AWS tools were built against a recent version of the OS.

    – jsbillings
    15 hours ago











  • Thanks! But the system libmagic.so.1 has already been the latest version for RHEL 7!

    – lylklb
    1 hour ago
















1















I have successfully installed the command s3cmd (1.6.1) that I downloaded from the s3tools official web site. So the s3cmd software should be all right, and also the system libmagic.so.l itself is no problem.



Can anyone tell me wherever might be something wrong or missing when executing the s3cmd program?



Error loading some components of s3cmd (Import Error)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Invoked as: /bin/s3cmd
Problem: AttributeError: /lib64/libmagic.so.1: undefined symbol: magic_setparam
S3cmd: 1.6.1
python: 2.7.5 (default, Sep 12 2018, 05:31:16)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
environment LANG=en_US

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/s3cmd-1.6.1-py2.7.egg/EGG-INFO/scripts/s3cmd", line 2900, in <module>
File "build/bdist.linux-x86_64/egg/S3/S3.py", line 39, in <module>
File "build/bdist.linux-x86_64/egg/magic.py", line 293, in <module>
File "/usr/lib64/python2.7/ctypes/__init__.py", line 373, in __getattr__
func = self.__getitem__(name)
File "/usr/lib64/python2.7/ctypes/__init__.py", line 378, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib64/libmagic.so.1: undefined symbol: magic_setparam


Other details



$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 7.4 (Maipo)
Release: 7.4
Codename: Maipo

$ rpm -qf /lib64/libmagic.so.1
file-libs-5.11-35.el7.x86_64

$ nm -D /lib64/libmagic.so.1|grep -Ei "setpar"









share|improve this question

























  • Have you tried running “yum update /lib64/libmagic.so.1” so you are using the up to date package? Most likely the AWS tools were built against a recent version of the OS.

    – jsbillings
    15 hours ago











  • Thanks! But the system libmagic.so.1 has already been the latest version for RHEL 7!

    – lylklb
    1 hour ago














1












1








1








I have successfully installed the command s3cmd (1.6.1) that I downloaded from the s3tools official web site. So the s3cmd software should be all right, and also the system libmagic.so.l itself is no problem.



Can anyone tell me wherever might be something wrong or missing when executing the s3cmd program?



Error loading some components of s3cmd (Import Error)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Invoked as: /bin/s3cmd
Problem: AttributeError: /lib64/libmagic.so.1: undefined symbol: magic_setparam
S3cmd: 1.6.1
python: 2.7.5 (default, Sep 12 2018, 05:31:16)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
environment LANG=en_US

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/s3cmd-1.6.1-py2.7.egg/EGG-INFO/scripts/s3cmd", line 2900, in <module>
File "build/bdist.linux-x86_64/egg/S3/S3.py", line 39, in <module>
File "build/bdist.linux-x86_64/egg/magic.py", line 293, in <module>
File "/usr/lib64/python2.7/ctypes/__init__.py", line 373, in __getattr__
func = self.__getitem__(name)
File "/usr/lib64/python2.7/ctypes/__init__.py", line 378, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib64/libmagic.so.1: undefined symbol: magic_setparam


Other details



$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 7.4 (Maipo)
Release: 7.4
Codename: Maipo

$ rpm -qf /lib64/libmagic.so.1
file-libs-5.11-35.el7.x86_64

$ nm -D /lib64/libmagic.so.1|grep -Ei "setpar"









share|improve this question
















I have successfully installed the command s3cmd (1.6.1) that I downloaded from the s3tools official web site. So the s3cmd software should be all right, and also the system libmagic.so.l itself is no problem.



Can anyone tell me wherever might be something wrong or missing when executing the s3cmd program?



Error loading some components of s3cmd (Import Error)
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Invoked as: /bin/s3cmd
Problem: AttributeError: /lib64/libmagic.so.1: undefined symbol: magic_setparam
S3cmd: 1.6.1
python: 2.7.5 (default, Sep 12 2018, 05:31:16)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
environment LANG=en_US

Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/s3cmd-1.6.1-py2.7.egg/EGG-INFO/scripts/s3cmd", line 2900, in <module>
File "build/bdist.linux-x86_64/egg/S3/S3.py", line 39, in <module>
File "build/bdist.linux-x86_64/egg/magic.py", line 293, in <module>
File "/usr/lib64/python2.7/ctypes/__init__.py", line 373, in __getattr__
func = self.__getitem__(name)
File "/usr/lib64/python2.7/ctypes/__init__.py", line 378, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /lib64/libmagic.so.1: undefined symbol: magic_setparam


Other details



$ lsb_release -a
LSB Version: :core-4.1-amd64:core-4.1-noarch
Distributor ID: RedHatEnterpriseServer
Description: Red Hat Enterprise Linux Server release 7.4 (Maipo)
Release: 7.4
Codename: Maipo

$ rpm -qf /lib64/libmagic.so.1
file-libs-5.11-35.el7.x86_64

$ nm -D /lib64/libmagic.so.1|grep -Ei "setpar"






rhel shared-library






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 5 mins ago









slm

250k66527684




250k66527684










asked Feb 3 at 9:50









lylklblylklb

307




307













  • Have you tried running “yum update /lib64/libmagic.so.1” so you are using the up to date package? Most likely the AWS tools were built against a recent version of the OS.

    – jsbillings
    15 hours ago











  • Thanks! But the system libmagic.so.1 has already been the latest version for RHEL 7!

    – lylklb
    1 hour ago



















  • Have you tried running “yum update /lib64/libmagic.so.1” so you are using the up to date package? Most likely the AWS tools were built against a recent version of the OS.

    – jsbillings
    15 hours ago











  • Thanks! But the system libmagic.so.1 has already been the latest version for RHEL 7!

    – lylklb
    1 hour ago

















Have you tried running “yum update /lib64/libmagic.so.1” so you are using the up to date package? Most likely the AWS tools were built against a recent version of the OS.

– jsbillings
15 hours ago





Have you tried running “yum update /lib64/libmagic.so.1” so you are using the up to date package? Most likely the AWS tools were built against a recent version of the OS.

– jsbillings
15 hours ago













Thanks! But the system libmagic.so.1 has already been the latest version for RHEL 7!

– lylklb
1 hour ago





Thanks! But the system libmagic.so.1 has already been the latest version for RHEL 7!

– lylklb
1 hour ago










0






active

oldest

votes











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f498408%2fhow-to-resolve-the-undefined-symbol-of-magic-setparam-in-lib64-libmagic-so-1%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f498408%2fhow-to-resolve-the-undefined-symbol-of-magic-setparam-in-lib64-libmagic-so-1%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Loup dans la culture

How to solve the problem of ntp “Unable to contact time server” from KDE?

Connection limited (no internet access)