- xml - AJAX/Jquery XML 解析
- 具有多重继承的 XML 模式
- .net - 枚举序列化 Json 与 XML
- XML 简单类型、简单内容、复杂类型、复杂内容
最近,我安装了 OS X Mavericks,它似乎弄乱了我的开发环境。我在运行“rails new first_app”后收到此消息:
Your user account isn't allowed to install to the system Rubygems.
You can cancel this installation and run:
bundle install --path vendor/bundle
to install the gems into ./vendor/bundle/, or you can enter your password
and install the bundled gems to Rubygems using sudo.
Password:
Fetching gem metadata from https://rubygems.org/..........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using rake (10.1.1)
Using i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.9.0)
Using atomic (1.1.15)
Using thread_safe (0.2.0)
Errno::EACCES: Permission denied - /Library/Ruby/Gems/2.0.0/build_info/tzinfo-0.3.39.info
An error occurred while installing tzinfo (0.3.39), and Bundler cannot continue.
Make sure that `gem install tzinfo -v '0.3.39'` succeeds before bundling.
然后我做了要求我做的事情:
christohersmbp2:hartl christopherspears$ gem install tzinfo -v '0.3.39'
ERROR: While executing gem ... (Gem::FilePermissionError)
You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.
奇怪的是我确实安装了 rbenv。事实上,在尝试调试这个问题时,我升级了 rbenv:
christohersmbp2:~ christopherspears$ brew update
Already up-to-date.
christohersmbp2:~ christopherspears$ brew upgrade rbenv ruby-build
Warning: A newer Command Line Tools release is available
Update them from Software Update in the App Store.
Error: rbenv-0.4.0 already installed
Error: ruby-build-20140225 already installed
但是,当我尝试从命令行调用 rbenv 时收到此错误消息:
christohersmbp2:hartl christopherspears$ rbenv
-bash: rbenv: command not found
christohersmbp2:~ christopherspears$ rbenv rehash
-bash: rbenv: command not found
我想我已经正确设置了路径:
christohersmbp2:hartl christopherspears$ echo $PATH
/usr/local/share/python:/Users/christopherspears/.rbenv/bin:/Users/christopherspears/bin:/usr/local/heroku/bin:/usr/local/share/npm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin
这是我的 .bash_profile 文件中的内容:
# rbenv stuff
export PATH="$HOME/.rbenv/bin:$PATH"
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
奇怪的是,我认为我在我的版本文件夹中使用的是 Ruby 版本:
christohersmbp2:versions christopherspears$ pwd
/Users/christopherspears/.rbenv/versions
christohersmbp2:versions christopherspears$ ls
2.0.0-p247/
christohersmbp2:versions christopherspears$ ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [universal.x86_64-darwin13]
有什么提示吗?我似乎做的一切都是正确的。
更新:
我下载并安装了 Xcode 命令行工具。似乎没有用:
christohersmbp2:~ christopherspears$ rbenv-bash: rbenv: 找不到命令
最佳答案
正如@Christoper Spears 所说,卸载然后重新安装,或者更具体地说:
$ brew uninstall rbenv
$ brew install rbenv
(假设您首先使用 brew
安装它)。
关于ruby-on-rails - OS X Mavericks 破坏了 rbenv?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22338587/
从 Ubuntu 卸载 rbenv 后,每次打开终端时都会收到以下消息: The program 'rbenv' is currently not installed. You can install
我在我的 Ubuntu 10.04 服务器上使用 rbenv,我已经安装了 ImageMagick,但我无法成功安装 RMagick。我收到以下错误消息 Can't install RMagick 2
我正在尝试在安装新 gem 后重新哈希 rbenv它在我的 ubuntu 服务器上给了我这些错误 rbenv: cannot rehash: /home/deployer/.rbenv/shims/
我正在学习 Chef 并构建一本 Recipe ,其中包含安装 rbenv 和 ruby-build 的方法。 ruby-build 配方安装程序,然后尝试使用 rbenv 安装 Ruby 2.3.1
使用 sudo 用户运行 (x)ubuntu 16.04 ... 使用本地用户 + sudo 插件安装 rbenv cd ~ git clone git://github.com/ss
我刚刚在我的 ubuntu 服务器上安装了 rbenv 和 ruby-build。这是 ubntu 版本: Description: Ubuntu 14.04.1 LTS Release: 1
我在 ubuntu 20.04 中遇到了一个奇怪的问题。 我已经安装了 ruby 3.1.2、rails 6.1.5、rbenv 和 rbenv-vars。 在应用程序目录中设置 .rbenv-v
我从 Ubuntu 服务器上的 RVM 转移到 rbenv。 当我使用 RVM 时,使用 bundle 没有问题。转移到 rbenv 后,我在 Jenkins 的执行 shell 中收到“找不到命令”
我正在尝试在 Ubuntu 启动时启动 rails 应用程序。 为此,我在 /etc/rc.local 中添加了这些行. cd /home/ubuntu/webapp/rails/passenger-
我收到了 rbenv: 2.3.1 is not installed or not found in $HOME/.rbenv/versions/2.3.1尝试使用 Capistrano 部署到 Di
在 Ruby 开发的世界中,经常需要面对不同项目使用不同 Ruby 版本的情况。这时,一个高效、灵活且易于使用的 Ruby 版本管理工具就显得尤为重要。 rbenv 正是这样一个工具,它允许开发
我想使用下面的命令在没有 rdoc 的情况下使用 jemalloc 安装 ruby 但不知道如何组合它们: RUBY_CONFIGURE_OPTS=--with-jemalloc--disable
我正在尝试在我的 ubuntu 14.04 上使用 rbenv 安装 ruby 2.1.1。我使用了以下命令。 curl -fsSL https://gist.github.com/mislav/
我决定试试 rbenv 而不是 rvm。我已经用 Homebrew 安装了它,这很简单。然后我将额外的行添加到我的 .bash_profile 中(垫片、自动完成和 eval 语句)。 export
我正在尝试在我的 Debian 6 生产系统上安装 rbenv。做这个的最好方式是什么?我尝试了 github 维基页面(https://github.com/sstephenson/rbenv/wi
大家好,我正在尝试设置一个开发环境,并且我一直在关注以下教程: Link to tutorial 我做得不是很好,除了最基本的版本控制内容外,我对终端命令没有任何实际经验。我点击了第一个链接并尝试运行
我正在关注 Ryan 的 RailsCast 第 339 集。我已经安装了 rbenv 并且可以运行 ruby -v。我退出了我的 session ,当我试图返回时(通过 root 的 su depl
我们公司使用瘦客户端,并且有很多用户使用同一个盒子。我按照以下网站上的说明将 rbenv 安装为系统安装; https://blakewilliams.me/posts/system-wide-rbe
我最后将 ruby 2.0 安装到 ~/.rbenv/versions 中,现在除了可用之外什么都没有了 $ rbenv 版本 system *ruby-1.9.3-p392 (set by /a
我正在构建一个 vagrant 设置,其中一部分是安装 rbenv。我正在使用 librarian-chef 来管理我所有的 Chef Recipe ,它会安装 rbenv 和 ruby-buil
我是一名优秀的程序员,十分优秀!