Closed madhon closed 4 years ago
Similarly, I receive the following error when trying to install on Windows.
Errno::EACCES: Permission denied @ rb_file_s_symlink -
(vendor/pygments-main/scripts/debug_lexer.py,
C:/Ruby23/lib/ruby/gems/2.3.0/gems/pygments.rb-1.1.1/vendor/pygments-main/scripts/find_error.py)
An error occurred while installing pygments.rb (1.1.1), and Bundler cannot
continue.
Make sure that `gem install pygments.rb -v '1.1.1'` succeeds before bundling.
Same with 1.1.2. find_error.py was supposed to be excluded as it is a symlink and @mojavelinux (#177) fixed it. I tested his fix manually under Linux and it worked. Maybe author used another OS (MacOS e.g.) where that find ...
command doesn't work? Anyway vendor/pygments-main/scripts/find_error.py
wasn't supposed to be in resulting gem.
cc @tmm1, @gfx
Can you try v1.2.0? It excludes symlinks without using find(1)
.
1.2.0 installed successfully on Windows. Thanks for the fix!
I believe, this issue should be closed as fixed.
ruby 2.2.5p319 (2016-04-26 revision 54774) [i386-mingw32] RubyGem 2.6.8 Windows 10 Pro x64
''' Updating installed gems Updating pygments.rb Fetching: pygments.rb-1.1.1.gem (100%) C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:388:in'
'''
symlink': symlink () function is unimplemented on this machine (NotImplementedError) from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:388:in
bloc k (2 levels) in extract_tar_gz' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package/tar_reader.rb:6 5:ineach' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:365:in
bloc k in extract_tar_gz' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:459:inbloc k in open_tar_gz' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:456:in
wrap ' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:456:inopen _tar_gz' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:364:in
extr act_tar_gz' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:345:inbloc k (2 levels) in extract_files' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package/tar_reader.rb:6 5:in
each' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:342:inbloc k in extract_files' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package/file_source.rb: 30:in
open' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package/file_source.rb: 30:inwith_read_io' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/package.rb:339:in
extr act_files' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/installer.rb:772:inex tract_files' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/installer.rb:302:in
in stall' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/resolver/specification. rb:97:ininstall' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:166:in
block in install' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:156:ineach' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/request_set.rb:156:in
install' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/dependency_installer.rb :405:ininstall' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/commands/update_command .rb:213:in
update_gem' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/commands/update_command .rb:225:inblock in update_gems' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/commands/update_command .rb:224:in
each' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/commands/update_command .rb:224:inupdate_gems' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/commands/update_command .rb:100:in
execute' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/command.rb:310:ininvo ke_with_build_args' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/command_manager.rb:169: in
process_args' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/command_manager.rb:139: inrun' from C:/Ruby22/lib/ruby/site_ruby/2.2.0/rubygems/gem_runner.rb:55:in
ru n' from C:/Ruby22/bin/gem:21:in `