设为首页 收藏本站
查看: 953|回复: 0

[经验分享] linux安装curl、git、ruby、mysql、postgreSQL、OpenSSL、Redis、ImagMagck、RubyGems、Bundler

[复制链接]

尚未签到

发表于 2015-7-21 10:51:25 | 显示全部楼层 |阅读模式
  Installing on Debian
  Versions
  These instructions are for Debian Lenny 5.0 or Squeeze 6.0. You will need to make sure that your username is on the sudo authorized list located at '/etc/sudoers'.
  Build Tools
  To install build tools, run the following (includes the gcc and xml parsing dependencies):
  sudo apt-get install build-essential libxslt1.1 libxslt1-dev libxml2 libreadline5-dev
  CURL
  You need to install the "dev" headers.
  To install them, run the following:
  sudo apt-get install curl libcurl4-openssl-dev
  Git
  To install Git on Debian 6.0, run the following:
  sudo apt-get install git-core
  To install Git 1.7 on Debian 5.0, add Debian Backports repository and install it. Instructions: http://backports.debian.org/Instructions/
  sudo apt-get install -t lenny-backports git-core
  Ruby
  RVM
  You can install Ruby on a clean per user basis via RVM. This is currently recommended to get the latest Rubygems version.
  curl -L https://get.rvm.io | bash -s stable
  # load rvm here - search the output of previous command
  rvm install 1.9.3-p125 # install correct ruby version
  These instructions are from https://rvm.io/rvm/install/.
  You still need a system Ruby so run:
  sudo apt-get install ruby-full
  To install RVM and Ruby 1.9.3, as your normal user (the one which Diaspora should run under), run (I was getting an error so I had to run curl -k which told me to "echo insecure >> ~/.curlrc")
  For Debian 6.0 users who wish to install Ruby 1.9.3 (or any edition for that matter) on RVM, compile may fail due to openssl version higher than 1.0.0. For that, run:
  rvm pkg install openssl
  rvm remove ruby-1.9.3-p125 #just in case
  rvm install ruby-1.9.3-p125 --with-openssl-dir=$rvm_path/usr
  MySQL
  This installs MySQL, you also need the libmysqlclient-dev and libmysql-ruby packages.
  sudo apt-get install mysql-server libmysqlclient-dev libmysql-ruby
  PostgreSQL
  This installs libraries for PostgreSQL support.
  sudo apt-get install libpq-dev libpq5
  OpenSSL
  You already have OpenSSL installed but you need the libssl-dev and libopenssl-ruby package too:
  sudo apt-get install libssl-dev libopenssl-ruby
  For Debian 6.0 and later, libopenssl-ruby is provided through the virtual package libruby or libruby1.8.
  ImageMagick
  To install ImageMagick, run the following:
  sudo apt-get install imagemagick libmagick9-dev
  Note that libmagick9-dev is provided through libmagickwand-dev.
  Redis
  NOTE: I have Diaspora running with the Debian 6 stable repositories version of redis-server, without any problems - joaomlneto (jd.com user: anatoly)
  Debian 6.0 stable repositories have an older version of Redis. If you are running Debian Testing, you can use the repository:
  sudo apt-get install redis-server
  Otherwise, if you're running Stable, you should get the newest version directly. If you're running a 64-bit system, run:
  wget http://ftp.us.debian.org/debian/pool/main/r/redis/redis-server_2.4.9-1_amd64.deb -O redis-server.deb
  wget http://ftp.us.debian.org/debian/pool/main/j/jemalloc/libjemalloc1_2.2.5-2_amd64.deb -O libjemalloc1.deb
  If you're running a 32-bit system, run:
  wget http://ftp.us.debian.org/debian/pool/main/r/redis/redis-server_2.4.9-1_i386.deb -O redis-server.deb
  wget http://ftp.us.debian.org/debian/pool/main/j/jemalloc/libjemalloc1_2.2.5-2_i386.deb -O libjemalloc1.deb
  Then install the corresponding package
  sudo dpkg -i libjemalloc1.deb
  sudo dpkg -i redis-server.deb
  Note about libjemalloc1 on Debian Squeeze
  If you have problems getting the required lib multiarch-support installed, try installing it with aptitude and reinstall redis-server:
  sudo aptitude install multiarch-support
  sudo aptitude install redis-server
  RubyGems
  Not needed for a RVM installation. To install RubyGems, run the following:
  wget http://ftp.us.debian.org/debian/pool/main/r/rubygems/rubygems_1.8.24-1_all.deb -O rubygems.deb && sudo dpkg -i rubygems.deb
  Bundler
  To install Bundler, run the following, (skip the sudo for a RVM installation):
  sudo gem install bundler
  If you installed via RVM and gem is not found, run the following
  bash -l
  rvm use ruby-1.9.3-p125@global
  To get bundle to work with the system Ruby, you might need to make a symbolic link:
  sudo ln -s /var/lib/gems/1.8/bin/bundle /usr/local/bin/bundle
  This is not needed on Debian 5.0 when ruby is installed from source.
  ffi
  Note: If you get an error in the next step try to run
  sudo apt-get install libffi-ruby libffi-dev
  and try the step again.
  SQLite libraries and header files
  sudo apt-get install libsqlite3-dev
  NodeJS
  You will also need nodejs. Currently this is not available in the stable release of debian 6 so here are instructions on installing from source.
  git clone https://github.com/joyent/node.git
  cd node
  git checkout v0.6.8
  ./configure --openssl-libpath=/usr/lib/ssl
  make
  make test
  sudo make install
  These instructions are from http://sekati.com/etc/install-nodejs-on-debian-squeeze
  Last of all, you need to install the execjs gem
  sudo gem install execjs
  Congrats! You have all your dependencies installed. Go back to Installing and Running Diaspora.
  
  参考地址: https://github.com/diaspora/diaspora/wiki/Installing-on-Debian
  
   

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-88999-1-1.html 上篇帖子: 在Linux中如何将本地代码上传至Github 下篇帖子: puppet学习之使用git实现puppet版本控制
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表