Mountain Lion 安装 Command Line Tools
首先安装 Xcode4.4 然后 按照一下步骤:
Mountain Lion :
Launch Xcode
Select Xcode -> Preferences from the menu bar.
Select the Downloads tab.
Install “Command Line Tools”.
安装非常简单呵呵~~~100多M~
首先安装 Xcode4.4 然后 按照一下步骤:
Mountain Lion :
Launch Xcode
Select Xcode -> Preferences from the menu bar.
Select the Downloads tab.
Install “Command Line Tools”.
安装非常简单呵呵~~~100多M~
微盾 的加密主要是用base64做的。。我用额是别人现有的接口。。我只是做了一个批量而已。。
#!/usr/bin/perl
use warnings;
use strict;
use AnyEvent;
use AnyEvent::HTTP;
use Encode;
use Encode::CN;
my @dir_array;
my $decode_api = “http://pubapi1.yoursunny.com/PHP-decode/APIv1.php”;
reader_dir(“$ARGV[0]“);
for my $file (@dir_array) {
my $cv = AnyEvent->condvar;
$cv->begin();
阅读全文…
今早登录服务器使用yum安装软件的时候发现不能安装。。
There was a problem importing one of the Python modules
required to run yum. The error leading to this problem was:
No module named yum
Please install a package which provides this module, or
verify that the module is installed correctly.
It’s possible that the above module doesn’t match the
current version of Python, which is:
2.6 (r26:66714, Mar 16 2012, 17:42:38)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://wiki.linux.duke.edu/YumFaq
经过google发现是python的问题
系统python的当前版本 Python 2.6
运行:#whereis python
python: /usr/bin/python /usr/bin/python2.4 /usr/lib/python2.4 /usr/include/python2.4 /usr/share/man/man1/python.1.gz
修改文件:
vim /usr/bin/yum
修改头 #!/usr/bin/python => #!/usr/bin/python2.4
再次运行就正常了。。嘿嘿~~