Hi.

On 4. 11. 2014 16:00, Greg Jung wrote:
> Hi all, I've been setting msys2 up and pondering its usage for mingw builds.  
> The two handles I'm 
> having trouble with now are the mount procedure and possible links. 
>  The idea that msys2 is somewhat congruent with the cygwin64 shell led me to 
> experiment with making /mingw64 a symbolic link
> to a winbuilds64 distribution.  This almost worked but stopped so that 
> "/mingw64" included bin, lib, include, and only a small portion of
> lib64.

Symbolic links are by default disabled in MSYS2 and "ln -s" falls back to 
simply copying the directory. You can either use mklink to create the symlink 
(or a junction point -- a different kind of symlink), or you can edit your 
msys2_shell.bat to enable "ln -s" to create them. Note that native symlinks 
(but not junctions) by default require you to be logged in with administrative 
privileges to create them.

> Next I tried renaming, with the msys2 shell, the winbuilds64/ directory into 
> "/mingw64";  it appears there in Explorer but Msys2
> will have nothing to do with it:

> [...]

> $ mv mingw64 /d/programs/winbuilds64
> mv: cannot stat ‘mingw64’: No such file or directory

The arguments to "mv" should be <source> <target>, not the other way around (as 
opposed to "ln -s <target> <link>"). Maybe there's another problem -- if so, 
try running "dir" in a cmd shell in MSYS2 installation directory to see what 
Windows thinks is there.

> [...]

Maybe it would be best to delete your MSYS2 installation and start over.

>  I use symlinks in cygwin64 to designate the windows drives /c/, /d/, /e/ (I 
> don't know yet how to get them mounted without a /cygdrive)
> so it wasn't too much of a stretch to believe it might be possible in msys2.

Windows drives are virtual-mounted on /c/, /d/, ... by default on MSYS2, no 
need to change anything.

Also, if you want to add mounts to fstab, try a line like this (notice the 
difference in the fourth column):

c:/your/real/path /your/mount/point ntfs binary 0 0

I'm not sure if these mount parameters are better or not, but they work for me.

> [...]

-- 
David Macek

------------------------------------------------------------------------------
_______________________________________________
Msys2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/msys2-users

Reply via email to