由于配置问题,无法安装ruby 1.9.3

时间:2014-01-21 04:47:27

标签: ruby-on-rails ruby ruby-on-rails-3 rvm

这是我的网站:http://collegeanswerz.com。一周前工作正常。然后我尝试升级到Rails 4(来自Rails 3.2),然后我搞砸了。过去一周我一直试图让它恢复,但没有成功。

我不确定如何说这个,因为来自Rails Hotline的人帮助了我,但我使用git返回到我的代码的早期版本。我的网站启动并运行时的代码版本。

我尝试运行bundle install,但它没有用,因为它说我的Gemfile指定了Ruby 1.9.3,但我使用的是Ruby 2.0.0。来自Rails热线的人让我运行一些命令,并说他认为Ruby 1.9.3已从我的计算机中删除。我认为我的RVM也有问题,所以他让我运行rvm implode,然后重新安装它。我想我成功了。

然后我尝试了rvm install 1.9.3。由于某些配置错误,它无法正常工作。见下文:

Last login: Mon Jan 20 23:15:28 on ttys001
~ >>  cd collegeanswerz
~/collegeanswerz >>  rvm implode
-bash: rvm: command not found
~/collegeanswerz >>  rvm implode
-bash: rvm: command not found
~/collegeanswerz >>  rvm -v
-bash: rvm: command not found
~/collegeanswerz >>  rvm info
-bash: rvm: command not found
~/collegeanswerz >>  rvm implode
-bash: rvm: command not found
~/collegeanswerz >>  curl -L https://get.rvm.io | bash -s
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   184  100   184    0     0    342      0 --:--:-- --:--:-- --:--:--   342
100 20511  100 20511    0     0  20831      0 --:--:-- --:--:-- --:--:-- 20831
Downloading https://github.com/wayneeseguin/rvm/archive/master.tar.gz

Installing RVM to /Users/adamzerner/.rvm/
    RVM PATH line found in /Users/adamzerner/.bashrc /Users/adamzerner/.zshrc.
    RVM sourcing line found in /Users/adamzerner/.bash_profile /Users/adamzerner/.zprofile.
Installation of RVM in /Users/adamzerner/.rvm/ is almost complete:

  * To start using RVM you need to run `source /Users/adamzerner/.rvm/scripts/rvm`
    in all your open shell windows, in rare cases you need to reopen all shell windows.

# Adam Zerner,
#
#   Thank you for using RVM!
#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.

In case of problems: http://rvm.io/help and https://twitter.com/rvm_io
  * It looks like some old stuff is laying around RVM, you can cleanup with: rvm cleanup all

~/collegeanswerz >>  rvm get head && rvm reload
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/adamzerner/collegeanswerz/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.

ruby-1.9.3-p484 is not installed.
To install do: 'rvm install ruby-1.9.3-p484'
Downloading https://get.rvm.io
Downloading https://github.com/wayneeseguin/rvm/archive/master.tar.gz

Upgrading the RVM installation in /Users/adamzerner/.rvm/
    RVM PATH line found in /Users/adamzerner/.bashrc /Users/adamzerner/.zshrc.
    RVM sourcing line found in /Users/adamzerner/.bash_profile /Users/adamzerner/.zprofile.
Upgrade of RVM in /Users/adamzerner/.rvm/ is complete.

# Adam Zerner,
#
#   Thank you for using RVM!
#   We sincerely hope that RVM helps to make your life easier and more enjoyable!!!
#
# ~Wayne, Michal & team.

In case of problems: http://rvm.io/help and https://twitter.com/rvm_io

Upgrade Notes:

  * It looks like some old stuff is laying around RVM, you can cleanup with: rvm cleanup all

  * No new notes to display.

RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/adamzerner/collegeanswerz/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.

ruby-1.9.3-p484 is not installed.
To install do: 'rvm install ruby-1.9.3-p484'
RVM reloaded!
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/adamzerner/collegeanswerz/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.

ruby-1.9.3-p484 is not installed.
To install do: 'rvm install ruby-1.9.3-p484'
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/adamzerner/collegeanswerz/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.

ruby-1.9.3-p484 is not installed.
To install do: 'rvm install ruby-1.9.3-p484'
RVM reloaded!
~/collegeanswerz >>  rvm install 1.9.3
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/adamzerner/collegeanswerz/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.

ruby-1.9.3-p484 is not installed.
To install do: 'rvm install ruby-1.9.3-p484'
Searching for binary rubies, this might take some time.
No binary rubies available for: osx/10.9/x86_64/ruby-1.9.3-p484.
Continuing with compilation. Please read 'rvm help mount' to get more information on binary rubies.
Checking requirements for osx.
Certificates in '/usr/local/etc/openssl/cert.pem' already are up to date.
Requirements installation successful.
Installing Ruby from source to: /Users/adamzerner/.rvm/rubies/ruby-1.9.3-p484, this may take a while depending on your cpu(s)...
ruby-1.9.3-p484 - #downloading ruby-1.9.3-p484, this may take a while depending on your connection...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 9806k  100 9806k    0     0   679k      0  0:00:14  0:00:14 --:--:--  680k
ruby-1.9.3-p484 - #extracting ruby-1.9.3-p484 to /Users/adamzerner/.rvm/src/ruby-1.9.3-p484.
ruby-1.9.3-p484 - #applying patch /Users/adamzerner/.rvm/patches/ruby/GH-488.patch.
ruby-1.9.3-p484 - #configuring.
Error running './configure --prefix=/Users/adamzerner/.rvm/rubies/ruby-1.9.3-p484 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --enable-shared',
showing last 15 lines of /Users/adamzerner/.rvm/log/1390278456_ruby-1.9.3-p484/configure.log
[2014-01-20 23:27:42] ./configure
current path: /Users/adamzerner/.rvm/src/ruby-1.9.3-p484
PATH=/usr/local/opt/pkg-config/bin:/usr/local/opt/libtool/bin:/usr/local/opt/automake/bin:/usr/local/opt/autoconf/bin:/usr/local/heroku/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/Ghostscript/bin:/opt/ImageMagick/bin:/Users/adamzerner/.rvm/bin
command(6): ./configure --prefix=/Users/adamzerner/.rvm/rubies/ruby-1.9.3-p484 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --enable-shared
configure: WARNING: unrecognized options: --without-tcl, --without-tk
checking build system type... x86_64-apple-darwin13.0.0
checking host system type... x86_64-apple-darwin13.0.0
checking target system type... x86_64-apple-darwin13.0.0
checking whether the C compiler works... no
configure: error: in `/Users/adamzerner/.rvm/src/ruby-1.9.3-p484':
configure: error: C compiler cannot create executables
See `config.log' for more details
There has been an error while running configure. Halting the installation.
~/collegeanswerz >>  

为了快速参考,主要错误是:

Error running './configure --prefix=/Users/adamzerner/.rvm/rubies/ruby-1.9.3-p484 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --enable-shared',
showing last 15 lines of /Users/adamzerner/.rvm/log/1390278456_ruby-1.9.3-p484/configure.log

如果有人可以帮我修复此错误,并让我的网站重新启动,我真的很感激。我一直在努力,但没有成功。我的网站是一个初创公司,我正试图开始对大学进行学生评论。我有3个试点学校,我付钱给学生回答问题,截止日期是2月1日。我需要更多答案,但我无法恢复我的网站。再一次,我真的很感激一些帮助(对不起絮絮叨叨)。

Config.log文件

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by configure, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/Users/adamzerner/.rvm/rubies/ruby-1.9.3-p484 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libksba:/usr/local/opt/openssl --without-tcl --without-tk --enable-shared

## --------- ##
## Platform. ##
## --------- ##

hostname = Macintosh.local
uname -m = x86_64
uname -r = 13.0.0
uname -s = Darwin
uname -v = Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
     Darwin Kernel Version 13.0.0: Thu Sep 19 22:22:27 PDT 2013; root:xnu-2422.1.72~6/RELEASE_X86_64
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 4.00 gigabytes
Default processor set: 199 tasks, 804 threads, 2 processors
Load average: 4.33, Mach factor: 0.34
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/opt/pkg-config/bin
PATH: /usr/local/opt/libtool/bin
PATH: /usr/local/opt/automake/bin
PATH: /usr/local/opt/autoconf/bin
PATH: /usr/local/heroku/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /opt/Ghostscript/bin
PATH: /opt/ImageMagick/bin
PATH: /Users/adamzerner/.rvm/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2799: checking build system type
configure:2813: result: x86_64-apple-darwin13.0.0
configure:2881: checking host system type
configure:2894: result: x86_64-apple-darwin13.0.0
configure:2914: checking target system type
configure:2927: result: x86_64-apple-darwin13.0.0
configure:3408: checking for C compiler version
configure:3417: /usr/local/opt/apple-gcc42/bin/gcc-4.2 --version >&5
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3428: $? = 0
configure:3417: /usr/local/opt/apple-gcc42/bin/gcc-4.2 -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /Volumes/Media/Builds/gcc-5666.3/build/obj/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++,fortran --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
configure:3428: $? = 0
configure:3417: /usr/local/opt/apple-gcc42/bin/gcc-4.2 -V >&5
gcc-4.2: argument to `-V' is missing
configure:3428: $? = 1
configure:3417: /usr/local/opt/apple-gcc42/bin/gcc-4.2 -qversion >&5
i686-apple-darwin11-gcc-4.2.1: no input files
configure:3428: $? = 1
configure:3448: checking whether the C compiler works
configure:3470: /usr/local/opt/apple-gcc42/bin/gcc-4.2    conftest.c  >&5
ld: library not found for -lcrt1.10.6.o
collect2: ld returned 1 exit status
configure:3474: $? = 1
configure:3512: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define CANONICALIZATION_FOR_MATHN 1
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3517: error: in `/Users/adamzerner/.rvm/src/ruby-1.9.3-p484':
configure:3519: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-apple-darwin13.0.0
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/local/opt/apple-gcc42/bin/gcc-4.2
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=x86_64-apple-darwin13.0.0
ac_cv_prog_CC=/usr/local/opt/apple-gcc42/bin/gcc-4.2
ac_cv_target=x86_64-apple-darwin13.0.0

## ----------------- ##
## Output variables. ##
## ----------------- ##

ALLOCA=''
AR=''
ARCHFILE=''
ARCH_FLAG=''
AS=''
ASFLAGS=''
BASERUBY='ruby'
BUILTIN_ENCOBJS=''
BUILTIN_TRANSOBJS=''
BUILTIN_TRANSSRCS=''
CAPITARGET=''
CC='/usr/local/opt/apple-gcc42/bin/gcc-4.2'
CCDLFLAGS=''
CFLAGS=''
CHDIR=''
COMMON_HEADERS=''
COMMON_LIBS=''
COMMON_MACROS=''
COUTFLAG=''
CP=''
CPP=''
CPPFLAGS=''
CPPOUTFILE=''
CXX=''
CXXFLAGS=''
DEFS=''
DLDFLAGS=''
DLDLIBS=''
DLEXT2=''
DLEXT=''
DLLWRAP=''
DOT=''
DOXYGEN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
ENABLE_SHARED=''
EXECUTABLE_EXTS=''
EXEEXT=''
EXPORT_PREFIX=''
EXTDLDFLAGS=''
EXTOUT=''
EXTSTATIC=''
GCC=''
GNU_LD=''
GREP=''
INSTALLDOC=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS=''
LDSHARED=''
LDSHAREDXX=''
LIBEXT=''
LIBOBJS=''
LIBPATHENV=''
LIBPATHFLAG=''
LIBRUBY=''
LIBRUBYARG=''
LIBRUBYARG_SHARED=''
LIBRUBYARG_STATIC=''
LIBRUBY_A=''
LIBRUBY_ALIASES=''
LIBRUBY_DLDFLAGS=''
LIBRUBY_LDSHARED=''
LIBRUBY_RELATIVE=''
LIBRUBY_SO=''
LIBS=''
LINK_SO=''
LN_S=''
LTLIBOBJS=''
MAINLIBS=''
MAJOR='1'
MAKEDIRS=''
MAKEFILES=''
MANTYPE=''
MINIOBJS=''
MINIRUBY=''
MINOR='9'
MKDIR_P=''
NM=''
NROFF=''
NULLCMD=''
OBJCOPY=''
OBJDUMP=''
OBJEXT=''
OUTFLAG=''
PACKAGE=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PLATFORM_DIR=''
POSTLINK=''
PREP=''
RANLIB=''
RDOCTARGET=''
RI_BASE_NAME=''
RM=''
RMALL=''
RMDIR=''
RMDIRS=''
RPATHFLAG=''
RUBYW_BASE_NAME='rubyw'
RUBYW_INSTALL_NAME=''
RUBY_BASE_NAME='ruby'
RUBY_INSTALL_NAME=''
RUBY_PROGRAM_VERSION='1.9.3'
RUBY_RELEASE_DATE='2013-11-22'
RUBY_SO_NAME=''
RUNRUBY=''
SET_MAKE=''
SHELL='/bin/sh'
SOLIBS=''
STATIC=''
STRIP=''
SYMBOL_PREFIX=''
TEENY='1'
TEST_RUNNABLE=''
THREAD_MODEL=''
TRY_LINK=''
UNIVERSAL_ARCHNAMES=''
UNIVERSAL_INTS=''
USE_RUBYGEMS=''
WERRORFLAG=''
WINDRES=''
XCFLAGS=''
XLDFLAGS=''
XRUBY=''
XRUBY_LIBDIR=''
XRUBY_RUBYHDRDIR=''
XRUBY_RUBYLIBDIR=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_OBJCOPY=''
ac_ct_OBJDUMP=''
arch=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin13.0.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin13.0.0'
build_vendor='apple'
cflags=' ${optflags} ${debugflags} ${warnflags}'
configure_args=''
cppflags=''
cxxflags=' ${optflags} ${debugflags} ${warnflags}'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
debugflags=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec=''
exec_prefix='NONE'
host='x86_64-apple-darwin13.0.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin13.0.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
optflags=''
pdfdir='${docdir}'
prefix='/Users/adamzerner/.rvm/rubies/ruby-1.9.3-p484'
program_transform_name='s&^&&'
psdir='${docdir}'
ridir=''
ruby_pc=''
ruby_version=''
rubyhdrdir=''
rubylibprefix=''
rubyw_install_name=''
sbindir='${exec_prefix}/sbin'
setup=''
sharedstatedir='${prefix}/com'
sitearch=''
sitedir=''
sitehdrdir=''
sysconfdir='${prefix}/etc'
target='x86_64-apple-darwin13.0.0'
target_alias=''
target_cpu='x86_64'
target_os='darwin13.0.0'
target_vendor='apple'
try_header=''
vendordir=''
vendorhdrdir=''
warnflags=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define CANONICALIZATION_FOR_MATHN 1

configure: exit 77

更新:已安装Ruby 1.9.3,但bundle install现在无效

~/collegeanswerz >>  bundle install
ERROR: RVM Ruby not used, run `rvm use 2.0.0` first.
~/collegeanswerz >>  rvm use 1.9.3
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/adamzerner/collegeanswerz/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.


RVM is not a function, selecting rubies with 'rvm use ...' will not work.

You need to change your terminal emulator preferences to allow login shell.
Sometimes it is required to use `/bin/bash --login` as the command.
Please visit https://rvm.io/integration/gnome-terminal/ for a example.

~/collegeanswerz >>  bundle install
ERROR: RVM Ruby not used, run `rvm use 2.0.0` first.
~/collegeanswerz >>  

更新:清理命令不起作用

~/collegeanswerz >>  rvm cleanup all
RVM used your Gemfile for selecting Ruby, it is all fine - Heroku does that too,
you can ignore these warnings with 'rvm rvmrc warning ignore /Users/adamzerner/collegeanswerz/Gemfile'.
To ignore the warning for all files run 'rvm rvmrc warning ignore allGemfiles'.

Cleaning up rvm archives
Cleaning up rvm repos
Cleaning up rvm src
Cleaning up rvm log
Cleaning up rvm tmp
Cleaning up rvm gemsets
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/.autotest: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/design_rationale.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/History.txt: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/hoe/minitest.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/autorun.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/benchmark.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/hell.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/mock.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/parallel_each.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/pride.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/spec.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/unit.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/Manifest.txt: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/Rakefile: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/README.txt: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/test/minitest/metametameta.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/test/minitest/test_minitest_benchmark.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/test/minitest/test_minitest_mock.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/test/minitest/test_minitest_spec.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/test/minitest/test_minitest_unit.rb: Operation not permitted
 - failed - /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/.autotest: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/design_rationale.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/History.txt: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/hoe/minitest.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/autorun.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/benchmark.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/hell.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/mock.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/parallel_each.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/pride.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/spec.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/lib/minitest/unit.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/Manifest.txt: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/Rakefile: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/README.txt: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/test/minitest/metametameta.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/test/minitest/test_minitest_benchmark.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/test/minitest/test_minitest_mock.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/test/minitest/test_minitest_spec.rb: Operation not permitted
chmod: Unable to change file mode on /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429/gems/minitest-4.7.5/test/minitest/test_minitest_unit.rb: Operation not permitted
 - failed - /Users/adamzerner/.rvm/gems/ruby-1.9.3-p429
Cleaning up rvm links
Cleanup failed for 2
~/collegeanswerz >>

的Gemfile

source 'https://rubygems.org'

gem 'rails', '3.2.13'
gem 'bootstrap-sass', '2.3.2.0'
gem "actionmailer", "~> 3.2.13"
gem "jquery-tablesorter", "~> 1.5.0"
gem 'jquery-ui-rails'
gem 'jquery-ui-themes'
gem 'chart-js-rails'

ruby '1.9.3-p484'

group :production do
    gem 'pg', '0.12.2'
end

group :development do
    gem 'sqlite3'
end

gem "dynamic_form"

# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'
  gem 'asset_sync'
  gem 'fontello-rails'
  gem "jquery-smooth-scroll-rails", "~> 0.0.3"

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer', :platforms => :ruby

  gem 'uglifier', '>= 1.0.3'
end

group :development do
  gem 'annotate', '2.5.0'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the app server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'debugger'

3 个答案:

答案 0 :(得分:2)

首要目标应该是让应用程序恢复运行 因此,我建议将应用程序的配置重置为最后一个工作台。 如果无法做到这一点,请使用带有 --with-gg = clang -option的rvm安装ruby,如下所示:

rvm install 1.9.3 --with-gcc=clang

然后使用已安装的ruby版本列出所有已安装的rubies(运行rvm list)并使用以下命令选择提供的1.9.3版本(例如1.9.3-p448):

rvm --default use 1.9.3-p484

请使用ruby '1.9.3-p484'行更新您的Gemfile,并确保您在登录shell中(更改为使用/bin/bash --login)。之后你的rvm命令应该再次运行。

答案 1 :(得分:0)

你在OSX 10.9上的apple-gcc42安装了homebrew,我想你已经更新了你的系统并且它是以前OSX版本的剩余部分,你应该卸载这个软件包并且rvm将安装GCC 4.6然后和一切都会奏效。

答案 2 :(得分:-1)

我认为主要问题是:

configure: error: C compiler cannot create executables

您需要向我们提供配置文件,但是,我想如果您输入此命令:

sudo apt-get install clang && rvm install 1.9.3 --with-gcc=clang

应该解决这个问题。