当我运行bundle时,我收到以下错误
~/rails_apps/redmine]# bundle
/usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:247:in `to_specs': Could not find bundler (>= 0) amongst [RedCloth-4.2.9, ZenTest-4.8.2, actionmailer-2.3.14, actionpack-2.3.14, activerecord-2.3.14, activeresource-2.3.14, activesupport-2.3.14, cgi_multipart_eof_fix-2.5.0, daemons-1.1.5, eventmachine-0.12.10, fastercsv-1.5.5, fastthread-1.0.7, ferret-0.11.8.4, gchartrb-0.8, gem_plugin-0.2.3, icalendar-1.2.0, json-1.7.5, mongrel-1.1.5, rack-1.1.3, rails-2.3.14, rake-0.9.2.2, rmagick-2.13.1, rubygems-update-1.8.15, sqlite3-1.3.5, test-spec-0.10.0, tzinfo-0.3.33] (Gem::LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/dependency.rb:256:in `to_spec'
from /usr/lib/ruby/site_ruby/1.8/rubygems.rb:1208:in `gem'
from /home/jmg810/ruby/gems/bin/bundle:18
Run Code Online (Sandbox Code Playgroud)
这是我的本地宝石列表,您会注意到这些宝石与本地宝石的完整列表不匹配
*** LOCAL GEMS ***
actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord-jdbc-adapter (1.2.2)
activerecord-jdbcmysql-adapter (1.2.2)
activesupport (3.2.8)
bouncy-castle-java (1.5.0146.1)
builder (3.0.3)
bundler (1.2.1)
coderay (1.0.7)
edavis10-object_daddy (0.4.3)
erubis (2.7.0)
fastercsv (1.5.5)
hike (1.2.1) …Run Code Online (Sandbox Code Playgroud) 我将文件保存到项目外部的临时目录中,我需要能够在保存后链接到它们.
我尝试添加资源处理程序
registry.addResourceHandler("/photo/**").addResourceLocations("D://photo//");
Run Code Online (Sandbox Code Playgroud)
但是看起来spring并不认为文件不在类路径上
21:58:48.293 [http-nio-8080-exec-14] DEBUG o.s.w.s.h.SimpleUrlHandlerMapping - Mapping [/photo/a.png] to HandlerExecutionChain with handler [ResourceHttpRequestHandler [locations=[ServletContext resource [/D://photo//]], resolvers=[org.springframework.web.servlet.resource.PathResourceResolver@782ce27b]]] and 1 interceptor
Run Code Online (Sandbox Code Playgroud)
是否有一个前缀或我缺少的东西?
谢谢!