View Full Version : winetricks.....

21st August 2008, 01:21 AM
Hello this is my first post on these forums so im hoping to get some responses :)
I have just installed fedora for the first time, after having a little bit of experience with ubuntu.
i have fallen in love with a chat program called digsby and in order to get that to work you have to install wine and use winetricks to install dot net and a driver, at least in ubuntu (see this forum post, Here (http://ubuntuforums.org/showthread.php?t=767072) )

when i try similar steps in Fedora Core 9 i can get as far so opening winetricks to install dot net and i get this error.
"Winetricks error: wine cmd.exe /c echo '%ProgramFiles%' returned empty string"

Any thoughts?


21st August 2008, 01:46 AM
It sounds like you need to assign your program files directory to the %ProgramFiles% string. But I don't recall how to do this in WinDOS.

21st August 2008, 01:56 AM
Try this:

wine cmd ->

regedit ->

navigate to: My Computer/HKEY_LOCAL_MACHINE/System/CurrentControlSet/Control/Session Manager/Environment ->

Does the value ProgramFiles exist? If not: Right click -> New -> String Value -> Set its name to: ProgramFiles and its value to: c:\Program Files

Just a guess but I think it will work and it won't break anything.

21st August 2008, 01:58 AM
alright, tried that and there was an entry for program files.....was a good thought though, i thought we had it.

21st August 2008, 02:11 AM
I have never used digsby, but looking at the website, it appears to look very similar to pidgin (http://www.pidgin.im) (gnome) and Kopete (http://kopete.kde.org/) ( kde ) although each will run just fine on the other.

if you want the social engineering sites, i.e. myspace and facebook etc. there are Plugins (http://developer.pidgin.im/wiki/ThirdPartyPlugins)

I use pidgin, sudo yum -y install pidgin purple-plugin_pack purple-plugin_pack-pidgin purple-plugin_pack-pidgin-xmms

but I don't use the social engineering websites.

if you really want to use digsby if pidgin or kopete is not going to work for you,
the error you stated "usually" means that wine is not setup for your account.

run winecfg at the cli you can get info on the command Here (http://winehq.org/site/docs/wineusr-guide/config-wine-main)

after that, try your .NET install with winetricks again.
please post back with your results.

21st August 2008, 02:16 AM
What happens when you type:

echo %ProgramFiles%
from within cmd?

21st August 2008, 02:20 AM
winetricks is actually running

wine cmd.exe /c echo "%ProgramFiles%"

if you run that on the cli, what does that return for you?

21st August 2008, 02:21 AM
sorry, for the double post with carpetfeller, looks like he beat me to the post.

21st August 2008, 03:03 AM
Ok here we go.
i navigate in command line to the ...system32 folder and do the following
wine cmd.exe

i get this "wine: could not load L"C:\\windows\\system32\\cmd.exe": Module not found"

Could that mean that wine isnt installed correctly?

21st August 2008, 03:09 AM
that would be my guess, how did you install wine?


sudo yum -y remove wine; sudo yum -y install wine
and try it again.

21st August 2008, 03:11 AM
opps, wrong command....

sudo yum -y erase wine; sudo yum -y install wine

21st August 2008, 03:16 AM
grrrrr... when i try that i get "User is not in the sudoers file. This incident will be reported."

thanks everyone for your help. im a noob to Fedora so still learning.

21st August 2008, 03:17 AM
what happens when you type:
wine /usr/lib/wine/cmd.exe.so

21st August 2008, 03:22 AM
i get this
"wine: cannot find '/usr/lib/wine/cmd.exe.so'"

21st August 2008, 03:24 AM
how about:

cd /usr/lib/wine

21st August 2008, 03:26 AM
i get a whole list of items but none of them are cmd.exe

21st August 2008, 03:30 AM
I would reinstall wine and then run winecfg before anything else. I'm stumped.

21st August 2008, 03:31 AM
lol Thanks for your help.
How exactly do i uninstall wine?

21st August 2008, 03:33 AM
Did you compile it from source or rpm?

21st August 2008, 03:36 AM
i did a yum install wine

21st August 2008, 03:38 AM
su - root
enter password
yum remove wine

21st August 2008, 03:39 AM
hmmm interesting, its says

No Match for argument: wine
No Packages marked for removal

21st August 2008, 03:41 AM
To fix your sudo problem:

as root:

add this line to /etc/sudoers:

yourusername ALL=(ALL) NOPASSWD: ALL

21st August 2008, 03:45 AM
how about

yum list all | grep wine

21st August 2008, 03:46 AM
i feel like suck a noob.
i have no idea how to edit that file.

21st August 2008, 03:48 AM
ahh ok it was wine-core not just wine that i had to remove

21st August 2008, 03:49 AM
There is a graphical utility to edit sudoers but I don't know what it is.

21st August 2008, 03:51 AM
ok i removed wine-core and redid the "yum install wine" now it is going through and downloading and installing new things. I think i may have only partially installed wine. i will see and post my results

21st August 2008, 03:57 AM
Sounds like you're on the right track. I hope it works for you.

While you are waiting:

su - root
enter password
nano /etc/sudoers
add the line:
yourusername ALL=(ALL) NOPASSWD: ALL
anywhere in the sudoers file
save and exit

21st August 2008, 06:49 AM
to edit the sudoers file.. don't edit it directly... if you make a mistake in syntax it will break it.

do the following

su -
Enter Password for root


once you are in the "vi" session
type the following

yourusername ALL=(ALL) NOPASSWD: ALL
it is capital G that will jump you to the end of the file
lower case "o" that will put you in "edit mode" on the line just below the cursor
enter the yourusername line

<esc> is the escape character will take you out of "edit mode"
:wq! is force write and quit i.e. save and quit

after that you should be able to type sudo {cmd} and it will run {cmd} as the root user

to make sure you get all of wine removed. type sudo rpm -qa |grep -i wine
if anything returns from that, remove it with yum remove

23rd August 2008, 02:30 PM
Did it work?