unable to find an interpreter when running a Windows executable

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












5















I uninstalled my wine, and installed a higher version of wine by compiling source.



However when I run an exe executable (whose path is in $PATH), it doesn't work as it used to:



$ PDFXCview.exe 

run-detectors: unable to find an interpreter for /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


I am not sure why I was able to run this executable directly before I uninstalled my old wine and installed the new one. How can I make $ PDFXCview.exe work now?



Note:



$ wine /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


will work.



$ wine PDFXCview.exe 

wine: cannot find L"C:\windows\system32\PDFXCview.exe"


doesn't work. Note that the path of PDFXCview.exe is still in $PATH



Thanks.










share|improve this question




























    5















    I uninstalled my wine, and installed a higher version of wine by compiling source.



    However when I run an exe executable (whose path is in $PATH), it doesn't work as it used to:



    $ PDFXCview.exe 

    run-detectors: unable to find an interpreter for /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


    I am not sure why I was able to run this executable directly before I uninstalled my old wine and installed the new one. How can I make $ PDFXCview.exe work now?



    Note:



    $ wine /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


    will work.



    $ wine PDFXCview.exe 

    wine: cannot find L"C:\windows\system32\PDFXCview.exe"


    doesn't work. Note that the path of PDFXCview.exe is still in $PATH



    Thanks.










    share|improve this question


























      5












      5








      5


      1






      I uninstalled my wine, and installed a higher version of wine by compiling source.



      However when I run an exe executable (whose path is in $PATH), it doesn't work as it used to:



      $ PDFXCview.exe 

      run-detectors: unable to find an interpreter for /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


      I am not sure why I was able to run this executable directly before I uninstalled my old wine and installed the new one. How can I make $ PDFXCview.exe work now?



      Note:



      $ wine /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


      will work.



      $ wine PDFXCview.exe 

      wine: cannot find L"C:\windows\system32\PDFXCview.exe"


      doesn't work. Note that the path of PDFXCview.exe is still in $PATH



      Thanks.










      share|improve this question
















      I uninstalled my wine, and installed a higher version of wine by compiling source.



      However when I run an exe executable (whose path is in $PATH), it doesn't work as it used to:



      $ PDFXCview.exe 

      run-detectors: unable to find an interpreter for /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


      I am not sure why I was able to run this executable directly before I uninstalled my old wine and installed the new one. How can I make $ PDFXCview.exe work now?



      Note:



      $ wine /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


      will work.



      $ wine PDFXCview.exe 

      wine: cannot find L"C:\windows\system32\PDFXCview.exe"


      doesn't work. Note that the path of PDFXCview.exe is still in $PATH



      Thanks.







      wine






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 4 '14 at 1:16







      Tim

















      asked Oct 4 '14 at 0:51









      TimTim

      27.2k78263472




      27.2k78263472




















          3 Answers
          3






          active

          oldest

          votes


















          6














          Linux has a mechanism that allows plug-ins to be registered so that the kernel calls an interpreter program when instructed to execute a file: binfmt_misc. See How does chroot's use of qemu for cross compile environments work? for a more detailed overview.



          Your Wine package registered /usr/bin/wine as an interpreter for Windows executables as part of its installation script or via a startup script contained in the package. You can do the same for your home-built wine. Some distributions have a mechanism where packages can register interpreters which will then be registered into the kernel at boot time, for example update-binfmts on Debian and derivatives. Alternatively, an interpreter can be registered into the kernel during startup by writing to /proc/sys/fs/binfmt_misc/register. I recommend that you look at the package you used to have and adapt the method that was working before.






          share|improve this answer

























          • Thanks. Later I found that I had some remaining files from my old wine, so I apt-get purge the old wine, but that also installed something for the new wine. After that, I can run a Windows executable directly. Not sure why.

            – Tim
            Oct 4 '14 at 20:35











          • This has nothing to do with binfmt_misc, it has been correctly triggered with run-detectors. It's just run-detectors has some bug or simply by-design can't detected installed wine program because of those old files. @Tim

            – 炸鱼薯条德里克
            Feb 3 at 3:45



















          5














          > I uninstalled my wine, and installed a higher version of wine by
          > compiling source. However when I run an exe executable (whose path is
          > in $PATH), it doesn't work as it used to.


          As you have obviously seen the following works correctly



          $ wine file.exe




          but the following does not



          for a file in the current directory `
          $ ./file.exe

          for a file that is included your path
          $ file.exe



          My version of wine is v1.8.3 from debian/jessie-backports and

          should be valid back to, at least, v1.6.2 (which is the default in debian/jessie).



          You must do the following:



          $ sudo apt-get install wine-binfmt
          $ sudo update-binfmts --import /usr/share/binfmts/wine



          Now you should be able to execute the binary file as shown above,

          without having to call it using wine.






          share|improve this answer
































            -1














            Okay, listen carefully. This is what you do.



            Place this in /usr/bin/pdfxcview.exe



            #!/bin/bash
            # Call up a command;
            wine /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


            Then, invoke from Terminal:



            $ chmod +x /usr/bin/pdfxcview.exe


            ^ Sets executable bit to on.



            $ pdfxcview.exe


            Source Code Differential



            Isn't Freedom of Software Great? It seems there is commentary about path. If you print your environment by typing "env" you may see your Program Files directory.



            Launchpad Librarian is where Ubuntu Developers keep documentation about their work keeping your system up to date and secure.






            share|improve this answer




















            • 1





              thanks. I understand your method. But when i still had my old wine, I didn't do what you suggested. I did chmod a+x /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe, and added /home/tim/program_files/document/pdfxchange_portable/ to $PATH in ~/.bashrc. Then $ pdfxcview.exe worked.

              – Tim
              Oct 4 '14 at 1:20












            • It's a better practice, my friend, to place "wrapper" scripts to your executable files in your /usr/bin/ directory. It keeps things more organized. It's really a matter of personal preference. Within /usr/bin/, these "wrappers" are accessible from any user. However, ~/.bashrc will only be accessible from your own user's environment exports. The "env" command lists environment variables.

              – Tyler Maginnis
              Oct 4 '14 at 1:21












            • yes, I think it is a universal method. thanks. Not sure why it worked before without your method.

              – Tim
              Oct 4 '14 at 1:27












            • What version of WINE did you use before..? Perhaps I can investigate the Source code to discover if it dynamically generated a $PATH to your WINE environment. I know that WINE actually creates a File System to not-emulate Windows Executable.

              – Tyler Maginnis
              Oct 4 '14 at 1:29












            • My old is wine1.6 1:1.6.1-0ubuntu1~ppa1~precise1. My new is wine1.6.2 compiled from source.

              – Tim
              Oct 4 '14 at 1:30











            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%2f159193%2funable-to-find-an-interpreter-when-running-a-windows-executable%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            6














            Linux has a mechanism that allows plug-ins to be registered so that the kernel calls an interpreter program when instructed to execute a file: binfmt_misc. See How does chroot's use of qemu for cross compile environments work? for a more detailed overview.



            Your Wine package registered /usr/bin/wine as an interpreter for Windows executables as part of its installation script or via a startup script contained in the package. You can do the same for your home-built wine. Some distributions have a mechanism where packages can register interpreters which will then be registered into the kernel at boot time, for example update-binfmts on Debian and derivatives. Alternatively, an interpreter can be registered into the kernel during startup by writing to /proc/sys/fs/binfmt_misc/register. I recommend that you look at the package you used to have and adapt the method that was working before.






            share|improve this answer

























            • Thanks. Later I found that I had some remaining files from my old wine, so I apt-get purge the old wine, but that also installed something for the new wine. After that, I can run a Windows executable directly. Not sure why.

              – Tim
              Oct 4 '14 at 20:35











            • This has nothing to do with binfmt_misc, it has been correctly triggered with run-detectors. It's just run-detectors has some bug or simply by-design can't detected installed wine program because of those old files. @Tim

              – 炸鱼薯条德里克
              Feb 3 at 3:45
















            6














            Linux has a mechanism that allows plug-ins to be registered so that the kernel calls an interpreter program when instructed to execute a file: binfmt_misc. See How does chroot's use of qemu for cross compile environments work? for a more detailed overview.



            Your Wine package registered /usr/bin/wine as an interpreter for Windows executables as part of its installation script or via a startup script contained in the package. You can do the same for your home-built wine. Some distributions have a mechanism where packages can register interpreters which will then be registered into the kernel at boot time, for example update-binfmts on Debian and derivatives. Alternatively, an interpreter can be registered into the kernel during startup by writing to /proc/sys/fs/binfmt_misc/register. I recommend that you look at the package you used to have and adapt the method that was working before.






            share|improve this answer

























            • Thanks. Later I found that I had some remaining files from my old wine, so I apt-get purge the old wine, but that also installed something for the new wine. After that, I can run a Windows executable directly. Not sure why.

              – Tim
              Oct 4 '14 at 20:35











            • This has nothing to do with binfmt_misc, it has been correctly triggered with run-detectors. It's just run-detectors has some bug or simply by-design can't detected installed wine program because of those old files. @Tim

              – 炸鱼薯条德里克
              Feb 3 at 3:45














            6












            6








            6







            Linux has a mechanism that allows plug-ins to be registered so that the kernel calls an interpreter program when instructed to execute a file: binfmt_misc. See How does chroot's use of qemu for cross compile environments work? for a more detailed overview.



            Your Wine package registered /usr/bin/wine as an interpreter for Windows executables as part of its installation script or via a startup script contained in the package. You can do the same for your home-built wine. Some distributions have a mechanism where packages can register interpreters which will then be registered into the kernel at boot time, for example update-binfmts on Debian and derivatives. Alternatively, an interpreter can be registered into the kernel during startup by writing to /proc/sys/fs/binfmt_misc/register. I recommend that you look at the package you used to have and adapt the method that was working before.






            share|improve this answer















            Linux has a mechanism that allows plug-ins to be registered so that the kernel calls an interpreter program when instructed to execute a file: binfmt_misc. See How does chroot's use of qemu for cross compile environments work? for a more detailed overview.



            Your Wine package registered /usr/bin/wine as an interpreter for Windows executables as part of its installation script or via a startup script contained in the package. You can do the same for your home-built wine. Some distributions have a mechanism where packages can register interpreters which will then be registered into the kernel at boot time, for example update-binfmts on Debian and derivatives. Alternatively, an interpreter can be registered into the kernel during startup by writing to /proc/sys/fs/binfmt_misc/register. I recommend that you look at the package you used to have and adapt the method that was working before.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 13 '17 at 12:36









            Community

            1




            1










            answered Oct 4 '14 at 13:46









            GillesGilles

            538k12810891606




            538k12810891606












            • Thanks. Later I found that I had some remaining files from my old wine, so I apt-get purge the old wine, but that also installed something for the new wine. After that, I can run a Windows executable directly. Not sure why.

              – Tim
              Oct 4 '14 at 20:35











            • This has nothing to do with binfmt_misc, it has been correctly triggered with run-detectors. It's just run-detectors has some bug or simply by-design can't detected installed wine program because of those old files. @Tim

              – 炸鱼薯条德里克
              Feb 3 at 3:45


















            • Thanks. Later I found that I had some remaining files from my old wine, so I apt-get purge the old wine, but that also installed something for the new wine. After that, I can run a Windows executable directly. Not sure why.

              – Tim
              Oct 4 '14 at 20:35











            • This has nothing to do with binfmt_misc, it has been correctly triggered with run-detectors. It's just run-detectors has some bug or simply by-design can't detected installed wine program because of those old files. @Tim

              – 炸鱼薯条德里克
              Feb 3 at 3:45

















            Thanks. Later I found that I had some remaining files from my old wine, so I apt-get purge the old wine, but that also installed something for the new wine. After that, I can run a Windows executable directly. Not sure why.

            – Tim
            Oct 4 '14 at 20:35





            Thanks. Later I found that I had some remaining files from my old wine, so I apt-get purge the old wine, but that also installed something for the new wine. After that, I can run a Windows executable directly. Not sure why.

            – Tim
            Oct 4 '14 at 20:35













            This has nothing to do with binfmt_misc, it has been correctly triggered with run-detectors. It's just run-detectors has some bug or simply by-design can't detected installed wine program because of those old files. @Tim

            – 炸鱼薯条德里克
            Feb 3 at 3:45






            This has nothing to do with binfmt_misc, it has been correctly triggered with run-detectors. It's just run-detectors has some bug or simply by-design can't detected installed wine program because of those old files. @Tim

            – 炸鱼薯条德里克
            Feb 3 at 3:45














            5














            > I uninstalled my wine, and installed a higher version of wine by
            > compiling source. However when I run an exe executable (whose path is
            > in $PATH), it doesn't work as it used to.


            As you have obviously seen the following works correctly



            $ wine file.exe




            but the following does not



            for a file in the current directory `
            $ ./file.exe

            for a file that is included your path
            $ file.exe



            My version of wine is v1.8.3 from debian/jessie-backports and

            should be valid back to, at least, v1.6.2 (which is the default in debian/jessie).



            You must do the following:



            $ sudo apt-get install wine-binfmt
            $ sudo update-binfmts --import /usr/share/binfmts/wine



            Now you should be able to execute the binary file as shown above,

            without having to call it using wine.






            share|improve this answer





























              5














              > I uninstalled my wine, and installed a higher version of wine by
              > compiling source. However when I run an exe executable (whose path is
              > in $PATH), it doesn't work as it used to.


              As you have obviously seen the following works correctly



              $ wine file.exe




              but the following does not



              for a file in the current directory `
              $ ./file.exe

              for a file that is included your path
              $ file.exe



              My version of wine is v1.8.3 from debian/jessie-backports and

              should be valid back to, at least, v1.6.2 (which is the default in debian/jessie).



              You must do the following:



              $ sudo apt-get install wine-binfmt
              $ sudo update-binfmts --import /usr/share/binfmts/wine



              Now you should be able to execute the binary file as shown above,

              without having to call it using wine.






              share|improve this answer



























                5












                5








                5







                > I uninstalled my wine, and installed a higher version of wine by
                > compiling source. However when I run an exe executable (whose path is
                > in $PATH), it doesn't work as it used to.


                As you have obviously seen the following works correctly



                $ wine file.exe




                but the following does not



                for a file in the current directory `
                $ ./file.exe

                for a file that is included your path
                $ file.exe



                My version of wine is v1.8.3 from debian/jessie-backports and

                should be valid back to, at least, v1.6.2 (which is the default in debian/jessie).



                You must do the following:



                $ sudo apt-get install wine-binfmt
                $ sudo update-binfmts --import /usr/share/binfmts/wine



                Now you should be able to execute the binary file as shown above,

                without having to call it using wine.






                share|improve this answer















                > I uninstalled my wine, and installed a higher version of wine by
                > compiling source. However when I run an exe executable (whose path is
                > in $PATH), it doesn't work as it used to.


                As you have obviously seen the following works correctly



                $ wine file.exe




                but the following does not



                for a file in the current directory `
                $ ./file.exe

                for a file that is included your path
                $ file.exe



                My version of wine is v1.8.3 from debian/jessie-backports and

                should be valid back to, at least, v1.6.2 (which is the default in debian/jessie).



                You must do the following:



                $ sudo apt-get install wine-binfmt
                $ sudo update-binfmts --import /usr/share/binfmts/wine



                Now you should be able to execute the binary file as shown above,

                without having to call it using wine.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Aug 18 '16 at 6:52

























                answered Aug 18 '16 at 6:43









                NeoH4x0rNeoH4x0r

                6112




                6112





















                    -1














                    Okay, listen carefully. This is what you do.



                    Place this in /usr/bin/pdfxcview.exe



                    #!/bin/bash
                    # Call up a command;
                    wine /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


                    Then, invoke from Terminal:



                    $ chmod +x /usr/bin/pdfxcview.exe


                    ^ Sets executable bit to on.



                    $ pdfxcview.exe


                    Source Code Differential



                    Isn't Freedom of Software Great? It seems there is commentary about path. If you print your environment by typing "env" you may see your Program Files directory.



                    Launchpad Librarian is where Ubuntu Developers keep documentation about their work keeping your system up to date and secure.






                    share|improve this answer




















                    • 1





                      thanks. I understand your method. But when i still had my old wine, I didn't do what you suggested. I did chmod a+x /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe, and added /home/tim/program_files/document/pdfxchange_portable/ to $PATH in ~/.bashrc. Then $ pdfxcview.exe worked.

                      – Tim
                      Oct 4 '14 at 1:20












                    • It's a better practice, my friend, to place "wrapper" scripts to your executable files in your /usr/bin/ directory. It keeps things more organized. It's really a matter of personal preference. Within /usr/bin/, these "wrappers" are accessible from any user. However, ~/.bashrc will only be accessible from your own user's environment exports. The "env" command lists environment variables.

                      – Tyler Maginnis
                      Oct 4 '14 at 1:21












                    • yes, I think it is a universal method. thanks. Not sure why it worked before without your method.

                      – Tim
                      Oct 4 '14 at 1:27












                    • What version of WINE did you use before..? Perhaps I can investigate the Source code to discover if it dynamically generated a $PATH to your WINE environment. I know that WINE actually creates a File System to not-emulate Windows Executable.

                      – Tyler Maginnis
                      Oct 4 '14 at 1:29












                    • My old is wine1.6 1:1.6.1-0ubuntu1~ppa1~precise1. My new is wine1.6.2 compiled from source.

                      – Tim
                      Oct 4 '14 at 1:30
















                    -1














                    Okay, listen carefully. This is what you do.



                    Place this in /usr/bin/pdfxcview.exe



                    #!/bin/bash
                    # Call up a command;
                    wine /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


                    Then, invoke from Terminal:



                    $ chmod +x /usr/bin/pdfxcview.exe


                    ^ Sets executable bit to on.



                    $ pdfxcview.exe


                    Source Code Differential



                    Isn't Freedom of Software Great? It seems there is commentary about path. If you print your environment by typing "env" you may see your Program Files directory.



                    Launchpad Librarian is where Ubuntu Developers keep documentation about their work keeping your system up to date and secure.






                    share|improve this answer




















                    • 1





                      thanks. I understand your method. But when i still had my old wine, I didn't do what you suggested. I did chmod a+x /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe, and added /home/tim/program_files/document/pdfxchange_portable/ to $PATH in ~/.bashrc. Then $ pdfxcview.exe worked.

                      – Tim
                      Oct 4 '14 at 1:20












                    • It's a better practice, my friend, to place "wrapper" scripts to your executable files in your /usr/bin/ directory. It keeps things more organized. It's really a matter of personal preference. Within /usr/bin/, these "wrappers" are accessible from any user. However, ~/.bashrc will only be accessible from your own user's environment exports. The "env" command lists environment variables.

                      – Tyler Maginnis
                      Oct 4 '14 at 1:21












                    • yes, I think it is a universal method. thanks. Not sure why it worked before without your method.

                      – Tim
                      Oct 4 '14 at 1:27












                    • What version of WINE did you use before..? Perhaps I can investigate the Source code to discover if it dynamically generated a $PATH to your WINE environment. I know that WINE actually creates a File System to not-emulate Windows Executable.

                      – Tyler Maginnis
                      Oct 4 '14 at 1:29












                    • My old is wine1.6 1:1.6.1-0ubuntu1~ppa1~precise1. My new is wine1.6.2 compiled from source.

                      – Tim
                      Oct 4 '14 at 1:30














                    -1












                    -1








                    -1







                    Okay, listen carefully. This is what you do.



                    Place this in /usr/bin/pdfxcview.exe



                    #!/bin/bash
                    # Call up a command;
                    wine /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


                    Then, invoke from Terminal:



                    $ chmod +x /usr/bin/pdfxcview.exe


                    ^ Sets executable bit to on.



                    $ pdfxcview.exe


                    Source Code Differential



                    Isn't Freedom of Software Great? It seems there is commentary about path. If you print your environment by typing "env" you may see your Program Files directory.



                    Launchpad Librarian is where Ubuntu Developers keep documentation about their work keeping your system up to date and secure.






                    share|improve this answer















                    Okay, listen carefully. This is what you do.



                    Place this in /usr/bin/pdfxcview.exe



                    #!/bin/bash
                    # Call up a command;
                    wine /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe


                    Then, invoke from Terminal:



                    $ chmod +x /usr/bin/pdfxcview.exe


                    ^ Sets executable bit to on.



                    $ pdfxcview.exe


                    Source Code Differential



                    Isn't Freedom of Software Great? It seems there is commentary about path. If you print your environment by typing "env" you may see your Program Files directory.



                    Launchpad Librarian is where Ubuntu Developers keep documentation about their work keeping your system up to date and secure.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Oct 4 '14 at 1:51

























                    answered Oct 4 '14 at 1:18









                    Tyler MaginnisTyler Maginnis

                    1,019711




                    1,019711







                    • 1





                      thanks. I understand your method. But when i still had my old wine, I didn't do what you suggested. I did chmod a+x /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe, and added /home/tim/program_files/document/pdfxchange_portable/ to $PATH in ~/.bashrc. Then $ pdfxcview.exe worked.

                      – Tim
                      Oct 4 '14 at 1:20












                    • It's a better practice, my friend, to place "wrapper" scripts to your executable files in your /usr/bin/ directory. It keeps things more organized. It's really a matter of personal preference. Within /usr/bin/, these "wrappers" are accessible from any user. However, ~/.bashrc will only be accessible from your own user's environment exports. The "env" command lists environment variables.

                      – Tyler Maginnis
                      Oct 4 '14 at 1:21












                    • yes, I think it is a universal method. thanks. Not sure why it worked before without your method.

                      – Tim
                      Oct 4 '14 at 1:27












                    • What version of WINE did you use before..? Perhaps I can investigate the Source code to discover if it dynamically generated a $PATH to your WINE environment. I know that WINE actually creates a File System to not-emulate Windows Executable.

                      – Tyler Maginnis
                      Oct 4 '14 at 1:29












                    • My old is wine1.6 1:1.6.1-0ubuntu1~ppa1~precise1. My new is wine1.6.2 compiled from source.

                      – Tim
                      Oct 4 '14 at 1:30













                    • 1





                      thanks. I understand your method. But when i still had my old wine, I didn't do what you suggested. I did chmod a+x /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe, and added /home/tim/program_files/document/pdfxchange_portable/ to $PATH in ~/.bashrc. Then $ pdfxcview.exe worked.

                      – Tim
                      Oct 4 '14 at 1:20












                    • It's a better practice, my friend, to place "wrapper" scripts to your executable files in your /usr/bin/ directory. It keeps things more organized. It's really a matter of personal preference. Within /usr/bin/, these "wrappers" are accessible from any user. However, ~/.bashrc will only be accessible from your own user's environment exports. The "env" command lists environment variables.

                      – Tyler Maginnis
                      Oct 4 '14 at 1:21












                    • yes, I think it is a universal method. thanks. Not sure why it worked before without your method.

                      – Tim
                      Oct 4 '14 at 1:27












                    • What version of WINE did you use before..? Perhaps I can investigate the Source code to discover if it dynamically generated a $PATH to your WINE environment. I know that WINE actually creates a File System to not-emulate Windows Executable.

                      – Tyler Maginnis
                      Oct 4 '14 at 1:29












                    • My old is wine1.6 1:1.6.1-0ubuntu1~ppa1~precise1. My new is wine1.6.2 compiled from source.

                      – Tim
                      Oct 4 '14 at 1:30








                    1




                    1





                    thanks. I understand your method. But when i still had my old wine, I didn't do what you suggested. I did chmod a+x /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe, and added /home/tim/program_files/document/pdfxchange_portable/ to $PATH in ~/.bashrc. Then $ pdfxcview.exe worked.

                    – Tim
                    Oct 4 '14 at 1:20






                    thanks. I understand your method. But when i still had my old wine, I didn't do what you suggested. I did chmod a+x /home/tim/program_files/document/pdfxchange_portable/PDFXCview.exe, and added /home/tim/program_files/document/pdfxchange_portable/ to $PATH in ~/.bashrc. Then $ pdfxcview.exe worked.

                    – Tim
                    Oct 4 '14 at 1:20














                    It's a better practice, my friend, to place "wrapper" scripts to your executable files in your /usr/bin/ directory. It keeps things more organized. It's really a matter of personal preference. Within /usr/bin/, these "wrappers" are accessible from any user. However, ~/.bashrc will only be accessible from your own user's environment exports. The "env" command lists environment variables.

                    – Tyler Maginnis
                    Oct 4 '14 at 1:21






                    It's a better practice, my friend, to place "wrapper" scripts to your executable files in your /usr/bin/ directory. It keeps things more organized. It's really a matter of personal preference. Within /usr/bin/, these "wrappers" are accessible from any user. However, ~/.bashrc will only be accessible from your own user's environment exports. The "env" command lists environment variables.

                    – Tyler Maginnis
                    Oct 4 '14 at 1:21














                    yes, I think it is a universal method. thanks. Not sure why it worked before without your method.

                    – Tim
                    Oct 4 '14 at 1:27






                    yes, I think it is a universal method. thanks. Not sure why it worked before without your method.

                    – Tim
                    Oct 4 '14 at 1:27














                    What version of WINE did you use before..? Perhaps I can investigate the Source code to discover if it dynamically generated a $PATH to your WINE environment. I know that WINE actually creates a File System to not-emulate Windows Executable.

                    – Tyler Maginnis
                    Oct 4 '14 at 1:29






                    What version of WINE did you use before..? Perhaps I can investigate the Source code to discover if it dynamically generated a $PATH to your WINE environment. I know that WINE actually creates a File System to not-emulate Windows Executable.

                    – Tyler Maginnis
                    Oct 4 '14 at 1:29














                    My old is wine1.6 1:1.6.1-0ubuntu1~ppa1~precise1. My new is wine1.6.2 compiled from source.

                    – Tim
                    Oct 4 '14 at 1:30






                    My old is wine1.6 1:1.6.1-0ubuntu1~ppa1~precise1. My new is wine1.6.2 compiled from source.

                    – Tim
                    Oct 4 '14 at 1:30


















                    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%2f159193%2funable-to-find-an-interpreter-when-running-a-windows-executable%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

                    Peggy Mitchell

                    Palaiologos

                    The Forum (Inglewood, California)