需要利用linux做项目,所以在win10装了vmvare 以及 fedora,据说这个linux比较稳定。。

1、系统装好以后,需要先把terminal调处理,这才符合程序猿的习惯嘛,具体方法如下

  http://jingyan.baidu.com/article/cb5d61053598ed005d2fe05c.html

2、装个g++编译器,yum install gcc-c++ 如果出错如下

[root@idbk ~]# yum list
    已加载插件:langpacks, refresh-packagekit
    错误:Cannot retrieve metalink for repository: fedora/20/x86_64. Please verify its path and try again

  

这是因为国外网,要不你的网络设置不能访问国际网,要么速度太慢,导致这个错误,这时候就需要添加国内源,方式如下:

http://www.cnblogs.com/bo083/archive/2011/06/07/2152792.html

 

 主要就是修改 /etc/yum.repos.d/

  a fedora.repo     修改对应的三个baseurl,改成这样

  baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/$basearch/os/

     baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/$basearch/debug/

     baseurl=http://mirrors.sohu.com/fedora/releases/$releasever/Everything/source/SRPMS/

  b fedora-update.repo

     baseurl=http://mirrors.sohu.com/fedora/updates/$releasever/$basearch/

     baseurl=http://mirrors.sohu.com/fedora/linux/updates/$releasever/$basearch/debug/

     baseurl=http://mirrors.sohu.com/fedora/linux/updates/$releasever/SRPMS/

相关文章:

  • 2022-02-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
  • 2021-06-24
  • 2021-06-07
猜你喜欢
  • 2022-12-23
  • 2021-06-02
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-03
  • 2022-01-12
相关资源
相似解决方案