Stumped with winetricks and source code

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Polaris84
Level 2
Level 2
Posts: 10
Joined: Tue Jan 25, 2011 11:02 pm

Stumped with winetricks and source code

Post by Polaris84 »

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
snejjj
Level 3
Level 3
Posts: 63
Joined: Sun Jul 25, 2010 5:25 am

Post by snejjj »

Error: Checksum (sha1) mismatch for winetricks
Error: Checksum (rmd160) mismatch for winetricks
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.

try to redownload the files and try again. you could also try a different download server.[/code]
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

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...

Code: Select all

cd ~/Desktop
chmod 755 winetricks
sudo mv winetricks /opt/local/bin
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.
James Mckenzie

Stumped with winetricks and source code

Post by James Mckenzie »

snejjj <[email protected]> wrote
Sent: Jan 26, 2011 1:16 AM
To: [email protected]
Subject: [Wine] Re: Stumped with winetricks and source code

Error: Checksum (sha1) mismatch for winetricks
Error: Checksum (rmd160) mismatch for winetricks
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.
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.

James McKenzie
James Mckenzie

Stumped with winetricks and source code

Post by James Mckenzie »

doh123 <[email protected]> wrote:
just install winetricks manually...
Does Wineskin have a method to check and update winetricks?

If not, that might be something to look into.

James McKenzie
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Stumped with winetricks and source code

Post by doh123 »

James Mckenzie wrote:doh123 <[email protected]> wrote:
just install winetricks manually...
Does Wineskin have a method to check and update winetricks?

If not, that might be something to look into.

James McKenzie
off topic of this thread (Wineskin wasn't being used)...

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... :-)
Polaris84
Level 2
Level 2
Posts: 10
Joined: Tue Jan 25, 2011 11:02 pm

Post by Polaris84 »

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?
James Mckenzie

Stumped with winetricks and source code

Post by James Mckenzie »

doh123 and all others:

Sorry for the OT post. I don't keep all of my mail on-line...

James Mckenzie wrote:
doh123 <[email protected]> wrote:
just install winetricks manually...

Does Wineskin have a method to check and update winetricks?

If not, that might be something to look into.

James McKenzie
off topic of this thread (Wineskin wasn't being used)...

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... :-)
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.

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
James Mckenzie

Stumped with winetricks and source code

Post by James Mckenzie »

Polaris84 <[email protected]> wrote:
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.
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.

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
Polaris84
Level 2
Level 2
Posts: 10
Joined: Tue Jan 25, 2011 11:02 pm

Post by Polaris84 »

I'm not using Linux. I'm attempting to do everything in the Leopard Mac OS X 10.5.8 terminal, which is half the problem since there isn't a whole lot of support for this. I'm on a Macbook pro so its the GeForce 8600M GT chipset, original drivers.
James Mckenzie

Stumped with winetricks and source code

Post by James Mckenzie »

Polaris84 <[email protected]> wrote:
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]
Ok. There are several Mac users here, and I'm one of them who does builds quite frequently.

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.
I'm on a Macbook pro so its the GeForce 8600M GT chipset, original drivers.
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?

Last, can you advise which product you are trying to download with winetricks is giving you the sha1sum error?

James McKenzie
Polaris84
Level 2
Level 2
Posts: 10
Joined: Tue Jan 25, 2011 11:02 pm

Post by Polaris84 »

Yes, I do have XQuartz 2.6.0 installed.

Okay, I've install winetricks manually using this method:
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
Now when I enter winetricks into terminal I get

$ 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]
Polaris84
Level 2
Level 2
Posts: 10
Joined: Tue Jan 25, 2011 11:02 pm

Post by Polaris84 »

To add to may last post, when I try to shortcut winetricks here is what happens:

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
------------------------------------------------------
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.
James McKenzie

Stumped with winetricks and source code

Post by James McKenzie »

On 1/26/11 12:56 PM, Polaris84 wrote:
To 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
------------------------------------------------------
Interesting. I'll have to look at winetricks here but I don't remember
it doing this. What is the version number of the script (this will mean
looking at it with Textedit)?

Thank you.

James McKenzie
Polaris84
Level 2
Level 2
Posts: 10
Joined: Tue Jan 25, 2011 11:02 pm

Post by Polaris84 »

I fixed the issue. After uninstalling wine, I went into the finder and deleted the opt/ dir that was created at the install of MacPorts. After that I reinstalled MacPorts and port installed wine, which reinstalled all of the dependencies. Winetricks works perfectly now.
Locked