从虚拟机中的共享文件夹编译应用程序
我目前在 VMware Workstation 上设置了许多 Linux 虚拟机,有一些共享文件夹包含主机上保存的源代码。我遇到的问题是,每当我尝试使用任何编译器编译文件时,我都会收到非法查找错误并且文件无法识别。有什么办法解决这个问题吗?我使用的是 Ubuntu 64 位虚拟机,Windows 7 作为主机,共享文件的位置位于 Windows 7 硬盘上。
I currently have many Linux VM's set up on VMware Workstation, there are some shared folders that contain source code that is held on the host computer. The issue I am having is that whenever I try to compile a file by using any compiler I get an Illegal seek error and file not recognized. Is there any way around this? I am using an Ubuntu 64-bit VM with Windows 7 as the host and the location of the shared files are on the Windows 7 hard drive.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我过去在通过网络共享进行开发时遇到了许多问题,并建议不要通过 SMB 共享文件,如果您从源代码控制系统签入/签出文件(或者简单地),您会发现更幸运复制它们),这样它们就位于来宾和主机上的“本地”驱动器上。
I've run into a number of problems doing development over a network share in the past and suggest rather than sharing the files via SMB, you'll find more luck if you check in/out the files from a source control system (or simply copy them) so they're on a "local" drive on both the guest and host.