unable to run executable on mounted partition












0















I have an image mounted in the following way in fstab:



/home/fbence/ee_modbox.img /home/fbence/mounted/modbox lowntfs-3g windows_names,ignore_case,umask=007,uid=fbence 0 0


In a specific folder on the mounted image I have the following files with the following permissions:



fbence@localhost:~/mounted/modbox/bg2ee/game$ ls -l
total 38239
-rwxrwx--- 1 fbence root 11774908 dec 19 2017 baldursgateii
drwxrwx--- 1 fbence root 4096 dec 19 2017 characters
-rwxrwx--- 1 fbence root 1154176 dec 19 2017 chitin.key
drwxrwx--- 1 fbence root 57344 dec 19 2017 data
drwxrwx--- 1 fbence root 4096 jan 27 2018 eet
-rwxrwx--- 1 fbence root 29271 dec 19 2017 eet_end.tp2
-rwxrwx--- 1 fbence root 162 dec 19 2017 eet_gui.tp2
drwxrwx--- 1 fbence root 4096 dec 19 2017 eet_tweaks
-rwxrwx--- 1 fbence root 109 dec 19 2017 engine.lua
drwxrwx--- 1 fbence root 0 dec 19 2017 lang
lrwxrwxrwx 1 fbence root 14 nov 3 23:44 libjson.so.0 -> libjson-c.so.2
-rwxrwx--- 1 fbence root 255 jan 27 2018 list.txt
drwxrwx--- 1 fbence root 0 dec 19 2017 manuals
drwxrwx--- 1 fbence root 4096 dec 19 2017 movies
drwxrwx--- 1 fbence root 53248 dec 19 2017 music
drwxrwx--- 1 fbence root 3072000 jan 27 2018 override
drwxrwx--- 1 fbence root 4096 dec 19 2017 scripts
-rwxrwx--- 1 fbence root 17548975 dec 19 2017 setup-eet.debug
-rwxrwx--- 1 fbence root 1028264 dec 19 2017 setup-eet_end
-rwxrwx--- 1 fbence root 1028264 dec 19 2017 setup-eet_gui
-rwxrwx--- 1 fbence root 3361726 jan 27 2018 setup-eet_tweaks.debug
-rwxrwx--- 1 fbence root 3950 dec 19 2017 weidu-bgee.log
-rwxrwx--- 1 fbence root 17 dec 19 2017 weidu.conf
-rwxrwx--- 1 fbence root 1879 jan 27 2018 weidu.log
drwxrwx--- 1 fbence root 0 dec 19 2017 worldmap


When I try to execute the baldursgateii executable I get an error, and I totally can't understand how I can be getting this error:



fbence@localhost:~/mounted/modbox/bg2ee/game$ ./baldursgateii 
bash: ./baldursgateii: No such file or directory


The image and the setup was copied from another computer running the same Ubuntu 18.04 as the current computer. The file is clearly there, I actually use the bash tab autocomplete to type the filename yet it still says there's no such file ... What is wrong here?



EDIT



fbence@localhost:~/mounted/modbox/bg2ee/game$ ldd baldursgateii 
not a dynamic executable









share|improve this question

























  • There might be a protection against running programs from an external drive with a Microsoft file system. You can try to mount it with the exec option according to this link

    – sudodus
    Feb 16 at 14:23













  • It's a binary file unfortunately. I'll try the exec option.

    – fbence
    Feb 16 at 14:25











  • Upon second glance over the files, you are missing a lib file there as well. Also, do you know how it was installed on the other system? Did it require like Wine or PlayOnLinux or Steam? Everything I can see doesn't have a Linux port of the game.

    – Terrance
    Feb 16 at 14:31













  • The exec option didn't help :( This is the gog linux version of the game, and the very same setup was running on a different laptop (the lib was also defunct there), that is why I am completely dumbfounded. I tried and I can run normal bash scripts from here.

    – fbence
    Feb 16 at 14:36






  • 2





    @fbence that is very suggestive that you are in fact trying to run a 32-bit binary on a 64-bit system, without the necessary 32-bit shared library support. Please install the 32-bit libc package (sudo apt install libc6-i386) and then try again. See for example ldd 32-bit exe / 64-bit OS .

    – steeldriver
    Feb 16 at 18:38


















0















I have an image mounted in the following way in fstab:



/home/fbence/ee_modbox.img /home/fbence/mounted/modbox lowntfs-3g windows_names,ignore_case,umask=007,uid=fbence 0 0


In a specific folder on the mounted image I have the following files with the following permissions:



fbence@localhost:~/mounted/modbox/bg2ee/game$ ls -l
total 38239
-rwxrwx--- 1 fbence root 11774908 dec 19 2017 baldursgateii
drwxrwx--- 1 fbence root 4096 dec 19 2017 characters
-rwxrwx--- 1 fbence root 1154176 dec 19 2017 chitin.key
drwxrwx--- 1 fbence root 57344 dec 19 2017 data
drwxrwx--- 1 fbence root 4096 jan 27 2018 eet
-rwxrwx--- 1 fbence root 29271 dec 19 2017 eet_end.tp2
-rwxrwx--- 1 fbence root 162 dec 19 2017 eet_gui.tp2
drwxrwx--- 1 fbence root 4096 dec 19 2017 eet_tweaks
-rwxrwx--- 1 fbence root 109 dec 19 2017 engine.lua
drwxrwx--- 1 fbence root 0 dec 19 2017 lang
lrwxrwxrwx 1 fbence root 14 nov 3 23:44 libjson.so.0 -> libjson-c.so.2
-rwxrwx--- 1 fbence root 255 jan 27 2018 list.txt
drwxrwx--- 1 fbence root 0 dec 19 2017 manuals
drwxrwx--- 1 fbence root 4096 dec 19 2017 movies
drwxrwx--- 1 fbence root 53248 dec 19 2017 music
drwxrwx--- 1 fbence root 3072000 jan 27 2018 override
drwxrwx--- 1 fbence root 4096 dec 19 2017 scripts
-rwxrwx--- 1 fbence root 17548975 dec 19 2017 setup-eet.debug
-rwxrwx--- 1 fbence root 1028264 dec 19 2017 setup-eet_end
-rwxrwx--- 1 fbence root 1028264 dec 19 2017 setup-eet_gui
-rwxrwx--- 1 fbence root 3361726 jan 27 2018 setup-eet_tweaks.debug
-rwxrwx--- 1 fbence root 3950 dec 19 2017 weidu-bgee.log
-rwxrwx--- 1 fbence root 17 dec 19 2017 weidu.conf
-rwxrwx--- 1 fbence root 1879 jan 27 2018 weidu.log
drwxrwx--- 1 fbence root 0 dec 19 2017 worldmap


When I try to execute the baldursgateii executable I get an error, and I totally can't understand how I can be getting this error:



fbence@localhost:~/mounted/modbox/bg2ee/game$ ./baldursgateii 
bash: ./baldursgateii: No such file or directory


The image and the setup was copied from another computer running the same Ubuntu 18.04 as the current computer. The file is clearly there, I actually use the bash tab autocomplete to type the filename yet it still says there's no such file ... What is wrong here?



EDIT



fbence@localhost:~/mounted/modbox/bg2ee/game$ ldd baldursgateii 
not a dynamic executable









share|improve this question

























  • There might be a protection against running programs from an external drive with a Microsoft file system. You can try to mount it with the exec option according to this link

    – sudodus
    Feb 16 at 14:23













  • It's a binary file unfortunately. I'll try the exec option.

    – fbence
    Feb 16 at 14:25











  • Upon second glance over the files, you are missing a lib file there as well. Also, do you know how it was installed on the other system? Did it require like Wine or PlayOnLinux or Steam? Everything I can see doesn't have a Linux port of the game.

    – Terrance
    Feb 16 at 14:31













  • The exec option didn't help :( This is the gog linux version of the game, and the very same setup was running on a different laptop (the lib was also defunct there), that is why I am completely dumbfounded. I tried and I can run normal bash scripts from here.

    – fbence
    Feb 16 at 14:36






  • 2





    @fbence that is very suggestive that you are in fact trying to run a 32-bit binary on a 64-bit system, without the necessary 32-bit shared library support. Please install the 32-bit libc package (sudo apt install libc6-i386) and then try again. See for example ldd 32-bit exe / 64-bit OS .

    – steeldriver
    Feb 16 at 18:38
















0












0








0








I have an image mounted in the following way in fstab:



/home/fbence/ee_modbox.img /home/fbence/mounted/modbox lowntfs-3g windows_names,ignore_case,umask=007,uid=fbence 0 0


In a specific folder on the mounted image I have the following files with the following permissions:



fbence@localhost:~/mounted/modbox/bg2ee/game$ ls -l
total 38239
-rwxrwx--- 1 fbence root 11774908 dec 19 2017 baldursgateii
drwxrwx--- 1 fbence root 4096 dec 19 2017 characters
-rwxrwx--- 1 fbence root 1154176 dec 19 2017 chitin.key
drwxrwx--- 1 fbence root 57344 dec 19 2017 data
drwxrwx--- 1 fbence root 4096 jan 27 2018 eet
-rwxrwx--- 1 fbence root 29271 dec 19 2017 eet_end.tp2
-rwxrwx--- 1 fbence root 162 dec 19 2017 eet_gui.tp2
drwxrwx--- 1 fbence root 4096 dec 19 2017 eet_tweaks
-rwxrwx--- 1 fbence root 109 dec 19 2017 engine.lua
drwxrwx--- 1 fbence root 0 dec 19 2017 lang
lrwxrwxrwx 1 fbence root 14 nov 3 23:44 libjson.so.0 -> libjson-c.so.2
-rwxrwx--- 1 fbence root 255 jan 27 2018 list.txt
drwxrwx--- 1 fbence root 0 dec 19 2017 manuals
drwxrwx--- 1 fbence root 4096 dec 19 2017 movies
drwxrwx--- 1 fbence root 53248 dec 19 2017 music
drwxrwx--- 1 fbence root 3072000 jan 27 2018 override
drwxrwx--- 1 fbence root 4096 dec 19 2017 scripts
-rwxrwx--- 1 fbence root 17548975 dec 19 2017 setup-eet.debug
-rwxrwx--- 1 fbence root 1028264 dec 19 2017 setup-eet_end
-rwxrwx--- 1 fbence root 1028264 dec 19 2017 setup-eet_gui
-rwxrwx--- 1 fbence root 3361726 jan 27 2018 setup-eet_tweaks.debug
-rwxrwx--- 1 fbence root 3950 dec 19 2017 weidu-bgee.log
-rwxrwx--- 1 fbence root 17 dec 19 2017 weidu.conf
-rwxrwx--- 1 fbence root 1879 jan 27 2018 weidu.log
drwxrwx--- 1 fbence root 0 dec 19 2017 worldmap


When I try to execute the baldursgateii executable I get an error, and I totally can't understand how I can be getting this error:



fbence@localhost:~/mounted/modbox/bg2ee/game$ ./baldursgateii 
bash: ./baldursgateii: No such file or directory


The image and the setup was copied from another computer running the same Ubuntu 18.04 as the current computer. The file is clearly there, I actually use the bash tab autocomplete to type the filename yet it still says there's no such file ... What is wrong here?



EDIT



fbence@localhost:~/mounted/modbox/bg2ee/game$ ldd baldursgateii 
not a dynamic executable









share|improve this question
















I have an image mounted in the following way in fstab:



/home/fbence/ee_modbox.img /home/fbence/mounted/modbox lowntfs-3g windows_names,ignore_case,umask=007,uid=fbence 0 0


In a specific folder on the mounted image I have the following files with the following permissions:



fbence@localhost:~/mounted/modbox/bg2ee/game$ ls -l
total 38239
-rwxrwx--- 1 fbence root 11774908 dec 19 2017 baldursgateii
drwxrwx--- 1 fbence root 4096 dec 19 2017 characters
-rwxrwx--- 1 fbence root 1154176 dec 19 2017 chitin.key
drwxrwx--- 1 fbence root 57344 dec 19 2017 data
drwxrwx--- 1 fbence root 4096 jan 27 2018 eet
-rwxrwx--- 1 fbence root 29271 dec 19 2017 eet_end.tp2
-rwxrwx--- 1 fbence root 162 dec 19 2017 eet_gui.tp2
drwxrwx--- 1 fbence root 4096 dec 19 2017 eet_tweaks
-rwxrwx--- 1 fbence root 109 dec 19 2017 engine.lua
drwxrwx--- 1 fbence root 0 dec 19 2017 lang
lrwxrwxrwx 1 fbence root 14 nov 3 23:44 libjson.so.0 -> libjson-c.so.2
-rwxrwx--- 1 fbence root 255 jan 27 2018 list.txt
drwxrwx--- 1 fbence root 0 dec 19 2017 manuals
drwxrwx--- 1 fbence root 4096 dec 19 2017 movies
drwxrwx--- 1 fbence root 53248 dec 19 2017 music
drwxrwx--- 1 fbence root 3072000 jan 27 2018 override
drwxrwx--- 1 fbence root 4096 dec 19 2017 scripts
-rwxrwx--- 1 fbence root 17548975 dec 19 2017 setup-eet.debug
-rwxrwx--- 1 fbence root 1028264 dec 19 2017 setup-eet_end
-rwxrwx--- 1 fbence root 1028264 dec 19 2017 setup-eet_gui
-rwxrwx--- 1 fbence root 3361726 jan 27 2018 setup-eet_tweaks.debug
-rwxrwx--- 1 fbence root 3950 dec 19 2017 weidu-bgee.log
-rwxrwx--- 1 fbence root 17 dec 19 2017 weidu.conf
-rwxrwx--- 1 fbence root 1879 jan 27 2018 weidu.log
drwxrwx--- 1 fbence root 0 dec 19 2017 worldmap


When I try to execute the baldursgateii executable I get an error, and I totally can't understand how I can be getting this error:



fbence@localhost:~/mounted/modbox/bg2ee/game$ ./baldursgateii 
bash: ./baldursgateii: No such file or directory


The image and the setup was copied from another computer running the same Ubuntu 18.04 as the current computer. The file is clearly there, I actually use the bash tab autocomplete to type the filename yet it still says there's no such file ... What is wrong here?



EDIT



fbence@localhost:~/mounted/modbox/bg2ee/game$ ldd baldursgateii 
not a dynamic executable






ntfs-3g






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 16 at 18:17







fbence

















asked Feb 16 at 14:06









fbencefbence

97113




97113













  • There might be a protection against running programs from an external drive with a Microsoft file system. You can try to mount it with the exec option according to this link

    – sudodus
    Feb 16 at 14:23













  • It's a binary file unfortunately. I'll try the exec option.

    – fbence
    Feb 16 at 14:25











  • Upon second glance over the files, you are missing a lib file there as well. Also, do you know how it was installed on the other system? Did it require like Wine or PlayOnLinux or Steam? Everything I can see doesn't have a Linux port of the game.

    – Terrance
    Feb 16 at 14:31













  • The exec option didn't help :( This is the gog linux version of the game, and the very same setup was running on a different laptop (the lib was also defunct there), that is why I am completely dumbfounded. I tried and I can run normal bash scripts from here.

    – fbence
    Feb 16 at 14:36






  • 2





    @fbence that is very suggestive that you are in fact trying to run a 32-bit binary on a 64-bit system, without the necessary 32-bit shared library support. Please install the 32-bit libc package (sudo apt install libc6-i386) and then try again. See for example ldd 32-bit exe / 64-bit OS .

    – steeldriver
    Feb 16 at 18:38





















  • There might be a protection against running programs from an external drive with a Microsoft file system. You can try to mount it with the exec option according to this link

    – sudodus
    Feb 16 at 14:23













  • It's a binary file unfortunately. I'll try the exec option.

    – fbence
    Feb 16 at 14:25











  • Upon second glance over the files, you are missing a lib file there as well. Also, do you know how it was installed on the other system? Did it require like Wine or PlayOnLinux or Steam? Everything I can see doesn't have a Linux port of the game.

    – Terrance
    Feb 16 at 14:31













  • The exec option didn't help :( This is the gog linux version of the game, and the very same setup was running on a different laptop (the lib was also defunct there), that is why I am completely dumbfounded. I tried and I can run normal bash scripts from here.

    – fbence
    Feb 16 at 14:36






  • 2





    @fbence that is very suggestive that you are in fact trying to run a 32-bit binary on a 64-bit system, without the necessary 32-bit shared library support. Please install the 32-bit libc package (sudo apt install libc6-i386) and then try again. See for example ldd 32-bit exe / 64-bit OS .

    – steeldriver
    Feb 16 at 18:38



















There might be a protection against running programs from an external drive with a Microsoft file system. You can try to mount it with the exec option according to this link

– sudodus
Feb 16 at 14:23







There might be a protection against running programs from an external drive with a Microsoft file system. You can try to mount it with the exec option according to this link

– sudodus
Feb 16 at 14:23















It's a binary file unfortunately. I'll try the exec option.

– fbence
Feb 16 at 14:25





It's a binary file unfortunately. I'll try the exec option.

– fbence
Feb 16 at 14:25













Upon second glance over the files, you are missing a lib file there as well. Also, do you know how it was installed on the other system? Did it require like Wine or PlayOnLinux or Steam? Everything I can see doesn't have a Linux port of the game.

– Terrance
Feb 16 at 14:31







Upon second glance over the files, you are missing a lib file there as well. Also, do you know how it was installed on the other system? Did it require like Wine or PlayOnLinux or Steam? Everything I can see doesn't have a Linux port of the game.

– Terrance
Feb 16 at 14:31















The exec option didn't help :( This is the gog linux version of the game, and the very same setup was running on a different laptop (the lib was also defunct there), that is why I am completely dumbfounded. I tried and I can run normal bash scripts from here.

– fbence
Feb 16 at 14:36





The exec option didn't help :( This is the gog linux version of the game, and the very same setup was running on a different laptop (the lib was also defunct there), that is why I am completely dumbfounded. I tried and I can run normal bash scripts from here.

– fbence
Feb 16 at 14:36




2




2





@fbence that is very suggestive that you are in fact trying to run a 32-bit binary on a 64-bit system, without the necessary 32-bit shared library support. Please install the 32-bit libc package (sudo apt install libc6-i386) and then try again. See for example ldd 32-bit exe / 64-bit OS .

– steeldriver
Feb 16 at 18:38







@fbence that is very suggestive that you are in fact trying to run a 32-bit binary on a 64-bit system, without the necessary 32-bit shared library support. Please install the 32-bit libc package (sudo apt install libc6-i386) and then try again. See for example ldd 32-bit exe / 64-bit OS .

– steeldriver
Feb 16 at 18:38












1 Answer
1






active

oldest

votes


















2














When a file that you know to be a binary executable fails to run, with a No such file or directory message, it's often because of issues with shared libraries.



In some cases, it's because one or more shared libraries is missing. Running



ldd ./baldursgateii


(for example) should help identify which one(s). On the other hand, if ldd itself fails with the unhelpful (and incorrect) message



not a dynamic executable


then that's likely a sign that you are trying to run a 32-bit executable on a system that lacks even the 32-bit dynamic loader, as discussed in ldd 32-bit exe / 64-bit OS



To obtain the missing 32-bit loader in a current multiarch 64-bit system, you should install the libc6-i386 package:



sudo apt install libc6-i386 


From apt show libc6-i386:




Description: GNU C Library: 32-bit shared libraries for AMD64 This
package includes shared versions of the standard C library and the
standard math library, as well as many others. This is the 32bit
version of the library, meant for AMD64 systems.




As well as the 32-bit loader, this installs a minimal set of 32-bit libraries: if the program still does not execute, run ldd ./baldursgateii again to check for other specific unmet library dependencies.






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    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: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    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%2faskubuntu.com%2fquestions%2f1118758%2funable-to-run-executable-on-mounted-partition%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    When a file that you know to be a binary executable fails to run, with a No such file or directory message, it's often because of issues with shared libraries.



    In some cases, it's because one or more shared libraries is missing. Running



    ldd ./baldursgateii


    (for example) should help identify which one(s). On the other hand, if ldd itself fails with the unhelpful (and incorrect) message



    not a dynamic executable


    then that's likely a sign that you are trying to run a 32-bit executable on a system that lacks even the 32-bit dynamic loader, as discussed in ldd 32-bit exe / 64-bit OS



    To obtain the missing 32-bit loader in a current multiarch 64-bit system, you should install the libc6-i386 package:



    sudo apt install libc6-i386 


    From apt show libc6-i386:




    Description: GNU C Library: 32-bit shared libraries for AMD64 This
    package includes shared versions of the standard C library and the
    standard math library, as well as many others. This is the 32bit
    version of the library, meant for AMD64 systems.




    As well as the 32-bit loader, this installs a minimal set of 32-bit libraries: if the program still does not execute, run ldd ./baldursgateii again to check for other specific unmet library dependencies.






    share|improve this answer




























      2














      When a file that you know to be a binary executable fails to run, with a No such file or directory message, it's often because of issues with shared libraries.



      In some cases, it's because one or more shared libraries is missing. Running



      ldd ./baldursgateii


      (for example) should help identify which one(s). On the other hand, if ldd itself fails with the unhelpful (and incorrect) message



      not a dynamic executable


      then that's likely a sign that you are trying to run a 32-bit executable on a system that lacks even the 32-bit dynamic loader, as discussed in ldd 32-bit exe / 64-bit OS



      To obtain the missing 32-bit loader in a current multiarch 64-bit system, you should install the libc6-i386 package:



      sudo apt install libc6-i386 


      From apt show libc6-i386:




      Description: GNU C Library: 32-bit shared libraries for AMD64 This
      package includes shared versions of the standard C library and the
      standard math library, as well as many others. This is the 32bit
      version of the library, meant for AMD64 systems.




      As well as the 32-bit loader, this installs a minimal set of 32-bit libraries: if the program still does not execute, run ldd ./baldursgateii again to check for other specific unmet library dependencies.






      share|improve this answer


























        2












        2








        2







        When a file that you know to be a binary executable fails to run, with a No such file or directory message, it's often because of issues with shared libraries.



        In some cases, it's because one or more shared libraries is missing. Running



        ldd ./baldursgateii


        (for example) should help identify which one(s). On the other hand, if ldd itself fails with the unhelpful (and incorrect) message



        not a dynamic executable


        then that's likely a sign that you are trying to run a 32-bit executable on a system that lacks even the 32-bit dynamic loader, as discussed in ldd 32-bit exe / 64-bit OS



        To obtain the missing 32-bit loader in a current multiarch 64-bit system, you should install the libc6-i386 package:



        sudo apt install libc6-i386 


        From apt show libc6-i386:




        Description: GNU C Library: 32-bit shared libraries for AMD64 This
        package includes shared versions of the standard C library and the
        standard math library, as well as many others. This is the 32bit
        version of the library, meant for AMD64 systems.




        As well as the 32-bit loader, this installs a minimal set of 32-bit libraries: if the program still does not execute, run ldd ./baldursgateii again to check for other specific unmet library dependencies.






        share|improve this answer













        When a file that you know to be a binary executable fails to run, with a No such file or directory message, it's often because of issues with shared libraries.



        In some cases, it's because one or more shared libraries is missing. Running



        ldd ./baldursgateii


        (for example) should help identify which one(s). On the other hand, if ldd itself fails with the unhelpful (and incorrect) message



        not a dynamic executable


        then that's likely a sign that you are trying to run a 32-bit executable on a system that lacks even the 32-bit dynamic loader, as discussed in ldd 32-bit exe / 64-bit OS



        To obtain the missing 32-bit loader in a current multiarch 64-bit system, you should install the libc6-i386 package:



        sudo apt install libc6-i386 


        From apt show libc6-i386:




        Description: GNU C Library: 32-bit shared libraries for AMD64 This
        package includes shared versions of the standard C library and the
        standard math library, as well as many others. This is the 32bit
        version of the library, meant for AMD64 systems.




        As well as the 32-bit loader, this installs a minimal set of 32-bit libraries: if the program still does not execute, run ldd ./baldursgateii again to check for other specific unmet library dependencies.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 17 at 1:29









        steeldriversteeldriver

        70k11114186




        70k11114186






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • 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%2faskubuntu.com%2fquestions%2f1118758%2funable-to-run-executable-on-mounted-partition%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

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?