新手问题 Ubuntu 13.04 64 bit 安装 discourse 失败

mtmicrosystems · 2013年04月18日 · 最后由 linktoming 回复于 2014年04月07日 · 6215 次阅读

大家好,请教各位,关于 无法安装 discourse 的问题:

我的问题是:无论本机还是 vps 空间,均无法安装 discourse

先说本机环境:Ubuntu 13.04 64bit;待本机解决了,再说 vps 服务器的事情。一次说一件事,也避免贴子太长太乱。 参考帮助网址:http://blog.discourse.org/2013/04/discourse-as-your-first-rails-app/

第一步,安装 virtualbox 4.2.0 以上。 VirtualBox 版本 4.2.6.r82870 : http://www.virtualbox.org/wiki/Downloads

第二步,安装 vagrant。 从此处下载安装 vagrant: http://downloads.vagrantup.com/

第三步,安装 Git Git 这一步,只有 github for windows 和 github for mac 但可以通过命令实现 git 下 discoure : git https://github.com/discourse/discourse.git 但不知如何调用它。

第四步,启用 vagrant vagrant up

第六步,ssh 登录虚拟机 vagrant ssh

第七步,bundle install cd /vagrant bundle install

接下来就报错:Bundler::GemfileNotFound google 了好多解决方案,均无解?怎么处理?

按官方指南最后一名回贴网友的建议,按如下方式安装,仍然失败: 其中 virtualbox 和 nfs-common 已安装。 sudo apt-get install git sudo dpkg -i vagrant_x86_64.deb Open a terminal git clone https://github.com/discourse/discourse.git Enter the project directory: cd discourse 然后同上,执行 vagrant up

结果报错如下: The following SSH command responded with a non-zero exit status. Vagrant assumes that this means the command failed! mount -o vers=3 192.168.10.1:'/root/discourse' /vagrant

关于 Discourse,官方帮助网址是: https://github.com/discourse/discourse/blob/master/README.md Discourse 基于如下组件创建: Discourse is built from the following open source components: Ruby on Rails - Our back end API is a Rails app. It responds to requests RESTfully and responds in JSON. Ember.js - Our front end is an Ember.js app that communicates with the Rails API. PostgreSQL - Our main data store is in Postgres. Redis - We use Redis for our job queue, rate limiting, as a cache and for transient data. Plus lots of Ruby Gems, a complete list of which is at SOFTWARE.MD.

没有人回复,期待高手解答。Discourse 在国外可是关注度颇高哦

没有人研究 Ruby on Rails + Ember.js + PostgreSQL + Redis 吗?

难道没有人对论坛,Nginx,Rub on Rails,Redis,PostgreSQL,Discourse,下一代论坛,下一代社交网站中的 Facebook 这类社交平台技术感兴趣吗?小众软件中的小小众平台吗?文档稀缺,期盼高人出现?

是这里没有高人,还是高人不对这些东东感兴趣?孤独守望?

你的问题应该是项目代码的环境问题,看起来像是没有没有找到 Gemfile.lock,你确认你在正确的目录下执行了 bundle install 了么?

还是谢谢 Daniel。

因为对 rails on ruby,gem 还是不懂,网上资料也比较少。因此,对于“确认你在正确的目录下执行”的问题,不知该如何作答,好像不曾有人成功安装过 discourse 论坛程序这般,下面为另一个帮助文档。试过,最后报错为:

bash: 行 521: /usr/local/rvm/RELEASE: 权限不够

郁闷,好的程序,总是用不了。

另一个帮助文档地址: http://meta.discourse.org/t/install-discourse-on-ubuntu-12-10-vm/3347

#8 楼 @mtmicrosystems 其实看了你的问题后,就猜到你可能对 Rails 的项目开发和部署不太熟悉,这不是能一蹴而就的事情,我可以帮你找一些资料,也许能帮助到你:

此外,你需要看的资料还有很多很多,如果不学 Rails 开发,单看 Rails 部署的话,你还会遇到数不尽的坑的,加油!

#8 楼 @mtmicrosystems 另外,关于 Rails 的教程和资料,网上比比皆是,前提是不要用百度,而且要用 Google 的英文版去找。另外安装成功的 discourse 比比皆是,比如 @ShiningRay 之前就随手搭建了一个,不过我地址没记住。

可以尝试到Ember.js 中文论坛或者到 Q 群(298026365)问下

#11 楼 @Zernel 我去,这就已经用上了。。好快

#8 楼 @mtmicrosystems 试试我那个糗事百科源代码吧 https://github.com/qiushibaike/moumentei 演示地址 http://moumentei.bling0.com/ 随时提供技术支持和咨询

你需要在 rails 项目的目录路径下执行 bundle install

常见的问题,我也经常 git clone 一个项目后直接执行 bundle install,你需要先 cd discourse,然后执行 bundle install。但楼主你对于 git 很不熟悉的样子,恐怕还是会遇到很多问题的。我建议你先不要使用 vagrant,最好装一个完整的操作系统(带图形界面的)先熟悉一下 git linux 环境。

GemfileNotFound 的解决办法就是找到有 Gemfile 的目录再 bundle install

之前装上玩过一会儿,请问这个项目有什么特点能让它成为“下一代 xxx”?

Bundler::GemfileNotFound,就是目录错了,在项目目录下直接 bundle

我的问题是不太熟悉 bluepills 官方也没有详细的 unbuntu 下不用 docker 安装 discourse 的指南

需要 登录 后方可回复, 如果你还没有账号请 注册新账号