PowerShell ãã ssh çµç±ã§ Linux ã«å ¥ã£ã¦ä»»æã®ã³ãã³ããå®è¡ããã
ãããå¯è½ã«ããããã«ãsshãã©ããããã¢ã¸ã¥ã¼ã«ã以åæ¸ãã¾ããã
ãããå©ç¨ãããã¨ã§ sshã§Linux ãµã¼ãã¼ã«ãã°ã¤ã³ããæéãããããã¨ãªããã½ã¡ã£ã¨Linuxä¸ã®Capisranoãå®è¡ãããã¨ãèªç±ã«ã§ãã¾ãã
è£ã§ã¯ PowerShellããsshå®è¡ãã¦ã³ãã³ããçºè¡ãã¦ããããã§ãããä»åsshèªä½ãã§ããªããªãåé¡ã«ãã£ãã®ã§ã対å¦ããç´¹ä»ãã¾ãã
ããã«è§£æ±ºã§ãã¾ãããããã¼ã£ã¦æ©ãã ã®ã¨ãssh ã ããããªã git ã§ãèµ·ããããã®ã§ã
ã¨ã©ã¼ã¡ãã»ã¼ã¸
sshãå®è¡ããã¨ããã®ã¨ã©ã¼ã§ããã«çµäºãã¦ãã¾ãã¾ããgit.exe ãªã©ã§ãä¸ç·ã§ãã
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487 AllocationBase 0x0, BaseAddress 0x68560000, RegionSize 0x390000, State 0x10000 C:\Program Files\Git\bin\sh.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
åå
git ã ssh ãå é¨ã§ cygwin ã使ã£ã¦ããã®ã§ããããããåç §ãã msys-1.0.dll ã«åé¡ãããã¾ãã
ãã®è¾ºã¨ããåèã«ãªãã¾ãã
ä½ãèããã«ä½ã£ã¦ããã¨ãã¿ããªåãã¢ãã¬ã¹ã«ãã¼ããããã¨ãã¦ãã¢ãã¬ã¹ã®åè¨ç®ãçºçããããã·ã£ã¬ã«ãªããªããã£ã¦ãã¨ã§ããã
ãã®è¾ºã«ãè¨åãããã¾ãã
å¯ä½ç¨ãå¼ãéã¨ãªãåé¡ã®ãã¡ãä¸è¬ã«ããç¥ããã¦ããä¾ã¯ãWindows NT 4.0 ã® Service Pack 4 ã§çºçãããã®ã§ããå¤ãã®ã«ã¹ã¿ããããSP4 ãã¤ã³ã¹ãã¼ã«ããå¾ãã¢ããªã±ã¼ã·ã§ã³ã§ã¡ã¢ãªã®ã¢ã¯ã»ã¹éåãçºçããã¨ããå ±åãããã¾ãããç§ã調ã¹ãã»ã¼å ¨ã¦ã®ã±ã¼ã¹ã§ãã¯ã©ãã·ã¥ããã¢ããªã±ã¼ã·ã§ã³ã¯ãåå²ãå½ã¦ã®ãããå¼ã³åºãã«ãã£ã¦éæ¾ã¾ãã¯ç§»åãããã¡ã¢ãª ã¢ãã¬ã¹ã使ã£ã¦ãã¾ãããæ§ãã¼ã¸ã§ã³ã®ãã¼ã ããã¼ã¸ã£ã§ã¯ãããã°ã©ãã¯ã¢ã¯ã»ã¹éåãèµ·ãããã«ãããã¦ããã®ã³ã¼ãã£ã³ã°ä¸ã®ã¨ã©ã¼ãéãããã¨ãã§ãã¾ãããSP4 ã§ã¯ããã®ãã°ãããã«è¡¨é¢åãã¦ãã¾ãã®ã§ããå¯ä½ç¨ DLL Hell ã¯ãæ°ãã DLL ã®ãã°ã§ã¯ãªããDLL ã®å¯ä½ç¨(ããããä¾ã§ã¯ DLL ã®æã¤æ¢åã®ãã°)ã«ä¾åãã¦ããã¢ããªã±ã¼ã·ã§ã³ã«ãã£ã¦èµ·ããã¾ããããã¦ããã®å¯ä½ç¨ã¯ãµã¼ãã¹ããã¯ãªã©ã«ãã£ã¦è§£æ¶ãã¦ãã¾ãå¯è½æ§ããã訳ã§ãã ã¢ããªã±ã¼ã·ã§ã³ãä¾åããå¯ä½ç¨ã¯ãSP4 ã®ã¡ã¢ãª ãã°ã®ãããªã³ã¼ãã£ã³ã° ã¨ã©ã¼ã§ã¯ãªãå ´åãããã¾ããä¾ãã°ãã¯ã©ã¹ã®ãã¼ã¿ ã¡ã³ããããã¥ã¡ã³ãåããã«ä½¿ã£ã¦ããããã°ã©ãããããããã¾ããä»å¾ã®ãã¼ã¸ã§ã³ã§ã¯ããã®ã¡ã³ãããã©ã¤ãã¼ãã«ãããããããã¯å¥ã®æ§é ä½ã«ç§»åããããããã¾ããã
ãã¨ã¯ããã§ããããã
ãã¼ã¹ã¢ãã¬ã¹ãè¨å®ããã¦ããªãï¼ã¤ã®DLLãåä¸ããã»ã¹ç©ºéã«ãã¼ã ï¼ã¤ã®EXEãã¡ã¤ã«ããã¼ã¹ã¢ãã¬ã¹ãè¨å®ãã¦ããªãè¤æ°ã®DLLãå©ç¨ããå ´åï¼ ããã»ã¹(EXEãã¡ã¤ã«)ãå®è¡ãéå§ãã度ã«ãªãã±ã¼ã·ã§ã³ãå®è¡ããã¾ãï¼ ãã®ããï¼DLLã®æ°ãå¤ããã°å¤ãã»ã©ï¼èµ·åæéãé ããªããã¨ã«ãªãã¾ãï¼ ãã®ãªã¼ãããããåé¿ããã«ã¯ï¼åDLLã®ãã¼ã¹ã¢ãã¬ã¹ããããããè¡çªããªã ã¢ãã¬ã¹ã«è¨å®ãã¦ããå¿ è¦ãããã¾ãï¼
ããã¯ãmsys-1.0.dll ã®ã¢ãã¬ã¹å²ãå½ã¦åé¡ã
対å¦
ããã¤ããã¿ã¼ã³ãããã¾ãã
Stack Overflow ã§ã¯ãã®ãããªæ¹æ³ãæ示ããã¦ãã¾ãã
Windowsåèµ·å
msys-1.0.dllãå©ç¨ããã¡ã¢ãªã®ã¢ãã¬ã¹ç©ºéå²ãå½ã¦ã®åé¡ãªã®ã§ããã¾ãè¡ãå ´åã¯ãã¡ããããã¾ãããããã¡ãªå ´åã¯ãã¡ã§ãããä¸æãã®ãã§ããã©ã
msys-1.0.dll ã®å·®ãæ¿ã
ããèªåã®ç°å¢ã§ãmsys-1.0.dll
ãè¤æ°ãã£ãå ´åãå·®ãæ¿ãã¦ãã¾ãè¡ãå ´åãããã¾ããç§ã®å ´åã¯ãã¡ã§ãããã
ããã¯ããã®åé¡ãèµ·ãã£ã¦ããªã msys-1.0.dll ã«ãããããã°æ²»ã£ãããã«è¦ããã£ã¦ãã¨ã§ãããããä¸æãã®ãã
ç°å¢å¤æ°ã® pathãå¥ã®msys-1.0.dll ãåªå ãã¦åç §ãããããã«å¤æ´ãã¦ã¿ã
ãããdllã®å·®ãæ¿ãã¨æå³ãã¦ãããã¨ã¯ ä¸ç·ã§ãã
msys-1.0.dllãè¤æ°æã£ã¦ããå ´åã«ããã¡ã¤ã«ã®èªã¿è¾¼ã¿ã§å©ç¨ããã ç°å¢å¤æ°ã® $env:PATH *1 ã§ãC:\Program Files (x86)\git\bin
ãªã©ãåªå
ãã¦æããã¨ã§ããããã®ãã¹ã«æ£å¸¸ãª msys-1.0.dll ãããã°ãã¾ãããã¨ã
ããã¾ãä¸æãã®ãã
ãããªã rebase
ä¸æãã®ãã§ã¯ãªããåé¡ã®æ ¹æ¬ã対å¦ããã°ããã®ã§ãã
ã§ãå©ç¨ããã®ã rebase.exe ã§ããrebase ã¨ãã£ã¦ãã git rebase
ã¨ã¯ã¾ã£ããéãã¾ããWindows ã® rebase ã§ãã
ããã§ããã
ç§ãèªåã®ãä»äºã§ä½ã£ã¦ããã©ã¤ãã©ãªé¡ã¯NT 3.1æ代ã«rebaseã®éè¦æ§ãæã ã¨èª¬ãããã®ã§ãç¹ã«å ±æãããããªDLLã¯ãããªãrebaseãã¦ãã¾ãã
ãã® msys-1.0.dll ã®åé¡ã«é¢ãã¦ãmsysgitã®Issue #133 ã§ããåããè¦ã¤ãããã¨ãã§ãã¾ãã
ä»å rebase ã§è¡ãã®ã¯ãã¬ã¸ã¹ããªæä½ã®ãããªWindows OSã«å¤åãä¸ããããã§ã¯ãªããmsys-1.0.dll ãå©ç¨ããã¡ã¢ãªã¢ãã¬ã¹ãå¤æ´ããã ãã§ãã
復æ§æé
æé ãç´¹ä»ãã¾ãã
- rebase.exe ããããã¹ã§ãPowerShell ã cmdãèµ·åãã
- msys-1.0.dllã«å¯¾ãã¦ã次ã®rebaseã³ãã³ããå®è¡ããã*2
rebase -b 0x30000000 msys-1.0.dll
以ä¸ã§ãã
ç§ã®å ´åã¯ã chocolatey ã§ã msysgit 㨠poshgit ãå ¥ãã¦ãsourcetreeãå©ç¨ãã¦ããç°å¢ã§èµ·ããã¾ããã
msys-1.0.dll ã rebase.exe ã C:\Program Files (x86)\git\bin
ã«ãã£ãã®ã§ãPowerShellãèµ·åãããã¹ã¯C:\Program Files (x86)\git\bin
ã§ãã
ã¾ã¨ã
ã¯ããrebase ããã¾ã§ç¥ããªãã£ãã®ã§ããã大äºã§ãã
åé¡ããããã£ã¦ããã°ããã«ç´ããã®ã§ãããç¥ããªãã¦è¦ã¦ããã ããæ¹ã¯å®å¿ãã¦ããã ããã°ã¨æãã¾ãã
ssh ã¯ä»ã®PCããã§ã....ã§ãããgit.exe ãã§ããªãã®ã¯å°ãã¾ããããã