在 msys2 內輸入以下指令後
cpan install Switch
cpan install UNIVERSAL::isa
卻沒有正確安裝完成
這時候在 C:\msys64\usr\share\perl5 底下建立一個 site_perl 資料夾
並且到 C:\Users\USER\.cpan\build 底下找到 這次打算安裝的模組
例如 Switch 就在 C:\Users\USER\.cpan\build\Switch-2.17-3tYKvF 底下的 Switch.pm
UNIVERSAL::isa 就在 C:\Users\USER\.cpan\build\UNIVERSAL-isa-1.20150614-_RCQTf 底下的 lib 資料夾內
將這些檔案與資料夾複製到 C:\msys64\usr\share\perl5\site_perl 就可以解決
2017-07-10
2016-03-19
MSYS2 整合筆記 (待補充)
安裝順序(要按照以下順序才能正常運作)
以下假設 msys2 安裝於 C:\msys64\
------
解決方法
將 C:\msys64\usr\bin 裡的 winpty 相關檔案 更名 或者 刪除
然後重新 pacman -S winpty-git 即可解決
解法2: pacman -S --force 組件名
以下假設 msys2 安裝於 C:\msys64\
- msys2 https://msys2.github.io/
- Git for Windows https://git-for-windows.github.io/
安裝時 請將安裝資料夾選擇於 msys2 資料夾
日後千萬別用 pacman 更新 git - ActivePerl http://www.activestate.com/activeperl
安裝於 C:\msys64\usr - Node.js https://nodejs.org/en/
安裝於 C:\msys64\mingw64\bin
輸入 npm config --global set prefix "C:\msys64\mingw64\bin"
Set NODE environment variable as C:\msys64\mingw64\bin
Set NODE_PATH environment variable as C:\msys64\mingw64\bin\node_modules
檢查以下位置的 npmrc
C:\msys64\mingw64\bin\node_modules\npm\npmrc
C:\msys64\mingw64\bin\etc\npmrc
C:\msys64\mingw64\etc\npmrc
C:\msys64\etc\npmrc
%USERPROFILE%\.npmrc
------
狀況處理
使用 pacman 安裝組件時 遇到 winpty 衝突錯誤
error: failed to commit transaction (conflicting files)
winpty-git: /usr/bin/winpty-agent.exe exists in filesystem
winpty-git: /usr/bin/winpty-debugserver.exe exists in filesystem
winpty-git: /usr/bin/winpty.dll exists in filesystem
winpty-git: /usr/bin/winpty.exe exists in filesystem
Errors occurred, no packages were upgraded.
解決方法
將 C:\msys64\usr\bin 裡的 winpty 相關檔案 更名 或者 刪除
然後重新 pacman -S winpty-git 即可解決
解法2: pacman -S --force 組件名
2013-03-30
[Portable] Perl
- Strawberry Perl http://strawberryperl.com/
- Perl Portable Development Test 1 http://portableapps.com/node/22980
Strawberry Perl is a perl environment for MS Windows containing all you need to run and develop perl applications. It is designed to be as close as possible to perl environment on UNIX systems.
It includes perl binaries, compiler (gcc) + related tools, all the external libraries (crypto, graphics, xml ...), all the bundled database clients and all you expect from Strawberry Perl.
訂閱:
文章 (Atom)