无法在任何来源中找到rake-10.1.0

我一直在使用rails并且一直试图用rake 10.1.0设置乘客并且它发回给我这个错误。

这是错误的链接。 网站LInk

It looks like Bundler could not find a gem. This is probably because your application is being run under a different environment than it's supposed to. Please check the following: * Is this app supposed to be run as the `rails` user? * Is this app being run on the correct Ruby interpreter? Below you will see which Ruby interpreter Phusion Passenger attempted to use. * Are you using RVM? Please check whether the correct gemset is being used. * If all of the above fails, try resetting your RVM gemsets: https://github.com/phusion/passenger/wiki/Resetting-RVM-gemsets -------- The exception is as follows: ------- Could not find rake-10.1.0 in any of the sources (Bundler::GemNotFound) /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize' /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `map!' /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb:85:in `materialize' /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/definition.rb:114:in `specs' /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/definition.rb:159:in `specs_for' /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/definition.rb:148:in `requested_specs' /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/environment.rb:18:in `requested_specs' /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:13:in `setup' /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler.rb:120:in `setup' /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/setup.rb:17:in `' /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `require' /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require' /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:144:in `require' /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/loader_shared_helpers.rb:219:in `block in run_load_path_setup_code' /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/loader_shared_helpers.rb:333:in `running_bundler' /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/loader_shared_helpers.rb:217:in `run_load_path_setup_code' /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/helper-scripts/rack-preloader.rb:96:in `preload_app' /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/helper-scripts/rack-preloader.rb:150:in `' /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/helper-scripts/rack-preloader.rb:29:in `' /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/helper-scripts/rack-preloader.rb:28:in `' Application root /home/rails/testourwedding Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV and PASSENGER_ENV) production Ruby interpreter command /usr/local/rvm/wrappers/ruby-2.0.0-p353@global/ruby User and groups uid=1000(rails) gid=1000(rails) groups=1000(rails),0(root),27(sudo),1001(rvm) Environment variables APACHE_PID_FILE = /var/run/apache2/apache2.pid rvm_bin_path = /usr/local/rvm/bin GEM_HOME = /usr/local/rvm/gems/ruby-2.0.0-p353@global APACHE_RUN_USER = www-data SHELL = /bin/bash IRBRC = /usr/local/rvm/rubies/ruby-2.0.0-p353/.irbrc PYTHONUNBUFFERED = 1 PASSENGER_DEBUG_DIR = /tmp/passenger.spawn-debug.XXXXcwNYKJ SERVER_PORT = 80 MY_RUBY_HOME = /usr/local/rvm/rubies/ruby-2.0.0-p353 USER = rails DOCUMENT_ROOT = /home/rails/testourwedding/public _system_type = Linux REQUEST_URI = / rvm_path = /usr/local/rvm IN_PASSENGER = 1 RACK_ENV = production REMOTE_PORT = 53796 rvm_prefix = /usr/local PATH = /usr/local/rvm/gems/ruby-2.0.0-p353@global/bin:/usr/local/rvm/gems/ruby-2.0.0-p353@global/bin:/usr/local/rvm/rubies/ruby-2.0.0-p353/bin:/usr/local/rvm/bin:/usr/local/rvm/gems/ruby-2.0.0-p353/bin:/usr/local/rvm/gems/ruby-2.0.0-p353@global/bin:/usr/local/rvm/rubies/ruby-2.0.0-p353/bin:/usr/local/rvm/bin:/usr/local/bin:/usr/bin:/bin APACHE_LOG_DIR = /var/log/apache2 WSGI_ENV = production SERVER_ADMIN = [no address given] PWD = /home/rails/testourwedding LANG = C APACHE_RUN_GROUP = www-data NODE_PATH = /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/node_lib _system_arch = x86_64 NODE_ENV = production _system_version = 13.10 rvm_env_string = ruby-2.0.0-p353@global REMOTE_ADDR = 72.32.146.52 rvm_version = 1.24.7 (stable) SERVER_NAME = www.brandtandlaura.com HOME = /home/rails SHLVL = 0 rvm_gemset_name = global RAILS_ENV = production rvm_ruby_string = ruby-2.0.0-p353 SERVER_SOFTWARE = Apache/2.4.6 (Ubuntu) LOGNAME = rails QUERY_STRING = SERVER_ADDR = 166.78.174.208 GEM_PATH = /usr/local/rvm/gems/ruby-2.0.0-p353@global SERVER_PROTOCOL = HTTP/1.1 PASSENGER_APP_ENV = production APACHE_RUN_DIR = /var/run/apache2 APACHE_LOCK_DIR = /var/lock/apache2 REQUEST_METHOD = GET RUBY_VERSION = ruby-2.0.0-p353 _system_name = Ubuntu _ORIGINAL_GEM_PATH = /usr/local/rvm/gems/ruby-2.0.0-p353@global Ulimits Unknown System memory usage total used free shared buffers cached Mem: 4001 1870 2131 0 180 1488 -/+ buffers/cache: 202 3799 Swap: 0 0 0 General Ruby interpreter information RUBY_VERSION = 2.0.0 RUBY_PLATFORM = x86_64-linux RUBY_ENGINE = ruby RubyGems version = 2.1.11 Ruby configuration (RbConfig::CONFIG) DESTDIR = MAJOR = 2 MINOR = 0 TEENY = 0 PATCHLEVEL = 353 INSTALL = /usr/bin/install -c EXEEXT = prefix = /usr/local/rvm/rubies/ruby-2.0.0-p353 ruby_install_name = ruby RUBY_INSTALL_NAME = ruby RUBY_SO_NAME = ruby exec = exec ruby_pc = ruby-2.0.pc PACKAGE = ruby BUILTIN_TRANSSRCS = newline.c USE_RUBYGEMS = YES MANTYPE = doc NROFF = /usr/bin/nroff vendorarchhdrdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0/vendor_ruby/x86_64-linux sitearchhdrdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0/site_ruby/x86_64-linux rubyarchhdrdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0/x86_64-linux vendorhdrdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0/vendor_ruby sitehdrdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0/site_ruby rubyhdrdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/include/ruby-2.0.0 UNIVERSAL_INTS = UNIVERSAL_ARCHNAMES = configure_args = '--prefix=/usr/local/rvm/rubies/ruby-2.0.0-p353' '--disable-install-doc' '--enable-shared' vendorarchdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/vendor_ruby/2.0.0/x86_64-linux vendorlibdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/vendor_ruby/2.0.0 vendordir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/vendor_ruby sitearchdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/x86_64-linux sitelibdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0 sitedir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby rubyarchdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux rubylibdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0 ruby_version = 2.0.0 sitearch = x86_64-linux arch = x86_64-linux sitearchincludedir = /usr/local/rvm/rubies/ruby-2.0.0-p353/include/x86_64-linux archincludedir = /usr/local/rvm/rubies/ruby-2.0.0-p353/include/x86_64-linux sitearchlibdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/x86_64-linux archlibdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/x86_64-linux RI_BASE_NAME = ri ridir = /usr/local/rvm/rubies/ruby-2.0.0-p353/share/ri rubysitearchprefix = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/x86_64-linux rubyarchprefix = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/x86_64-linux rubylibprefix = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby MAKEFILES = Makefile PLATFORM_DIR = THREAD_MODEL = pthread SYMBOL_PREFIX = EXPORT_PREFIX = COMMON_HEADERS = COMMON_MACROS = COMMON_LIBS = MAINLIBS = ENABLE_SHARED = yes DLDLIBS = -lc SOLIBS = -lpthread -lrt -ldl -lcrypt -lm LIBRUBYARG_SHARED = -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-2.0.0-p353/lib -L/usr/local/rvm/rubies/ruby-2.0.0-p353/lib -lruby LIBRUBYARG_STATIC = -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-2.0.0-p353/lib -L/usr/local/rvm/rubies/ruby-2.0.0-p353/lib -lruby-static LIBRUBYARG = -Wl,-R -Wl,/usr/local/rvm/rubies/ruby-2.0.0-p353/lib -L/usr/local/rvm/rubies/ruby-2.0.0-p353/lib -lruby LIBRUBY = libruby.so.2.0.0 LIBRUBY_ALIASES = libruby.so.2.0 libruby.so LIBRUBY_SO = libruby.so.2.0.0 LIBRUBY_A = libruby-static.a RUBYW_INSTALL_NAME = rubyw_install_name = LIBRUBY_DLDFLAGS = -Wl,-soname,libruby.so.2.0 LIBRUBY_LDSHARED = gcc -shared EXTDLDFLAGS = EXTLDFLAGS = strict_warnflags = -ansi -std=iso9899:199409 warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration debugflags = -ggdb3 optflags = -O3 -fno-fast-math cxxflags = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration cflags = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration cppflags = NULLCMD = : DLNOBJ = dln.o INSTALLDOC = nodoc CAPITARGET = nodoc RDOCTARGET = nodoc DTRACE_GLOMMED_OBJ = DTRACE_OBJ = DTRACE_EXT = dmyh EXECUTABLE_EXTS = ARCHFILE = LIBRUBY_RELATIVE = no EXTOUT = .ext RUNRUBY_COMMAND = $(MINIRUBY) $(srcdir)/tool/runruby.rb --extout=.ext $(RUNRUBYOPT) PREP = miniruby BTESTRUBY = $(MINIRUBY) CROSS_COMPILING = no TEST_RUNNABLE = yes setup = Setup EXTSTATIC = STRIP = strip -S -x TRY_LINK = LIBPATHENV = LD_LIBRARY_PATH RPATHFLAG = -Wl,-R%1$-s LIBPATHFLAG = -L%1$-s LINK_SO = LIBEXT = a DLEXT2 = DLEXT = so LDSHAREDXX = g++ -shared LDSHARED = gcc -shared CCDLFLAGS = -fPIC STATIC = ARCH_FLAG = DLDFLAGS = ALLOCA = codesign = POSTLINK = : WERRORFLAG = -Werror CHDIR = cd -P RMALL = rm -fr RMDIRS = rmdir --ignore-fail-on-non-empty -p RMDIR = rmdir --ignore-fail-on-non-empty CP = cp RM = rm -f PKG_CONFIG = pkg-config PYTHON = DOXYGEN = DOT = DTRACE = MAKEDIRS = /bin/mkdir -p MKDIR_P = /bin/mkdir -p INSTALL_DATA = /usr/bin/install -c -m 644 INSTALL_SCRIPT = /usr/bin/install -c INSTALL_PROGRAM = /usr/bin/install -c SET_MAKE = LN_S = ln -s NM = nm DLLWRAP = WINDRES = OBJCOPY = : OBJDUMP = objdump ASFLAGS = AS = as AR = ar RANLIB = ranlib try_header = COUTFLAG = -o OUTFLAG = -o CPPOUTFILE = -o conftest.i GNU_LD = yes LD = ld GCC = yes EGREP = /bin/grep -E GREP = /bin/grep CPP = gcc -E CXXFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration CXX = g++ OBJEXT = o CPPFLAGS = LDFLAGS = -L. -fstack-protector -rdynamic -Wl,-export-dynamic CFLAGS = -O3 -fno-fast-math -ggdb3 -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration -fPIC CC = gcc NACL_SDK_VARIANT = NACL_SDK_ROOT = NACL_TOOLCHAIN = target_os = linux target_vendor = unknown target_cpu = x86_64 target = x86_64-unknown-linux-gnu host_os = linux-gnu host_vendor = unknown host_cpu = x86_64 host = x86_64-unknown-linux-gnu RUBY_VERSION_NAME = ruby-2.0.0 RUBYW_BASE_NAME = rubyw RUBY_BASE_NAME = ruby build_os = linux-gnu build_vendor = unknown build_cpu = x86_64 build = x86_64-unknown-linux-gnu RUBY_RELEASE_DATE = 2013-11-22 RUBY_PROGRAM_VERSION = 2.0.0 target_alias = host_alias = build_alias = LIBS = -lpthread -lrt -ldl -lcrypt -lm ECHO_T = ECHO_N = -n ECHO_C = DEFS = mandir = /usr/local/rvm/rubies/ruby-2.0.0-p353/share/man localedir = /usr/local/rvm/rubies/ruby-2.0.0-p353/share/locale libdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib psdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/share/doc/ruby pdfdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/share/doc/ruby dvidir = /usr/local/rvm/rubies/ruby-2.0.0-p353/share/doc/ruby htmldir = /usr/local/rvm/rubies/ruby-2.0.0-p353/share/doc/ruby infodir = /usr/local/rvm/rubies/ruby-2.0.0-p353/share/info docdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/share/doc/ruby oldincludedir = /usr/include includedir = /usr/local/rvm/rubies/ruby-2.0.0-p353/include localstatedir = /usr/local/rvm/rubies/ruby-2.0.0-p353/var sharedstatedir = /usr/local/rvm/rubies/ruby-2.0.0-p353/com sysconfdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/etc datadir = /usr/local/rvm/rubies/ruby-2.0.0-p353/share datarootdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/share libexecdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/libexec sbindir = /usr/local/rvm/rubies/ruby-2.0.0-p353/sbin bindir = /usr/local/rvm/rubies/ruby-2.0.0-p353/bin exec_prefix = /usr/local/rvm/rubies/ruby-2.0.0-p353 PACKAGE_URL = PACKAGE_BUGREPORT = PACKAGE_STRING = PACKAGE_VERSION = PACKAGE_TARNAME = PACKAGE_NAME = PATH_SEPARATOR = : SHELL = /bin/bash archdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux topdir = /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux Activated Ruby gems bundler => 1.3.5 Ruby load path ($LOAD_PATH) /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0 /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/x86_64-linux /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/vendor_ruby/2.0.0 /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/vendor_ruby/2.0.0/x86_64-linux /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/vendor_ruby /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0 /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux Ruby loaded libraries ($LOADED_FEATURES) enumerator.so /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/enc/encdb.so /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/enc/trans/transdb.so /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/rbconfig.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/compatibility.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/defaults.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/deprecate.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/errors.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/version.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/requirement.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/platform.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/basic_specification.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/stub_specification.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/specification.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/exceptions.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_gem.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/thread.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/monitor.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/etc.so /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/fileutils.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/tmpdir.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/utils/tmpio.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/platform_info.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/platform_info/operating_system.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/platform_info/ruby.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/platform_info/binary_compatibility.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/buildout/ruby/ruby-2.0.0-x86_64-linux/passenger_native_support.so /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/native_support.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/socket.so /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/socket.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/ruby_core_enhancements.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/utils/tmpdir.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/preloader_shared_helpers.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/public_api.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/debug_logging.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/loader_shared_helpers.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/fcntl.so /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/constants.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/message_channel.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/utils.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/message_client.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/utils/unseekable_socket.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/request_handler/thread_handler.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/request_handler.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/stringio.so /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/utils/tee_input.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/rack/thread_handler_extension.rb /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/lib/phusion_passenger/analytics_logger.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/path_support.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/dependency.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/pathname.so /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/pathname.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/user_interaction.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/config_file.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/rubygems_integration.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/shared_helpers.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/gem_path_manipulation.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/gem_helpers.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/match_platform.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/rubygems_ext.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/version.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/settings.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/digest.so /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/digest.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/digest/sha1.so /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/set.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/definition.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/dependency.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/ruby_dsl.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/dsl.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/source.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/uri/common.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/uri/generic.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/uri/ftp.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/uri/http.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/uri/https.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/uri/ldap.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/uri/ldaps.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/uri/mailto.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/uri.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/timeout.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/protocol.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/zlib.so /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http/exceptions.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http/header.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http/generic_request.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http/request.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http/requests.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http/response.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http/responses.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http/proxy_delta.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http/backward.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/net/http.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/date_core.so /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/date/format.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/date.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/time.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/request.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/cgi/core.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/cgi/util.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/cgi/cookie.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/cgi.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/uri_formatter.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/openssl.so /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/openssl/bn.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/openssl/cipher.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/openssl/config.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/openssl/digest.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/openssl/x509.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/openssl/buffering.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/openssl/ssl.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/openssl.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/securerandom.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/resolv.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/remote_fetcher.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/text.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/name_tuple.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/site_ruby/2.0.0/rubygems/spec_fetcher.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/source/rubygems.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/x86_64-linux/strscan.so /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/source/path.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/source/git.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/lockfile_parser.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/lazy_specification.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/tsort.rb /usr/local/rvm/rubies/ruby-2.0.0-p353/lib/ruby/2.0.0/forwardable.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/spec_set.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/environment.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/runtime.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/index.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/remote_specification.rb /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/bundler-1.3.5/lib/bundler/endpoint_specification.rb 

请提出问题。 谢谢您的帮助。 我会用更好的问题更新这个问题,因为我不知道怎么问。

这是该RVM路径的gemset

 rails@are-wedding:~$ rvm use ruby-2.0.0-p353@global Using /home/rails/.rvm/gems/ruby-2.0.0-p353 with gemset global rails@are-wedding:~$ gem list *** LOCAL GEMS *** bigdecimal (1.2.0) bundler (1.3.5) daemon_controller (1.1.7) io-console (0.4.2) json (1.7.7) minitest (4.3.2) passenger (4.0.27) psych (2.0.0) rack (1.5.2) rake (10.1.0, 0.9.6) rdoc (4.0.0) test-unit (2.0.0.0) 

我问了很多人,但我觉得这个问题与RVM有关。 无论如何任何帮助。

 rake --version rake, version 10.1.0 

以下是/etc/apache2/apache2.conf中的配置信息

  LoadModule passenger_module /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27/buildout/apache2/mod_passenger.so PassengerRoot /home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.27 PassengerDefaultRuby /usr/local/rvm/wrappers/ruby-2.0.0-p353@global/ruby 

您的问题是您添加了一个具有未解析依赖项的其他gem。 运行bundle update来更新你的依赖项,你应该很高兴。

问题是当你从web服务器运行ruby命令时,它不会将/home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems添加到你的GEM_PATH ,只有/usr/local/rvm/.../gems 。 您的rake gem安装在/home/rails/.rvm/gems 。 您需要将/home/rails/.rvm/gems/ruby-2.0.0-p353@global/gems添加到GEM_PATH

因此,经过几个小时的处理这个问题,我发现它是由什么创建的。 所以这就是我如何解决它。

第一个问题是因为我错误地安装了rvm。 我在rails用户下安装了它,导致了一些访问问题。 但是,这无法解决无法找到rake文件的问题。 为了解决这个问题,我不得不重新开始。 因为它是一个容易重启的云服务器。 刚做了一个完整的rest,然后步骤几步。

 \curl -sSL https://get.rvm.io | bash apt-get update apt-get upgrade apt-get install build-essential rvm install ruby-2.0.0-p353 rvm ruby-2.0.0-p353@global --default --create gem install passenger passenger-install-apache2-module 

并非所有这些步骤都需要在某些服务器上,具体取决于安装的内容,但在我的情况下,我想确保一切正常。

当您运行最后一个命令passenger-install-apache2-module您将看到类似这样的内容。 按照我的情况说明我得到了这个结果。

 Installation instructions for required software * To install Curl development headers with SSL support: Please run apt-get install libcurl4-openssl-dev or libcurl4-gnutls-dev, whichever you prefer. * To install Apache 2: Please install it with apt-get install apache2-mpm-worker * To install Apache 2 development headers: Please install it with apt-get install apache2-threaded-dev * To install Apache Portable Runtime (APR) development headers: Please install it with apt-get install libapr1-dev * To install Apache Portable Runtime Utility (APU) development headers: Please install it with apt-get install libaprutil1-dev 

这很简单,只是遵循安装步骤,现在我运行apache。 之后,您再次运行passenger-install-apache2-module

这一切都应该通过,我们将继续下一步。

在我的例子中,下一步是将此代码添加到/etc/apache2/apache2.conf

  LoadModule passenger_module /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.29/buildout/apache2/mod_passenger.so PassengerRoot /usr/local/rvm/gems/ruby-2.0.0-p353@global/gems/passenger-4.0.29 PassengerDefaultRuby /usr/local/rvm/wrappers/ruby-2.0.0-p353@global/ruby 

我只是把它添加到顶部真的无所谓你添加它的一切工作。

完成后,使用这些步骤在rails应用程序上创建一个新的ruby

 rvm use rvm ruby-2.0.0-p353@test --create gem install rails gem install bundler rails new tester cd tester 

之后你需要创建一个新的站点-avaliable.Mine看起来像这样。

 root@rails-app:/etc/apache2/sites-enabled# cat /etc/apache2/sites-available/test.conf  ServerName www.something.com # !!! Be sure to point DocumentRoot to 'public'! DocumentRoot /home/rails/apps/tester/public  # This relaxes Apache security settings. AllowOverride all # MultiViews must be turned off. Options -MultiViews Require all granted Order allow,deny Allow from all   

运行此命令重新启动并添加测试

 sudo a2ensite test && sudo service apache2 restart 

发现如果您没有Require all granted ,它将在错误日志中向您发送类似于此的错误消息。 不完全确定你是否需要其他任何人,比如Allow from all但无论如何我都添加了它们。 如果您想要更多阅读Wiki Apache Org,这里有一些关于此错误的额外文档

 [client 75.1.169.97:51729] AH01797: client denied by server configuration: /home/rails/apps/tester/public/ 

哦,如果你想知道错误日志位于/var/log/apache2/

之后它让我回到上面提到的错误

所以这里是我修复的找不到Could not find rake-10.1.0 in any of the sources (Bundler::GemNotFound)

你需要做的第一件事是简单的刚创建.ruby-version.ruby-gemset这就是我的样子。

 rails@rails-app:~/apps/tester$ cat .ruby-version ruby-2.0.0-p353 rails@rails-app:~/apps/tester$ cat .ruby-gemset test 

之后,您需要将此文件添加到您的配置文件夹中

 # config/setup_load_paths.rb if ENV['MY_RUBY_HOME'] && ENV['MY_RUBY_HOME'].include?('rvm') begin rvm_path = File.dirname(File.dirname(ENV['MY_RUBY_HOME'])) rvm_lib_path = File.join(rvm_path, 'lib') # $LOAD_PATH.unshift rvm_lib_path require 'rvm' RVM.use_from_path! File.dirname(File.dirname(__FILE__)) rescue LoadError # RVM is unavailable at this point. raise "RVM ruby lib is currently unavailable." end end ENV['BUNDLE_GEMFILE'] = File.expand_path('../Gemfile', File.dirname(__FILE__)) require 'bundler/setup' 

这在这里有点神奇,但它正在做的是改变乘客的默认rvmgem集。 但是,如果您使用capistrano,则可以使用rvm-capistrano。 但是你必须使用旧版本的capistrano。 Capistrano 3不适用于rvm-capistrano。

如果这不起作用,可能就是你如何设置它。 无论如何希望有所帮助。

我有这个确切的Passenger消息并使用Brian Armstrong的解决方案解决了它: Bundler在错误的位置安装gems (运行bundle install –system)。

这比needbe更麻烦。 你真正需要做的就是重置你的gem: https : //github.com/phusion/passenger/wiki/Resetting-RVM-gemsets

rvm gemset为空

或者在使用whateveryourgemset之前使用rvm

基本上,您可以列出所有活动的gemsets,将它们全部清空,然后通过从应用程序文件夹再次安装捆绑包将乘客安装到正确的gemset中。 问题解决了。