Results 1 to 5 of 5

Thread: Can't find file...

  1. #1
    Join Date
    Jun 2013
    Beans
    21

    Can't find file...

    I have a Windows program prog.exe at: /home/abc/def/prog.exe (together with all the other files it uses).

    Typing 'wine prog.exe' or 'wine ./prog.exe' while in the current directory gives me this error:

    wine: cannot find L"Z:\\home\\abc\\def\\prog.exe"

    What does it mean?!

  2. #2
    Join Date
    Dec 2007
    Beans
    559

    Re: Can't find file...

    Make sure the program is executable:
    Code:
    chmod +x prog.exe

  3. #3
    Join Date
    Jun 2013
    Beans
    21

    Re: Can't find file...

    Quote Originally Posted by newbie-user View Post
    Make sure the program is executable:
    Code:
    chmod +x prog.exe
    Thanks, but, that didn't seem to work.

    It does work if prog.exe is copied to /home/abc (my normal home directory). (Or at least, it makes an attempt to execute it. But there are missing DLL files it's not picking up, which is why I'm copying the lot from the original Windows folder to Linux.)

    Looking at it in file manager, it says I am not the owner, so can't change permissions (yet chmod didn't complain). The current permissions are read-write/read-only/none for Owner/Group/Others (I don't understand what these are...).

    Why shouldn't I be the owner? It was me that copied it from Windows!

  4. #4
    Join Date
    Jun 2013
    Beans
    21

    Re: Can't find file...

    Quote Originally Posted by sal55 View Post
    Looking at it in file manager, it says I am not the owner, so can't change permissions (yet chmod didn't complain). The current permissions are read-write/read-only/none for Owner/Group/Others (I don't understand what these are...).
    I deleted that folder containing the application (eventually..). Then recreated it using the gui file manager. This time the permissions were set up properly.

    However it's now moaning about mfc42.dll/MFC42.DLL which I've copied also and it still doesn't work.

    Elsewhere it was suggested I use 'winetricks mfc42', but it gives a 404 error trying to download from the Microsoft site.

    Somewhere else still, it was said I can get around that by using 'sudo add-apt-repository ppa:ubunto-wine/ppa' (who discovers all these incantations?). But that didn't work either ('Cannot access PPA'). I can't believe however I need to go to all this trouble just to install a file which as far as I know, I already have! Where does wine expect to load these support files from? (And why doesn't it already have them?)

    I give up. (The application is not that important; it works in XP, but not in 64-bit Windows, yet I don't think it's a 16-bit app. It was worth spending a few minutes seeing if it ran on wine, bút no more, and I doubt that MFC42.DLL was the only hurdle remaining.)

  5. #5
    Join Date
    Jul 2012
    Location
    USA
    Beans
    363
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Can't find file...

    Hi,

    Don't give up yet.

    Looking at it in file manager, it says I am not the owner, so can't change permissions (yet chmod didn't complain). The current permissions are read-write/read-only/none for Owner/Group/Others (I don't understand what these are...).
    Instead, open up the terminal and sudo the following;

    sudo nautilus
    (assuming you are using Ubuntu)

    This will bring up two windows, the terminal (still) and the file manager with admin/root rights. Now navigate to the folder of the .exe within the file manager window the sudo command brought up, and right click the .exe to enter properties. Now, on the second tab, you can check the the box to make it executable. You will know it is the box because it says "Execute: > [checkbox] allow executing files as program".

Bookmarks

Posting Permissions

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