Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default installation path to /usr/bin or /usr/local/bin path #73

Open
nitrocode opened this issue Aug 14, 2020 · 1 comment
Open

Comments

@nitrocode
Copy link

nitrocode commented Aug 14, 2020

Hi @kou1okada . Thank you so much for continuing to support this great tool.

I wrote ScoopInstaller/Main#1331 because I was having issues with my path installation of packages. I've been using Cygwin using scoop and your tool and noticed that my packages were not installing to /usr/bin and instead were installing to /cygdrive/c/Users/user/scoop/persist/cygwin/root/usr/bin/.

Is there a way to set a default install path for apt-cyg ? Could there be a misconfiguration in the ScoopInstaller/Main's cygwin.json that is causing packages to be installed in that directory vs /usr/bin ?

Thanks

@kou1okada
Copy link
Owner

Cygwin mounts the installation path to /.
So you don't need to mind the installation path of cygwin and apt-cyg.

Check the result of mount command.
For example:

$ mount
C:/cygwin64/bin on /usr/bin type ntfs (binary,auto)
C:/cygwin64/lib on /usr/lib type ntfs (binary,auto)
C:/cygwin64 on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)

It is the result under the C:\cygwin64\bash.exe --login -i.
If you try it under the C:\Users\user\scoop\persist\cygwin\root\usr\bin\bash.exe --login -i, your result may:

C:/Users/user/scoop/persist/cygwin/root/bin on /usr/bin type ntfs (binary,auto)
C:/Users/user/scoop/persist/cygwin/root/lib on /usr/lib type ntfs (binary,auto)
C:/Users/user/scoop/persist/cygwin/root on / type ntfs (binary,auto)
C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)

If you can't manipulate packages of cygwin which installed to /cygdrive/c/Users/user/scoop/persist/cygwin/root/ with apt-cyg, maybe you don't run C:\Users\user\scoop\persist\cygwin\root\bin\bash.exe but C:\cygwin64\bin\bash.exe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants