下载Android源码问题
在ubuntu中下载android源码,按照大多数资料上介绍的方法,
先创建~/bin文件,然后添加路径PATH=~/bin:$PATH,
最后使用curl下载repo脚本:
sudo curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > ~/bin/repo
却总提示 Permission denied
很是费解,请高手指教。
另有一问题由git安装而引发,也望获得专家解答:
使用邓凡平的《深入理解Android》,第一章建议安装git,命令是apt-get install git-core,但redmine总是安装不成功,
报错如下:
rake aborted!
Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock'
我查了一下,确实没有mysqld那个文件夹,然后使用
apt-get install mysql-server-5.5 重装了mysql
又运行了
mysql_install_db,创建了数据库,有了mysqld文件夹及.sock文件。
但再次运行apt-get install git-core仍提示说redmine安装不成功。
rake aborted!
Access denied for user 'redmine'@'localhost'(using password : YES)
我对数据库实在不懂,上网查了两天也没查到解决方法,不知大家是否遇到过类似问题。