Stumped with winetricks and source code
Stumped with winetricks and source code
I'm using Leopard and I'm new to wine, MacPorts, the use of the terminal, and coding in general. Because of this, some of the language in the FAQ seems foreign to me and hasn't been very helpful, or its geared toward Unix users and not Mac OS X users.
ISSUE#1: I managed to install wine through MacPorts and use it to run a game. I've used Crossover to install and run the same game and have discovered the there are some bugs. I've found patches to apply to wine source code that might fix the problem. Example at: http://bugs2.winehq.org/attachment.cgi?id=32688. I've located /dlls/user32/input.c. I've copy/pasted the above code, adding it to the existing input.c code. Can anyone tell me if I'm doing this right?
ISSUE#2: The game requires ie6 to run so I've attempted to install winetricks through MacPorts. Everything seemed to be going smoothly until this happened during the requesting of winetricks:
---> Computing dependencies for winetricks
---> Verifying checksum(s) for winetricks
Error: Checksum (sha1) mismatch for winetricks
Error: Checksum (rmd160) mismatch for winetricks
Error: Target org.macports.checksum returned: Unable to verify file checksums
Log for winetricks is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_winetricks/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Mainly, I'd like to try to understand what the problem might be in case I run into this again after I reinstall Wine.
Any info would be a great help.
Thanks
ISSUE#1: I managed to install wine through MacPorts and use it to run a game. I've used Crossover to install and run the same game and have discovered the there are some bugs. I've found patches to apply to wine source code that might fix the problem. Example at: http://bugs2.winehq.org/attachment.cgi?id=32688. I've located /dlls/user32/input.c. I've copy/pasted the above code, adding it to the existing input.c code. Can anyone tell me if I'm doing this right?
ISSUE#2: The game requires ie6 to run so I've attempted to install winetricks through MacPorts. Everything seemed to be going smoothly until this happened during the requesting of winetricks:
---> Computing dependencies for winetricks
---> Verifying checksum(s) for winetricks
Error: Checksum (sha1) mismatch for winetricks
Error: Checksum (rmd160) mismatch for winetricks
Error: Target org.macports.checksum returned: Unable to verify file checksums
Log for winetricks is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_winetricks/main.log
Error: Status 1 encountered during processing.
To report a bug, see <http://guide.macports.org/#project.tickets>
Mainly, I'd like to try to understand what the problem might be in case I run into this again after I reinstall Wine.
Any info would be a great help.
Thanks
this lines mean, that the downloaded files are defective. that's either because of defective files on the download-server, or because of problems during the download. It's possible that it's even because of a problem with your harddisk.Error: Checksum (sha1) mismatch for winetricks
Error: Checksum (rmd160) mismatch for winetricks
try to redownload the files and try again. you could also try a different download server.[/code]
just install winetricks manually...
go to the wiki page
right click the link to the winetricks script and save it as a file to your desktop
rename the file to just "winetricks" no upper case, no .txt no .sh or anything like that.
open terminal.app
type the following...
I'm not totally sure if that last command needs a sudo, but it won't hurt, it'll just ask for an admin password.
at that point the winetricks command will work via command line fine.
go to the wiki page
right click the link to the winetricks script and save it as a file to your desktop
rename the file to just "winetricks" no upper case, no .txt no .sh or anything like that.
open terminal.app
type the following...
Code: Select all
cd ~/Desktop
chmod 755 winetricks
sudo mv winetricks /opt/local/bin
at that point the winetricks command will work via command line fine.
Stumped with winetricks and source code
snejjj <[email protected]> wrote
James McKenzie
Or the script you are using to download winetricks with is out of date. There are releases every 14 days of winetricks. If the script is over 14 days old and is using sha1sum to verify, it should fail.Sent: Jan 26, 2011 1:16 AM
To: [email protected]
Subject: [Wine] Re: Stumped with winetricks and source code
this lines mean, that the downloaded files are defective. that's either because of defective files on the download-server,Error: Checksum (sha1) mismatch for winetricks
Error: Checksum (rmd160) mismatch for winetricks
or because of problems during the download. It's possible that it's even because of a problem with your harddisk.
James McKenzie
Stumped with winetricks and source code
doh123 <[email protected]> wrote:
If not, that might be something to look into.
James McKenzie
Does Wineskin have a method to check and update winetricks?just install winetricks manually...
If not, that might be something to look into.
James McKenzie
Re: Stumped with winetricks and source code
off topic of this thread (Wineskin wasn't being used)...James Mckenzie wrote:doh123 <[email protected]> wrote:Does Wineskin have a method to check and update winetricks?just install winetricks manually...
If not, that might be something to look into.
James McKenzie
but yes it does have an update button, and I have the GUI fixed to use the new Winetricks-alpha for the next (and hopefully last) release candidate for 2.0... i just wish they'd hurry up and make the alpha the main, it is a lot better... but I don't want to have to code in the updater to worry about if its getting the old format or the new... I'm lazy like that...

Thanks for the replies.
Update:
I had uninstalled wine-devel, but I wanted to test the install of winetricks again. I reinstalled wine-devel and attempted to run winecfg. Now every wine command I try to enter into the terminal comes back with:
'xterm-color': unknown terminal type.
I've already uninstalled and reinstalled wine-devel twice and had it come back with this. Anyone know what this is and why it suddenly refuses to recognize the terminal type I've been using all along?
Update:
I had uninstalled wine-devel, but I wanted to test the install of winetricks again. I reinstalled wine-devel and attempted to run winecfg. Now every wine command I try to enter into the terminal comes back with:
'xterm-color': unknown terminal type.
I've already uninstalled and reinstalled wine-devel twice and had it come back with this. Anyone know what this is and why it suddenly refuses to recognize the terminal type I've been using all along?
Stumped with winetricks and source code
doh123 and all others:
Sorry for the OT post. I don't keep all of my mail on-line...
Now, back to the OPs original problem: Winetricks is released about every two weeks. Try the lastest version and if the error still occurs then Dan, Austin or one of the winetricks maintainers will have to look into why the sha1sum is failing. Microsoft and other providers are subject to changing file structures at any time. This is not directly a failure of winetricks.
James McKenzie
Sorry for the OT post. I don't keep all of my mail on-line...
Good. Hopefully, the 'decision' will be made soon by Dan and Austin as to the direction winetricks will move in. It is good that you have a gui interface for winetricks.
James Mckenzie wrote:off topic of this thread (Wineskin wasn't being used)...doh123 <[email protected]> wrote:
Does Wineskin have a method to check and update winetricks?just install winetricks manually...
If not, that might be something to look into.
James McKenzie
but yes it does have an update button, and I have the GUI fixed to use the new Winetricks-alpha for the next (and
hopefully last) release candidate for 2.0... i just wish they'd hurry up and make the alpha the main, it is a lot
better... but I don't want to have to code in the updater to worry about if its getting the old format or the new... I'm
lazy like that...![]()
Now, back to the OPs original problem: Winetricks is released about every two weeks. Try the lastest version and if the error still occurs then Dan, Austin or one of the winetricks maintainers will have to look into why the sha1sum is failing. Microsoft and other providers are subject to changing file structures at any time. This is not directly a failure of winetricks.
James McKenzie
Stumped with winetricks and source code
Polaris84 <[email protected]> wrote:
Just as a refresher, what Linux Distribution and Version, as well as Video Card and Driver are you using? This may be a Linux problem and not a Wine one.
James McKenzie
Something outside of Wine is now broken. Wine should NOT be checking your terminal type, unless you are using a wrapper script to start it.Thanks for the replies.
Update:
I had uninstalled wine-devel, but I wanted to test the install of winetricks again. I reinstalled wine-devel and attempted
to run winecfg. Now every wine command I try to enter into the terminal comes back with:
'xterm-color': unknown terminal type.
Just as a refresher, what Linux Distribution and Version, as well as Video Card and Driver are you using? This may be a Linux problem and not a Wine one.
James McKenzie
Stumped with winetricks and source code
Polaris84 <[email protected]> wrote:
One suggestion: Use Macports or Fink to get all of the dependencies installed, and there are quite a few.
Second suggestion: As I stated several times, please get the latest version of winetricks. Dan Kegel or Austin English releases one about every two weeks, on the opposite weekend from a Wine release. In some cases, the files are moved or updated, and Microsoft is famous for this, and an older version of winetricks will error when checking the sha1 value.
Third suggestion: Update to Snow Leopard, if you can. Leopard has issues that were addressed in Snow Leopard and Snow Leopard is up to its sixth update. Apple will soon drop non-security update support for Leopard as well.
Last, can you advise which product you are trying to download with winetricks is giving you the sha1sum error?
James McKenzie
Ok. There are several Mac users here, and I'm one of them who does builds quite frequently.Sent: Jan 26, 2011 11:00 AM
To: [email protected]
Subject: [Wine] Re: Stumped with winetricks and source code
I'm not using Linux. I'm attempting to do everything in the Leopard Mac OS X 10.5.8 [removed rest of message]
One suggestion: Use Macports or Fink to get all of the dependencies installed, and there are quite a few.
Second suggestion: As I stated several times, please get the latest version of winetricks. Dan Kegel or Austin English releases one about every two weeks, on the opposite weekend from a Wine release. In some cases, the files are moved or updated, and Microsoft is famous for this, and an older version of winetricks will error when checking the sha1 value.
Third suggestion: Update to Snow Leopard, if you can. Leopard has issues that were addressed in Snow Leopard and Snow Leopard is up to its sixth update. Apple will soon drop non-security update support for Leopard as well.
Have you looked at installing XQuartz 2.6.0 (or later) as the X11 server product for Leopard has several missing functions and is at OpenGL 1.2 (or earlier) and is not fully compatible with Wine?I'm on a Macbook pro so its the GeForce 8600M GT chipset, original drivers.
Last, can you advise which product you are trying to download with winetricks is giving you the sha1sum error?
James McKenzie
Yes, I do have XQuartz 2.6.0 installed.
Okay, I've install winetricks manually using this method:
$ winetricks
'xterm-color': unknown terminal type.
** (zenity:24579): WARNING **: Could not load ui file /opt/local/share/zenity/zenity.ui: Failed to open file '/opt/local/share/zenity/zenity.ui': No such file or directory
right after which X11 creates a desktop then quickly terminates. Same behavior as entering any wine command into the terminal only with the WARNING.
As for upgrading, I'm out on the cash for Snow Leopard so it'll have to wait.
The error was printed when I was attempting to install winetricks through MacPorts. [/quote]
Okay, I've install winetricks manually using this method:
Now when I enter winetricks into terminal I getrename the file to just "winetricks" no upper case, no .txt no .sh or anything like that.
open terminal.app
type the following...
Code: Select all
cd ~/Desktop chmod 755 winetricks sudo mv winetricks /opt/local/bin
$ winetricks
'xterm-color': unknown terminal type.
** (zenity:24579): WARNING **: Could not load ui file /opt/local/share/zenity/zenity.ui: Failed to open file '/opt/local/share/zenity/zenity.ui': No such file or directory
right after which X11 creates a desktop then quickly terminates. Same behavior as entering any wine command into the terminal only with the WARNING.
As for upgrading, I'm out on the cash for Snow Leopard so it'll have to wait.
The error was printed when I was attempting to install winetricks through MacPorts. [/quote]
To add to may last post, when I try to shortcut winetricks here is what happens:
To be honest, I don't remember having this problem before I went into the terminal.app prefs to take a look around. I think the only thing I did was change the preferred default text color on startup.
Code: Select all
$ sh winetricks corefonts
'xterm-color': unknown terminal type.
'xterm-color': unknown terminal type.
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned empty string
------------------------------------------------------
Stumped with winetricks and source code
On 1/26/11 12:56 PM, Polaris84 wrote:
it doing this. What is the version number of the script (this will mean
looking at it with Textedit)?
Thank you.
James McKenzie
Interesting. I'll have to look at winetricks here but I don't rememberTo add to may last post, when I try to shortcut winetricks here is what happens:
Code:
$ sh winetricks corefonts
'xterm-color': unknown terminal type.
'xterm-color': unknown terminal type.
------------------------------------------------------
wine cmd.exe /c echo '%ProgramFiles%' returned empty string
------------------------------------------------------
it doing this. What is the version number of the script (this will mean
looking at it with Textedit)?
Thank you.
James McKenzie