[SOLVED] Making executable a file

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
semsaudade

[SOLVED] Making executable a file

Post by semsaudade »

Sorry for my question, but I have a stupid problem that I am not able to solve. I installed Wine on my Mint and now I want to install irfanview. I downloaded setup file for windows and tried to install it by right clicking on it and choosing "install with wine", but I receive error message stating that file is not executable.

No problem, I thought... I right clicked again on file name, choose properties and then I tried to tick the box for making it executable. But this operation is impossible: mint refuse my click on the "executing permissions" box.

So I tried from terminal in this way:

Code: Select all

giancarlo@pc-giancarlo /media/0832D9E432D9D732/Download $ chmod +x iview428_setup.exe
giancarlo@pc-giancarlo /media/0832D9E432D9D732/Download $ ls -l
totale 108360
-rw------- 1 giancarlo giancarlo    177496 2011-05-15 07:21 IrfanviewPluginsBundleStub.exe
-rw------- 1 giancarlo giancarlo   1474048 2011-05-15 07:20 iview428_setup (copia).exe
-rw------- 1 giancarlo giancarlo   1474048 2011-05-15 07:20 iview428_setup.exe
-rw------- 1 giancarlo giancarlo 107830710 2011-05-15 07:09 VMware-Player-3.1.4-385536.i386.bundle
giancarlo@pc-giancarlo /media/0832D9E432D9D732/Download $ 
As you can see, it seems impossible to make executable this file! I tried also with su chmod but result is the same.

What am I doing wrong?

Thanks a lot for you patience and kindness!
Giancarlo
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
meskarune

Re: Making executable a file

Post by meskarune »

You should follow the tutorial here: https://help.ubuntu.com/community/Wine/IrfanView
semsaudade

Re: Making executable a file

Post by semsaudade »

Thanks for your answer... but why can't I make executable that file? What is wrong?
dawgdoc

Re: Making executable a file

Post by dawgdoc »

@semsaudade
I have not used Wine so I am taking a guess here. Could it be either you must set it executable for all users chmod a+x iview428_setup.exe or that you must execute the command as root? sudo chmod +x iview428_setup.exe Again, I'm guessing, don't let me mess up your permissions.
altair4
Level 20
Level 20
Posts: 11454
Joined: Tue Feb 03, 2009 10:27 am

Re: Making executable a file

Post by altair4 »

Consider the following: Wine is incapable of determining if a Windows executable ( or any ) file has a Linux executable bit set. The problem is not wine it's "cautious-launcher".
altair4 wrote: Right click on an *.exe file
Then select Properties -> Open With -> Add -> Use a custom command > Then type in: wine
Back in the "Open With" tab mark the "wine" you just added as the default.

There's going to be another wine in that tab but that one has cautious-launcher embedded in it. Yours will not.
You can also just run it from the terminal:
wine "path/to/exe/file"

Or you can fix the problem at it's source:
Do a right click > Properties on /usr/share/applications/wine.

What you will see is this:
cautious-launcher %f wine start /unix
Change it to this:
wine start /unix
Please add a [SOLVED] at the end of your original subject header if your question has been answered and solved.
semsaudade

Re: Making executable a file

Post by semsaudade »

Thanks a lot! I solved the problem following your precious advices. Now Irfanview works perfectly on my Mint and I am also able to open an image with Irfanview double clicking simply on it.

Thanks again for helping.
dawgdoc

Re: [SOLVED] Making executable a file

Post by dawgdoc »

I assume it was altair4's advice that helped you, but could you say specifically what you did so that someone searching for a solution could know for sure. (I would not want them to follow my ill advised guidance. :oops: )
Locked

Return to “Beginner Questions”