LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1649|回复: 18

[求]FreeBSD下Wine的安装于使用

[复制链接]
发表于 2003-8-2 11:57:00 | 显示全部楼层 |阅读模式
找了好几个论坛都没有详细的介绍,我现在从ports安装了wine和wine-tools。但运行是显示:
wine: cannot open /root/.wine : No such file or directory
怎么回事?安装失败?好像安装没问题呀


要马上编辑内核吗?
发表于 2003-8-2 12:54:32 | 显示全部楼层
不需要编译内核
参考这里:
http://xbkconfp.cosoft.org.cn/wine.php
在/usr/ports/emulators/wine 的打上xim的patch,make 就可以了
不打也能用,只是没有办法输入中文
 楼主| 发表于 2003-8-2 13:01:47 | 显示全部楼层
怎么wine的port的pkg-descr说要编辑内核?
问题是我现在已经在ports中安装了,但运行时出现了以上的问题呀
发表于 2003-8-2 15:32:17 | 显示全部楼层
怎么不仔细看看呢
In order to use Wine on FreeBSD 4.x, you need a kernel with option USER_LDT
enabled.  You also need options SYSVSHM, SYSVSEM, and SYSVMSG; these are
default on FreeBSD 4.x and above.

Wine requires a configuration file .wine/config in the home directory of
every user, where assignments of Unix directories to DOS drive letters and
other options can be set (see "man wine" for details). You may want to copy
  %%PREFIX%%/etc/wine.conf
and tweak it accordingly or edit this file and make .wine/config a symlink   
there.

如果你是4.x的话,要编译内核加入 USER_LDT,不过你的系统是5.1的吧,5.1已经取消了这个选项了。
.wine 的问题,是需要自己手工建立目录的,然后copy %%PREFIX%%/etc/wine.conf 到.wine 目录中,修改成符合你机器的内容。
我上个帖子里的连接中的第4部分写的很清楚了。
 楼主| 发表于 2003-8-2 15:36:44 | 显示全部楼层
哦,是的,现在就是 配置conf老是出错,我晕了!DimAngel大哥能不能具体给我 谈谈,win2000的系统在C盘,就是配置不好。
发表于 2003-8-2 15:54:50 | 显示全部楼层
你到/usr/ports/emulators/wine 下make patch, 将 /work/wine*/documentation/samples/config cp 到~/.wine/

修改.wine/config 使其反应您的系统状态。打开 config 后,主要修改最前面的定义驱动器的部分。首先,删除对Drive A 的设定的一行:([Drive A]的最后一行)

"Device" = "/dev/fd0"


然后请根据你的机器的情况,修改剩余的驱动器。

[Drive C]
"ath" = "/path/to/your/win2k/mountpoint"
"Type" = "hd"
"Label" = "as your wish"
"Filesystem" = "win95"

如果你的win2k的系统是ntfs格式,那最好不要直接连接到真实的win2k分区

建议:不要将 c: 指向一个存在的真实 windows 盘,而是自己建立一个 “假”的,比如,你想在 /backup/c_drive 下建立一个虚拟 windows 的 c 盘,则执行如下命令(执行以下命令一般需要root 权限)

mkdir /backup/c_drive
cd /backup/c_drive
mkdir -p windows windows/Start\ Menu \
        windows/Start\ Menu/Programs windows/Fonts windows/system32 windows/Desktop
ln -s /windows/system32 windows/system

然后把上面C盘的PATH指向/backup/c_drive

为了可以运行不论处于你linux 任何目录下的程序,建议添加一个盘,如下(盘符是你现有的下一个就可以了)

[Drive G]
"ath" = "/"
"Type" = "hd"
"Label" = "root"
"Filesystem" = "win95"

别的基本不需要修改,默认值就可以了。


我给的那个连接的内容写得很清楚了,你可以仔细看看他得配置部分。
 楼主| 发表于 2003-8-2 16:01:20 | 显示全部楼层
我是这样配置的,可是出现错误:
  1. Warning: no valid DOS drive found, check your configuration file.
  2. Warning: could not find wine config [Drive x] entry for current working directory /root; starting in windows directory.
  3. Invalid path L"c:\\windows" for L"windows" directory: does not exist.
  4. Perhaps you have not properly edited or created your Wine configuration file,
  5. which is (supposed to be) '/home/freebird/.wine/config'.
复制代码

我没有 make patch这步...
 楼主| 发表于 2003-8-2 16:05:55 | 显示全部楼层
配置文件为:
  1. [Drive C]
  2. "Path" = "/mnt/Win_C"
  3. "Type" = "hd"
  4. "Label" = "MS-DOS"
  5. "Filesystem" = "win95"
  6. . ....
  7. [wine]
  8. "Windows" = "c:\\WINNT"
  9. "System" = "c:\\WINNT\\system"
  10. "Temp" = "e:\"
  11. "Path" = "c:\\WINNT;c:\\WINNT\\system"
  12. "Profile" = "c:\\WINNT\\Profiles\\All Users"
  13. "GraphicsDriver" = "x11drv"
  14. ;"ShowDirSymlinks" = "1"
  15. ;"ShowDotFiles" = "1"
  16. "ShellLinker" = "wineshelllink"
复制代码


在某项前加;;是不是注释掉?
发表于 2003-8-2 16:22:01 | 显示全部楼层
;; 是注释
加入
[Drive G]
"ath" = "/"
"Type" = "hd"
"Label" = "root"
"Filesystem" = "win95"
第二个warning就不会出现了。

我想问你一下你现在是在/root目录下吧,你现在是在哪个用户下呢?root用户还是freebird?还是freebird su成root后进行的操作?config的路径位置?
 楼主| 发表于 2003-8-2 16:25:39 | 显示全部楼层
我现在在root用户下,su到freebird运行wine,config文件在/home/freebird/.wine下。有的操作是su到root进行的。[drive G]也添加了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表