Author Topic: [SOLVED] - wine not working - memdos problem  (Read 2535 times)

Offline grahameblackwood

  • Jr. Member
  • **
  • Posts: 45
[SOLVED] - wine not working - memdos problem
« on: May 03, 2010, 01:48:45 AM »
Hi

Last weekend I installed PCLinuxOS 2010 over the earlier version, but preserved my /home directories. One problem I have found and not been able to resolve is that Wine refuses to run and produces the following error message:

err:dosmem:DOSMEM_MapDosLayout Need full access to the first megabyte for DOS mode

Has anyone else had this problem and found a solution?

Incidentally, the software I am trying to run under Wine is called scrivner.exe. It is ancient and originally written for CP/M. However, it is useful, to me at least as it does arithmetic on specially marked up plain text files and then puts the results back in the text file. Very good for remittance advices, form letters and reports.

Cheers

G

The clue to a solution is found here: http://wiki.winehq.org/PreloaderPageZeroProblem

In PCLOS 2009 if you cat /proc/sys/vm/mmap_min_addr the result is 0

If you do the same in PCLOS 2010 the result is 4096 and this seems to cause the problem I reported above.

The cure is to enter at the command line as root: sysctl -w vm.mmap_min_addr=0

This cure is only for the current session and needs to be repeated for each re-boot.

For a permanent cure, there is a recommendation in the link above to change the line in /etc/sysctl.conf that reads:

vm.mmap_min_addr = 65536 to
vm.mmap_min_addr = 0

However, I haven't tried it as sysctl.conf doesn't have a line setting the minimum address to 65536 and I will probably just set it from the command line on a sessional basis.

Cheers

G
« Last Edit: August 26, 2010, 04:24:56 AM by Texstar »

Offline Jonesy

  • Sr. Member
  • ****
  • Posts: 301
Re: SOLVED - wine not working - memdos problem
« Reply #1 on: August 23, 2010, 03:18:45 AM »
Confirming that the fix suggested does solve the Wine DOSMEM error in PCLinuxOS 2010.

Adding the line to /etc/sysctl.conf that reads vm.mmap_min_addr = 0 permanently, did the trick. Thanks for the tip.
"But it was ok before.... honest"