東川印記

一本東川,笑看爭龍斗虎;寰茫兦者,度橫佰昧人生。

ubuntu14.04x64安装wine

2015年4月28日星期二



本不喜欢wine,可是要看android源码,看android源码在linux又找不到像Source Insight这样简单的东西。。。。
权衡一下,只好安wine。。。。。

然后开始苦海。。。。
  1. senrsl@senrsl-ubuntu:~$ sudo apt-get install wine
  2. [sudo] password for senrsl:
  3. 正在读取软件包列表... 完成
  4. 正在分析软件包的依赖关系树      
  5. 正在读取状态信息... 完成      
  6. 有一些软件包无法被安装。如果您用的是 unstable 发行版,这也许是
  7. 因为系统无法达到您要求的状态造成的。该版本中可能会有一些您需要的软件
  8. 包尚未被创建或是它们已被从新到(Incoming)目录移出。
  9. 下列信息可能会对解决问题有所帮助:
  10. 下列软件包有未满足的依赖关系:
  11.  wine : 依赖: wine1.6 但是它将不会被安装
  12. E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
进商店,报这个

  1. 下列软件包未满足的依赖关系:
  2. wine1.6: Depends: wine1.6-amd64 (= 1:1.6.2-0ubuntu4) 但是将要安装 1:1.6.2-0ubuntu4
  3.          Depends: wine1.6-i386 (= 1:1.6.2-0ubuntu4) 但是它是虚拟软件包
然后试试aptitude。。。。
  1. senrsl@senrsl-ubuntu:~$ sudo aptitude install wine
  2. [sudo] password for senrsl:
  3. 下列"新"软件包将被安装。        
  4.   attr{a} binfmt-support{a} fonts-horai-umefont{a} fonts-unfonts-core{a}
  5.   fonts-wqy-microhei{a} gnome-exe-thumbnailer{a} icoutils{a}
  6.   libasn1-8-heimdal:i386{a} libasound2-plugins:i386{a} libasyncns0:i386{a}
  7.   libcapi20-3{a} libcapi20-3:i386{a} libdb5.3:i386{a} libflac8:i386{a}
  8.   libgd3:i386{a} libgif4:i386{a} libglu1-mesa:i386{a} libgphoto2-6:i386{ab}
  9.   libgphoto2-port10:i386{ab} libgssapi3-heimdal:i386{a}
  10.   libgstreamer-plugins-base0.10-0:i386{a} libgstreamer0.10-0:i386{a}
  11.   libhcrypto4-heimdal:i386{a} libhdb9-heimdal{a}
  12.   libheimbase1-heimdal:i386{a} libheimntlm0-heimdal:i386{a}
  13.   libhx509-5-heimdal:i386{a} libice6:i386{a} libieee1284-3:i386{a}
  14.   libjack-jackd2-0:i386{a} libjson-c2:i386{ab} libkdc2-heimdal{a}
  15.   libkrb5-26-heimdal:i386{a} liblcms2-2:i386{a} libldap-2.4-2:i386{a}
  16.   libltdl7:i386{a} libmpg123-0:i386{a} libogg0:i386{a} libopenal1:i386{a}
  17.   liborc-0.4-0:i386{a} libosmesa6{ab} libosmesa6:i386{ab}
  18.   libp11-kit-gnome-keyring:i386{a} libpulse0:i386{a}
  19.   libroken18-heimdal:i386{a} libsamplerate0:i386{a} libsane:i386{ab}
  20.   libsane-common:i386{ab} libsasl2-2:i386{a} libsasl2-modules:i386{a}
  21.   libsasl2-modules-db:i386{a} libsm6:i386{a} libsndfile1:i386{a}
  22.   libspeexdsp1:i386{a} libssl1.0.0:i386{ab} libusb-1.0-0:i386{a}
  23.   libuuid1:i386{ab} libv4l-0:i386{a} libv4lconvert0:i386{a}
  24.   libvorbis0a:i386{a} libvorbisenc2:i386{a} libvpx1:i386{a}
  25.   libwind0-heimdal:i386{a} libwrap0:i386{a} libxml2:i386{ab}
  26.   libxpm4:i386{a} libxslt1.1:i386{a} libxt6:i386{a} ocl-icd-libopencl1{a}
  27.   ocl-icd-libopencl1:i386{a} odbcinst{a} odbcinst1debian2{a}
  28.   p11-kit-modules:i386{a} p7zip{a} python-dnspython{a} samba{ab}
  29.   samba-dsdb-modules{ab} samba-vfs-modules{ab} tdb-tools{a}
  30.   ttf-wqy-microhei{a} unixodbc{a} winbind{ab} wine wine-gecko2.21{a}
  31.   wine-gecko2.21:i386{a} wine-mono0.0.8{a} wine1.6{a} wine1.6-amd64{a}
  32.   wine1.6-i386:i386{a} winetricks{a}
  33. 0 个软件包被升级,新安装 90 个, 0 个将被删除, 同时 0 个将不升级。
  34. 需要获取 159 MB 的存档。 解包后将要使用 530 MB。
  35. 下列软件包存在未满足的依赖关系:
  36.  libssl1.0.0 : 破坏: libssl1.0.0:i386 (!= 1.0.1f-1ubuntu2.7) 但是 1.0.1f-1ubuntu2 将被安装。
  37.  libssl1.0.0:i386 : 破坏: libssl1.0.0 (!= 1.0.1f-1ubuntu2) 但是 1.0.1f-1ubuntu2.7 已安装。
  38.  libsane-common : 冲突: libsane-common:i386 但是 1.0.23-3ubuntu3 将被安装。
  39.  libsane-common:i386 : 冲突: libsane-common 但是 1.0.23-3ubuntu3.1 已安装。
  40.  winbind : 依赖: libwbclient0 (= 2:4.1.6+dfsg-1ubuntu2) 但是 2:4.1.6+dfsg-1ubuntu2.14.04.2 已安装。
  41.            依赖: samba-libs (= 2:4.1.6+dfsg-1ubuntu2) 但是 2:4.1.6+dfsg-1ubuntu2.14.04.2 已安装。
  42.  libjson-c2 : 破坏: libjson-c2:i386 (!= 0.11-3ubuntu1.2) 但是 0.11-3ubuntu1 将被安装。
  43.  libjson-c2:i386 : 破坏: libjson-c2 (!= 0.11-3ubuntu1) 但是 0.11-3ubuntu1.2 已安装。
  44.  samba : 依赖: samba-common (= 2:4.1.6+dfsg-1ubuntu2) 但是 2:4.1.6+dfsg-1ubuntu2.14.04.2 已安装。
  45.          依赖: samba-common-bin (= 2:4.1.6+dfsg-1ubuntu2) 但是 2:4.1.6+dfsg-1ubuntu2.14.04.2 已安装。
  46.          依赖: samba-libs (= 2:4.1.6+dfsg-1ubuntu2) 但是 2:4.1.6+dfsg-1ubuntu2.14.04.2 已安装。
  47.  libuuid1 : 破坏: libuuid1:i386 (!= 2.20.1-5.1ubuntu20.1) 但是 2.20.1-5.1ubuntu20 将被安装。
  48.  libuuid1:i386 : 破坏: libuuid1 (!= 2.20.1-5.1ubuntu20) 但是 2.20.1-5.1ubuntu20.1 已安装。
  49.  samba-dsdb-modules : 依赖: samba-libs (= 2:4.1.6+dfsg-1ubuntu2) 但是 2:4.1.6+dfsg-1ubuntu2.14.04.2 已安装。
  50.  libgphoto2-port10 : 破坏: libgphoto2-port10:i386 (!= 2.5.3.1-1ubuntu2.2) 但是 2.5.3.1-1ubuntu2 将被安装。
  51.  libgphoto2-port10:i386 : 破坏: libgphoto2-port10 (!= 2.5.3.1-1ubuntu2) 但是 2.5.3.1-1ubuntu2.2 已安装。
  52.  libxml2 : 破坏: libxml2:i386 (!= 2.9.1+dfsg1-3ubuntu4.3) 但是 2.9.1+dfsg1-3ubuntu4 将被安装。
  53.  libxml2:i386 : 破坏: libxml2 (!= 2.9.1+dfsg1-3ubuntu4) 但是 2.9.1+dfsg1-3ubuntu4.3 已安装。
  54.  libsane : 破坏: libsane:i386 (!= 1.0.23-3ubuntu3.1) 但是 1.0.23-3ubuntu3 将被安装。
  55.  libsane:i386 : 破坏: libsane (!= 1.0.23-3ubuntu3) 但是 1.0.23-3ubuntu3.1 已安装。
  56.  libosmesa6 : 依赖: libglapi-mesa (= 10.1.0-4ubuntu5) 但是 10.1.3-0ubuntu0.1 已安装。
  57.  libosmesa6:i386 : 依赖: libglapi-mesa:i386 (= 10.1.0-4ubuntu5) 但是 10.1.3-0ubuntu0.1 已安装。
  58.  libgphoto2-6 : 破坏: libgphoto2-6:i386 (!= 2.5.3.1-1ubuntu2.2) 但是 2.5.3.1-1ubuntu2 将被安装。
  59.  libgphoto2-6:i386 : 破坏: libgphoto2-6 (!= 2.5.3.1-1ubuntu2) 但是 2.5.3.1-1ubuntu2.2 已安装。
  60.  samba-vfs-modules : 依赖: samba-libs (= 2:4.1.6+dfsg-1ubuntu2) 但是 2:4.1.6+dfsg-1ubuntu2.14.04.2 已安装。
  61. 打开:93;关闭;1255;defer: 19; 冲突;22                           .下列动作将解决这些依赖关系:
  62.       保持 下列软件包于其当前版本:                                         
  63. 1)      libasound2-plugins:i386 [未安装的]                                  
  64. 2)      libgphoto2-6:i386 [未安装的]                                        
  65. 3)      libgphoto2-port10:i386 [未安装的]                                   
  66. 4)      libgstreamer-plugins-base0.10-0:i386 [未安装的]                     
  67. 5)      libgstreamer0.10-0:i386 [未安装的]                                  
  68. 6)      libjson-c2:i386 [未安装的]                                          
  69. 7)      libosmesa6 [未安装的]                                               
  70. 8)      libosmesa6:i386 [未安装的]                                          
  71. 9)      libpulse0:i386 [未安装的]                                           
  72. 10)     libsane:i386 [未安装的]                                             
  73. 11)     libsane-common:i386 [未安装的]                                      
  74. 12)     libsasl2-modules:i386 [未安装的]                                    
  75. 13)     libsm6:i386 [未安装的]                                              
  76. 14)     libssl1.0.0:i386 [未安装的]                                         
  77. 15)     libuuid1:i386 [未安装的]                                            
  78. 16)     libxml2:i386 [未安装的]                                             
  79. 17)     libxslt1.1:i386 [未安装的]                                          
  80. 18)     libxt6:i386 [未安装的]                                              
  81. 19)     samba [未安装的]                                                    
  82. 20)     samba-dsdb-modules [未安装的]                                       
  83. 21)     samba-vfs-modules [未安装的]                                        
  84. 22)     winbind [未安装的]                                                  
  85. 23)     wine [未安装的]                                                     
  86. 24)     wine1.6 [未安装的]                                                  
  87. 25)     wine1.6-amd64 [未安装的]                                            
  88. 26)     wine1.6-i386:i386 [未安装的]                                        
  89.       保留下列未解决的依赖关系:                                            
  90. 27)     wine1.6 推荐 winbind                                                
  91. 28)     wine1.6-amd64 推荐 libosmesa6                                       
  92. 29)     winetricks 推荐 wine                                                
  93. 30)     libsasl2-2:i386 推荐 libsasl2-modules:i386 (>= 2.1.25.dfsg1-17build1)
  94. 31)     libopenal1:i386 推荐 libpulse0:i386 (>= 1:0.99.1)                   
  95. 32)     wine1.6-i386:i386 推荐 libosmesa6:i386                              
  96. 33)     wine1.6-i386:i386 推荐 libsane:i386                                 
  97. 是否接受该解决方案?[Y/n/q/?] Y
  98. 下列"新"软件包将被安装。
  99.   binfmt-support{a} fonts-unfonts-core{a} fonts-wqy-microhei{a}
  100.   ocl-icd-libopencl1{a} odbcinst{a} odbcinst1debian2{a} ttf-wqy-microhei{a}
  101.   unixodbc{a}
  102. 0 个软件包被升级,新安装 8 个, 0 个将被删除, 同时 0 个将不升级。
  103. 需要获取 16.2 MB 的存档。 解包后将要使用 40.4 MB。
  104. 您要继续吗?[Y/n/?] Y
  105. 读取: 1 http://cn.archive.ubuntu.com/ubuntu/ trusty/main fonts-unfonts-core all 1.0.3.is.1.0.2-080608-10ubuntu1 [14.4 MB]
  106. 读取: 2 http://cn.archive.ubuntu.com/ubuntu/ trusty/main odbcinst amd64 2.2.14p2-5ubuntu5 [12.6 kB]
  107. 读取: 3 http://cn.archive.ubuntu.com/ubuntu/ trusty/main odbcinst1debian2 amd64 2.2.14p2-5ubuntu5 [40.6 kB]
  108. 读取: 4 http://cn.archive.ubuntu.com/ubuntu/ trusty/universe ocl-icd-libopencl1 amd64 2.1.3-4 [28.1 kB]
  109. 读取: 5 http://cn.archive.ubuntu.com/ubuntu/ trusty/main binfmt-support amd64 2.1.4-1 [49.0 kB]
  110. 读取: 6 http://cn.archive.ubuntu.com/ubuntu/ trusty/main fonts-wqy-microhei all 0.2.0-beta-2 [1,607 kB]
  111. 读取: 7 http://cn.archive.ubuntu.com/ubuntu/ trusty/main ttf-wqy-microhei all 0.2.0-beta-2 [2,566 B]
  112. 读取: 8 http://cn.archive.ubuntu.com/ubuntu/ trusty/main unixodbc amd64 2.2.14p2-5ubuntu5 [19.8 kB]
  113. 已下载 16.2 MB,耗时 25秒 (634 kB/s)                                           
  114. Selecting previously unselected package fonts-unfonts-core.
  115. (正在读取数据库 ... 系统当前共安装有 214584 个文件和目录。)
  116. Preparing to unpack .../fonts-unfonts-core_1.0.3.is.1.0.2-080608-10ubuntu1_all.deb ...
  117. Unpacking fonts-unfonts-core (1.0.3.is.1.0.2-080608-10ubuntu1) ...
  118. Selecting previously unselected package odbcinst.
  119. Preparing to unpack .../odbcinst_2.2.14p2-5ubuntu5_amd64.deb ...
  120. Unpacking odbcinst (2.2.14p2-5ubuntu5) ...
  121. Selecting previously unselected package odbcinst1debian2:amd64.
  122. Preparing to unpack .../odbcinst1debian2_2.2.14p2-5ubuntu5_amd64.deb ...
  123. Unpacking odbcinst1debian2:amd64 (2.2.14p2-5ubuntu5) ...
  124. Selecting previously unselected package ocl-icd-libopencl1:amd64.
  125. Preparing to unpack .../ocl-icd-libopencl1_2.1.3-4_amd64.deb ...
  126. Unpacking ocl-icd-libopencl1:amd64 (2.1.3-4) ...
  127. Selecting previously unselected package binfmt-support.
  128. Preparing to unpack .../binfmt-support_2.1.4-1_amd64.deb ...
  129. Unpacking binfmt-support (2.1.4-1) ...
  130. Selecting previously unselected package fonts-wqy-microhei.
  131. Preparing to unpack .../fonts-wqy-microhei_0.2.0-beta-2_all.deb ...
  132. Unpacking fonts-wqy-microhei (0.2.0-beta-2) ...
  133. Selecting previously unselected package ttf-wqy-microhei.
  134. Preparing to unpack .../ttf-wqy-microhei_0.2.0-beta-2_all.deb ...
  135. Unpacking ttf-wqy-microhei (0.2.0-beta-2) ...
  136. Selecting previously unselected package unixodbc.
  137. Preparing to unpack .../unixodbc_2.2.14p2-5ubuntu5_amd64.deb ...
  138. Unpacking unixodbc (2.2.14p2-5ubuntu5) ...
  139. Processing triggers for fontconfig (2.11.0-0ubuntu4.1) ...
  140. Processing triggers for man-db (2.6.7.1-1) ...
  141. Processing triggers for doc-base (0.10.5) ...
  142. Processing 1 added doc-base file...
  143. Registering documents with scrollkeeper...
  144. Processing triggers for ureadahead (0.100.0-16) ...
  145. ureadahead will be reprofiled on next reboot
  146. 正在设置 fonts-unfonts-core (1.0.3.is.1.0.2-080608-10ubuntu1) ...
  147. 正在设置 ocl-icd-libopencl1:amd64 (2.1.3-4) ...
  148. 正在设置 binfmt-support (2.1.4-1) ...
  149. binfmt-support start/running
  150. 正在设置 fonts-wqy-microhei (0.2.0-beta-2) ...
  151. 正在设置 ttf-wqy-microhei (0.2.0-beta-2) ...
  152. 正在设置 odbcinst (2.2.14p2-5ubuntu5) ...
  153. 正在设置 odbcinst1debian2:amd64 (2.2.14p2-5ubuntu5) ...
  154. 正在设置 unixodbc (2.2.14p2-5ubuntu5) ...
  155. Processing triggers for libc-bin (2.19-0ubuntu6) ...
  156. Processing triggers for ureadahead (0.100.0-16) ...
  157.                                 
  158. senrsl@senrsl-ubuntu:~$ wine
  159. 未找到 'wine' 命令,您要输入的是否是:
  160.  命令 'xine' 来自于包 'xine-ui' (universe)
  161.  命令 'line' 来自于包 'util-linux' (main)
  162.  命令 'win' 来自于包 'wily' (universe)
  163.  命令 'wipe' 来自于包 'wipe' (universe)
  164.  命令 'wing' 来自于包 'wing' (universe)
  165. wine:未找到命令

折腾老半天,新立德,aptitude之类的各种尝试,一直是已损坏依赖

然后就在google搜老半天,找到了www.sysads.co.uk/2014/07/install-wine-1-7-22- ubuntu-14-04/,他提供了两套方案:
  1. Method 1: Install via PPA
  2. sudo add-apt-repository ppa:ubuntu-wine/ppa
  3. sudo apt-get update
  4. sudo apt-get install wine1.7

  5. Method 2: Compile from source
  6. sudo apt-get install flex bison qt4-qmake xorg-dev
  7. wget http://prdownloads.sourceforge.net/wine/wine-1.7.22.tar.bz2 tar -xjvf wine-1.7.22.tar.bz2 cd wine-1.7.22


  8. 32-bit OS
  9. ./configure
  10. make
  11. sudo make install
  12. ./wine --version

  13. 64-bit OS
  14. ./configure --enable-win64
  15. make
  16. sudo make install
  17. ./wine64 --version
之前第一套方案已经试遍了,不行,然后第二套方案,wget sourcefoget,已经被封的下载速度一直几K。。。。

然后到github上,搜到了这个github.com/wine-mirror/wine
然后把他下载下来,按他说的折腾。

提他里面提供了64位怎么弄(wiki.winehq.org/Wine64),其实就跟上面一样的。

依次行之
  1. senrsl@senrsl-ubuntu:~/tools/wine-master$ cd tools/wine-master/
  2. senrsl@senrsl-ubuntu:~/tools/wine-master$ ./configure --enable-win64
  3. senrsl@senrsl-ubuntu:~/tools/wine-master$ make
  4. senrsl@senrsl-ubuntu:~/tools/wine-master$ sudo make install
  5. senrsl@senrsl-ubuntu:~/tools/wine-master$ ./wine64 --version
  6. wine-1.7.41
这里面make要等好久啊,不过 make install 很快。

然后启动一个
  1. senrsl@senrsl-ubuntu:~/tools/wine-master$ ./wine64 ~/share/putty.exe


这地方要点安装,要不然之后再启动别的就启动不起来,如果点了取消,就把~/.wine文件夹删了,他又会弹出来。
然后下载


2015年04月27日21:19:11
就让他慢慢下吧。。。。。
第二天来了发现卡这了2015年04月28日10:13:10
  1. senrsl@senrsl-ubuntu:~/tools/wine-master$ ./wine64 ~/share/putty.exe
  2. wine: created the configuration directory '/home/senrsl/.wine'
  3. fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20
  4. fixme:wininet:set_cookie Unknown additional option L"Max-Age=315360000; Path=/"
  5. fixme:wininet:set_cookie Unknown additional option L"Max-Age=315360000; Path=/"
  6. fixme:wininet:set_cookie Unknown additional option L"Max-Age=315360000; Path=/"
  7. err:process:__wine_kernel_init boot event wait timed out
  8. senrsl@senrsl-ubuntu:~/tools/wine-master$ fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20
  9. fixme:wininet:set_cookie Unknown additional option L"Max-Age=315360000; Path=/"
  10. fixme:wininet:set_cookie Unknown additional option L"Max-Age=315360000; Path=/"
  11. fixme:wininet:set_cookie Unknown additional option L"Max-Age=315360000; Path=/"
  12. fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
  13. err:mscoree:LoadLibraryShim error reading registry key for installroot
  14. err:mscoree:LoadLibraryShim error reading registry key for installroot
  15. err:mscoree:LoadLibraryShim error reading registry key for installroot
  16. err:mscoree:LoadLibraryShim error reading registry key for installroot
  17. err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
  18. fixme:dwmapi:DwmIsCompositionEnabled 0x6d1e8a90
  19. fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x69e5e647, context 0x7a13c0, init_notify 0, handle 0x102e1c0): stub
  20. fixme:iphlpapi:CancelMibChangeNotify2 (handle (nil)): stub
  21. wine: configuration in '/home/senrsl/.wine' has been updated.
然后删了那个.wine,在重新执行一下
  1. senrsl@senrsl-ubuntu:~/tools/wine-master$ ./wine64 ~/share/mingw-get-setup.exe
  2. wine: created the configuration directory '/home/senrsl/.wine'
  3. fixme:urlmon:InternetBindInfo_GetBindString not supported string type 20
  4. fixme:wininet:set_cookie Unknown additional option L"Max-Age=315360000; Path=/"
  5. fixme:wininet:set_cookie Unknown additional option L"Max-Age=315360000; Path=/"
  6. fixme:wininet:set_cookie Unknown additional option L"Max-Age=315360000; Path=/"
  7. fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
  8. err:mscoree:LoadLibraryShim error reading registry key for installroot
  9. err:mscoree:LoadLibraryShim error reading registry key for installroot
  10. err:mscoree:LoadLibraryShim error reading registry key for installroot
  11. err:mscoree:LoadLibraryShim error reading registry key for installroot
  12. fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
  13. err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
  14. fixme:dwmapi:DwmIsCompositionEnabled 0x6d1e8a90
  15. fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x69e5e647, context 0x7a13c0, init_notify 0, handle 0x102e1c0): stub
  16. fixme:iphlpapi:CancelMibChangeNotify2 (handle (nil)): stub
  17. wine: configuration in '/home/senrsl/.wine' has been updated.
  18. senrsl@senrsl-ubuntu:~/tools/wine-master$ ./wine64 ~/share/mingw-get-setup.exe
  19. senrsl@senrsl-ubuntu:~/tools/wine-master$ ./wine64 ~/share/mingw-get-setup.exe
  20. senrsl@senrsl-ubuntu:~/tools/wine-master$ ./wine64 ~/share/mingw-get-setup.exe
  21. wine: created the configuration directory '/home/senrsl/.wine'
  22. fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
  23. err:mscoree:LoadLibraryShim error reading registry key for installroot
  24. err:mscoree:LoadLibraryShim error reading registry key for installroot
  25. err:mscoree:LoadLibraryShim error reading registry key for installroot
  26. err:mscoree:LoadLibraryShim error reading registry key for installroot
  27. fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
  28. err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
  29. fixme:dwmapi:DwmIsCompositionEnabled 0x6d1e8a90
  30. fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x69e5e647, context 0x7a13c0, init_notify 0, handle 0x102e1c0): stub
  31. fixme:iphlpapi:CancelMibChangeNotify2 (handle (nil)): stub
  32. wine: configuration in '/home/senrsl/.wine' has been updated.
  33. senrsl@senrsl-ubuntu:~/tools/wine-master$
看.wine的目录,运行内置的程序
  1. senrsl@senrsl-ubuntu:~/tools/wine-master$ ./wine64 /home/senrsl/.wine/drive_c/windows/notepad.exe
发现内置的可以启动


发现一下命令行,这是已经注册了
  1. senrsl@senrsl-ubuntu:~$ wine
  2. wine64            wineconsole       wineg++           wineserver
  3. wine64-preloader  winecpp           winegcc           winetricks
  4. wineboot          winedbg           winemaker        
  5. winebuild         winedump          winemine         
  6. winecfg           winefile          winepath      

这看来是一个问题
  1. senrsl@senrsl-ubuntu:~/下载$ wine64 Si3576Setup.exe
  2. err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
  3. fixme:dwmapi:DwmIsCompositionEnabled 0x6d1e8a90
  4. fixme:iphlpapi:NotifyIpInterfaceChange (family 0, callback 0x69e5e647, context 0x7a1390, init_notify 0, handle 0x102e1c0): stub
  5. fixme:iphlpapi:CancelMibChangeNotify2 (handle (nil)): stub
  6. wine: configuration in '/home/senrsl/.wine' has been updated.
卸掉所有跟wine相关,重启机器。2015年04月28日12:29:05

然后重新折腾,本想安x32的,发现安的时候就一堆库找不到,好吧,重新弄x64.

wine make install后,要先执行winecfg,执行的使用会找不到wine,因为x64叫wine64,就给他挂个链接
  1. senrsl@senrsl-ubuntu:~/tools/wine-master$ winecfg
  2. /usr/local/bin/winecfg: 52: exec: wine: not found
  3. senrsl@senrsl-ubuntu:~/tools/wine-master$ ln -s /usr/local/bin/wine64 /usr/local/bin/wine
  4. ln: 无法创建符号链接"/usr/local/bin/wine": 权限不够
  5. senrsl@senrsl-ubuntu:~/tools/wine-master$ sudo ln -s /usr/local/bin/wine64 /usr/local/bin/wine
  6. senrsl@senrsl-ubuntu:~/tools/wine-master$ winecfg
这样就启动起来wine的配置界面了。。。。。。。。。

终于有点希望了



然后安装winetricks.
  1. senrsl@senrsl-ubuntu:~/下载$ wget http://kegel.com/wine/winetricks 
  2. --2015-04-28 13:56:12--  http://kegel.com/wine/winetricks
  3. 正在解析主机 kegel.com (kegel.com)... 216.92.86.126
  4. 正在连接 kegel.com (kegel.com)|216.92.86.126|:80... 已连接。
  5. 已发出 HTTP 请求,正在等待回应... 200 OK
  6. 长度: 643780 (629K) [text/plain]
  7. 正在保存至: "winetricks"
  8. 100%[======================================>] 643,780      238KB/s   用时 2.6s
  9. 2015-04-28 13:56:16 (238 KB/s) - 已保存 "winetricks" [643780/643780])
  10. senrsl@senrsl-ubuntu:~/下载$ chmod +x winetricks
  11. senrsl@senrsl-ubuntu:~/下载$ sudo cp winetricks /usr/local/bin
  12. [sudo] password for senrsl:
  13. senrsl@senrsl-ubuntu:~/下载$ winetricks dotnet20
  14. ------------------------------------------------------
  15. You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
  16. ------------------------------------------------------
  17. Executing w_do_call dotnet20
  18. Executing load_dotnet20
  19. Executing mkdir -p /home/senrsl/.cache/winetricks/dotnet20
  20. Downloading http://download.lenovo.com/ibmdl/pub/pc/pccbbs/thinkvantage_en/dotnetfx.exe to /home/senrsl/.cache/winetricks/dotnet20
  21. --2015-04-28 13:58:13--  http://download.lenovo.com/ibmdl/pub/pc/pccbbs/thinkvantage_en/dotnetfx.exe
  22. 正在解析主机 download.lenovo.com (download.lenovo.com)... 69.192.12.110
  23. 正在连接 download.lenovo.com (download.lenovo.com)|69.192.12.110|:80... 已连接。
  24. 已发出 HTTP 请求,正在等待回应... 200 OK
  25. 长度: 23510720 (22M) [application/octet-stream]
  26. 正在保存至: "dotnetfx.exe"
  27. 100%[======================================>] 23,510,720   593KB/s   用时 38s 
  28. 2015-04-28 13:58:51 (608 KB/s) - 已保存 "dotnetfx.exe" [23510720/23510720])
  29. Executing w_do_call remove_mono
  30. Executing load_remove_mono
  31. fixme:service:scmdatabase_autostart_services Auto-start service L"MountMgr" failed to start: 2
  32. fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
  33. Executing w_do_call fontfix
  34. Executing load_fontfix
  35. Setting Windows version to win2k
  36. Executing winetricks_early_wine regedit C:\windows\Temp\_dotnet20\set-winver.reg
  37. ------------------------------------------------------
  38. Working around wine bug 34803
  39. ------------------------------------------------------
  40. DELETE - HKLM\Software\Microsoft\.NETFramework\v2.0.50727\SBSDisabled (null) 0 0 0
  41. 错误:系统无法找到指定的注册表键或值
  42. Current wine does not have wine bug 30845, so not applying workaround
  43. Executing wine dotnetfx.exe
  44. wine: Bad EXE format for Y:\dotnet20\dotnetfx.exe.
  45. ------------------------------------------------------
  46. Note: command 'wine dotnetfx.exe' returned status 193.  Aborting.
  47. ------------------------------------------------------
驱动器不显示




注册表
senrsl@senrsl-ubuntu:~$ regedit





winetricks竟然有窗口


用这个安个应用,弹出的提示
  1. Would you like to help winetricks development by letting winetricks report statistics?  You can turn reporting off at any time with the command 'winetricks --optout'
  2. OK, winetricks will *not* report statistics.  You won't be asked this question again
  3. You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
  4. Working around wine bug 29636 -- Installing native riched20 to work around crash bug
  5. Working around wine bug 34567 -- Installing vcrun2005 to avoid installer crash
  6. Note: command 'wine vcredist_x86.EXE' returned status 193. Aborting.
终端记录
  1. senrsl@senrsl-ubuntu:~$ winetricks
  2. ------------------------------------------------------
  3. You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
  4. ------------------------------------------------------
  5. Executing w_do_call qq2012
  6. ------------------------------------------------------
  7. You are using a 64-bit WINEPREFIX. If you encounter problems, please retest in a clean 32-bit WINEPREFIX before reporting a bug.
  8. ------------------------------------------------------
  9. Executing load_qq2012
  10. Executing mkdir -p /home/senrsl/.cache/winetricks/qq2012
  11. Downloading http://dl_dir.qq.com/qqfile/qq/QQ2012/QQ2012.exe to /home/senrsl/.cache/winetricks/qq2012
  12. ------------------------------------------------------
  13. Working around wine bug 29636 -- Installing native riched20 to work around crash bug
  14. ------------------------------------------------------
  15. Executing w_do_call riched20
  16. Executing load_riched20
  17. Executing mkdir -p /home/senrsl/.cache/winetricks/win2ksp4
  18. Downloading http://download.microsoft.com/download/E/6/A/E6A04295-D2A8-40D0-A0C5-241BFECD095E/W2KSP4_EN.EXE to /home/senrsl/.cache/winetricks/win2ksp4
  19. Executing cabextract -q -d /home/senrsl/.local/share/wineprefixes/qq2012/dosdevices/c:/windows/temp/_riched20 -L -F i386/riched20.dl_ /home/senrsl/.cache/winetricks/win2ksp4/W2KSP4_EN.EXE
  20. Executing cabextract -q --directory=/home/senrsl/.local/share/wineprefixes/qq2012/dosdevices/c:/windows/syswow64/home/senrsl/.local/share/wineprefixes/qq2012/dosdevices/c:/windows/temp/_riched20/i386/riched20.dl_
  21. Using native,builtin override for following DLLs: riched20
  22. Executing winetricks_early_wine regedit C:\windows\Temp\_riched20\override-dll.reg
  23. Executing w_do_call msls31
  24. Executing load_msls31
  25. Executing mkdir -p /home/senrsl/.cache/winetricks/msls31
  26. Downloading http://download.microsoft.com/download/WindowsInstaller/Install/2.0/NT45/EN-US/InstMsiW.exe to /home/senrsl/.cache/winetricks/msls31
  27. Executing cabextract -q --directory=/home/senrsl/.local/share/wineprefixes/qq2012/dosdevices/c:/windows/temp/_msls31 /home/senrsl/.cache/winetricks/msls31/InstMsiW.exe
  28. Executing cp -f /home/senrsl/.local/share/wineprefixes/qq2012/dosdevices/c:/windows/temp/_msls31/msls31.dll/home/senrsl/.local/share/wineprefixes/qq2012/dosdevices/c:/windows/syswow64
  29. ------------------------------------------------------
  30. Working around wine bug 34567 -- Installing vcrun2005 to avoid installer crash
  31. ------------------------------------------------------
  32. Executing w_do_call vcrun2005
  33. Executing load_vcrun2005
  34. Executing mkdir -p /home/senrsl/.cache/winetricks/vcrun2005
  35. Downloading http://download.microsoft.com/download/8/B/4/8B42259F-5D70-43F4-AC2E-4B208FD8D66A/vcredist_x86.EXE to /home/senrsl/.cache/winetricks/vcrun2005
  36. Using native,builtin override for following DLLs: atl80 msvcm80 msvcp80 msvcr80 vcomp
  37. Executing winetricks_early_wine regedit C:\windows\Temp\_vcrun2005\override-dll.reg
  38. Executing wine vcredist_x86.EXE
  39. wine: Bad EXE format for Y:\vcrun2005\vcredist_x86.EXE.
  40. ------------------------------------------------------
  41. Note: command 'wine vcredist_x86.EXE' returned status 193.  Aborting.
  42. ------------------------------------------------------
  43. senrsl@senrsl-ubuntu:~$
还是这个问题

修改注册表
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontSubstitutes下面

上面俩MS,改,下面一个,加。


折腾折腾折腾。。。。。
心累。。。。。。。。。。。不搞了


使用第二套方案,虚拟机里安SI,然后ubuntu的源码映射过去看。。。。。
2015年04月28日15:18:42



Source Insight
安装source insight3.5,下载www.sourceinsight.com/distribute/Si3576Setup.exe,
然后,安上,然后SI3US-361500-17409,然后各种英文

然后汉化,下个3.5的汉化包,直接替换掉。



心累,心碎,wine,╮(╯▽╰)╭

虚拟机乱入
共享文件夹加上源码目录

效果是这样的


然后配置SourceInsight

菜单第四个项目--新项目,选择目录。

确定,然后

下一页,点击添加树


关闭这个窗口,就自动加进去了

乱码

源码是UTF-8的。

下载支持UTF-8的插件放到根目录,再打开就OK了。


中文中间有好大空格,这么搞
选项--参数--语法格式--风格--Comment--宋体,大小10,即时预览


目录结构
视图--项目窗口
第二个项目文件浏览器,就是目录结构


看起来不错



vim
然后,在ubuntu搭一个,使用vim

安装ctags
  1. senrsl@senrsl-ubuntu:~$ sudo apt-get install ctags
  2. 正在读取软件包列表... 完成
  3. 正在分析软件包的依赖关系树      
  4. 正在读取状态信息... 完成      
  5. 注意,选取 exuberant-ctags 而非 ctags
  6. 建议安装的软件包:
  7.   vim nvi elvis vile emacsen
  8. 下列【新】软件包将被安装:
  9.   exuberant-ctags
  10. 升级了 0 个软件包,新安装了 1 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
  11. 需要下载 120 kB 的软件包。
  12. 解压缩后会消耗掉 334 kB 的额外空间。
  13. 获取:1 http://cn.archive.ubuntu.com/ubuntu/ trusty/main exuberant-ctags amd64 1:5.9~svn20110310-7 [120 kB]
  14. 下载 120 kB,耗时 0秒 (940 kB/s)       
  15. Selecting previously unselected package exuberant-ctags.
  16. (正在读取数据库 ... 系统当前共安装有 213533 个文件和目录。)
  17. Preparing to unpack .../exuberant-ctags_1%3a5.9~svn20110310-7_amd64.deb ...
  18. Unpacking exuberant-ctags (1:5.9~svn20110310-7) ...
  19. Processing triggers for man-db (2.6.7.1-1) ...
  20. 正在设置 exuberant-ctags (1:5.9~svn20110310-7) ...
  21. update-alternatives: using /usr/bin/ctags-exuberant to provide /usr/bin/ctags (ctags) in 自动模式
  22. update-alternatives: using /usr/bin/ctags-exuberant to provide /usr/bin/etags (etags) in 自动模式
  23. senrsl@senrsl-ubuntu:~$ ctags
  24. ctags: No files specified. Try "ctags --help".
  25. senrsl@senrsl-ubuntu:~$ ctags --help
  26. Exuberant Ctags 5.9~svn20110310, Copyright (C) 1996-2009 Darren Hiebert
  27.   Compiled: Feb 17 2014, 15:22:03
  28.   Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
  29.   Optional compiled features: +wildcards, +regex
  30. Usage: ctags [options] [file(s)]
  31.   -a   Append the tags to an existing tag file.
  32.   -B   Use backward searching patterns (?...?).
  33.   -e   Output tag file for use with Emacs.
  34.   -f <name>
  35.        Write tags to specified file. Value of "-" writes tags to stdout
  36.        ["tags"; or "TAGS" when -e supplied].
  37.   -F   Use forward searching patterns (/.../) (default).
  38.   -h <list>
  39.        Specify list of file extensions to be treated as include files.
  40.        [".h.H.hh.hpp.hxx.h++"].
  41.   -I <list|@file>
  42.        A list of tokens to be specially handled is read from either the
  43.        command line or the specified file.
  44.   -L <file>
  45.        A list of source file names are read from the specified file.
  46.        If specified as "-", then standard input is read.
  47.   -n   Equivalent to --excmd=number.
  48.   -N   Equivalent to --excmd=pattern.
  49.   -o   Alternative for -f.
  50.   -R   Equivalent to --recurse.
  51.   -u   Equivalent to --sort=no.
  52.   -V   Equivalent to --verbose.
  53.   -x   Print a tabular cross reference file to standard output.
  54.   --append=[yes|no]
  55.        Should tags should be appended to existing tag file [no]?
  56.   --etags-include=file
  57.       Include reference to 'file' in Emacs-style tag file (requires -e).
  58.   --exclude=pattern
  59.       Exclude files and directories matching 'pattern'.
  60.   --excmd=number|pattern|mix
  61.        Uses the specified type of EX command to locate tags [mix].
  62.   --extra=[+|-]flags
  63.       Include extra tag entries for selected information (flags: "fq").
  64.   --fields=[+|-]flags
  65.       Include selected extension fields (flags: "afmikKlnsStz") [fks].
  66.   --file-scope=[yes|no]
  67.        Should tags scoped only for a single file (e.g. "static" tags
  68.        be included in the output [yes]?
  69.   --filter=[yes|no]
  70.        Behave as a filter, reading file names from standard input and
  71.        writing tags to standard output [no].
  72.   --filter-terminator=string
  73.        Specify string to print to stdout following the tags for each file
  74.        parsed when --filter is enabled.
  75.   --format=level
  76.        Force output of specified tag file format [2].
  77.   --help
  78.        Print this option summary.
  79.   --if0=[yes|no]
  80.        Should C code within #if 0 conditional branches be parsed [no]?
  81.   --<LANG>-kinds=[+|-]kinds
  82.        Enable/disable tag kinds for language <LANG>.
  83.   --langdef=name
  84.        Define a new language to be parsed with regular expressions.
  85.   --langmap=map(s)
  86.        Override default mapping of language to source file extension.
  87.   --language-force=language
  88.        Force all files to be interpreted using specified language.
  89.   --languages=[+|-]list
  90.        Restrict files scanned for tags to those mapped to langauges
  91.        specified in the comma-separated 'list'. The list can contain any
  92.        built-in or user-defined language [all].
  93.   --license
  94.        Print details of software license.
  95.   --line-directives=[yes|no]
  96.        Should #line directives be processed [no]?
  97.   --links=[yes|no]
  98.        Indicate whether symbolic links should be followed [yes].
  99.   --list-kinds=[language|all]
  100.        Output a list of all tag kinds for specified language or all.
  101.   --list-languages
  102.        Output list of supported languages.
  103.   --list-maps=[language|all]
  104.        Output list of language mappings.
  105.   --options=file
  106.        Specify file from which command line options should be read.
  107.   --recurse=[yes|no]
  108.        Recurse into directories supplied on command line [no].
  109.   --regex-<LANG>=/line_pattern/name_pattern/[flags]
  110.        Define regular expression for locating tags in specific language.
  111.   --sort=[yes|no|foldcase]
  112.        Should tags be sorted (optionally ignoring case) [yes]?.
  113.   --tag-relative=[yes|no]
  114.        Should paths be relative to location of tag file [no; yes when -e]?
  115.   --totals=[yes|no]
  116.        Print statistics about source and tag files [no].
  117.   --verbose=[yes|no]
  118.        Enable verbose messages describing actions on each source file.
  119.   --version
  120.        Print version identifier to standard output.
  121. senrsl@senrsl-ubuntu:~$ ctags --version
  122. Exuberant Ctags 5.9~svn20110310, Copyright (C) 1996-2009 Darren Hiebert
  123.   Compiled: Feb 17 2014, 15:22:03
  124.   Addresses: <dhiebert@users.sourceforge.net>, http://ctags.sourceforge.net
  125.   Optional compiled features: +wildcards, +regex
  126. senrsl@senrsl-ubuntu:~$
哎,好麻烦好麻烦,不搞了,还是虚拟机引用着吧。。。。
安装taglist

不弄了。。。。。


就这样吧,试试eclipse。。。。2015年04月28日18:42:22

--
senRsl
2015年04月27日17:06:16

没有评论 :

发表评论