- 积分
- 107
- 贡献
-
- 精华
- 在线时间
- 小时
- 注册时间
- 2011-6-20
- 最后登录
- 1970-1-1
|
发表于 2013-11-17 22:03:54
|
显示全部楼层
不知有高人,找到解决办法没有。
搜了一下,有个相关的:http://gaoithe.blogspot.com/2011/03/solved-cygwin-windows7.html
只是不懂e文啊。。。。
User that installed cygwin was "Someone Else" Administrator.
ls -R /cygdrive/c/cygwin # showed mixed ownership between "Someone Else" and "Me Myself" both Administrator.
Solution:
export PATH=/usr/bin:$PATH
chown -R me.myself /cygdrive/c/cygwin
chmod 777 $TMP
# stop all cygwin processes (close windows and use Task Manager to kill hangers on)
start ash and run rebaseall
Killing processes in ash:
export PATH=/usr/bin:$PATH
ps -e
PIDS=$(ps -e |grep -E -v "ash|PID" |sed s/^.// |awk '{print $1}')
kill $PIDS
kill -9 $PIDS
ps -e
This is why chmod 777 $TMP is needed:
ash$ rebaseall
rebaseall: '/cygdrive/c/Users/JAMES~1.COL/AppData/Local/Temp' is not writable
This also happened:
ash$ rebaseall
ReBaseImage (/usr/bin/cygcrypt-0.dll) failed with last error = 6
ash$ cd \cygwin\bin
ash$ mv cygcrypt-0.dll cygcrypt-0.dll.hmm #?
ash$ cp cygcrypt-0.dll.hmm cygcrypt-0.dll #?
Finally:
ash$ rebaseall
/usr/bin/cygcrypto-0.9.8.dll: skipped because nonexistent
/usr/bin/cygssl-0.9.8.dll: skipped because nonexistent
Cygwin now working.
Final step to make sure all is clean: Run cygwin setup.exe to update.
What happened to cause problem:
Cygwin was pre-installed by another user someone.else.
And I ran a cygwin update as my user me.myself.
No obvious cygwin errors but cygwin DLL must have been updated and rebaseing had errors.
errors are gone
Finally found this on web which had part of this solution:
|
|