[Windows] Errno::EACCES: Permission denied @ rb_file_s_symlink
francesco-loreti opened this issue · 9 comments
Errno::EACCES: Permission denied @ rb_file_s_symlink -
(test/migrations/../../lib/generators/public_activity/migration/templates/migration.rb,
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/public_activity-1.6.0/test/migrations/001_create_activities.rb)
An error occurred while installing public_activity (1.6.0), and Bundler cannot
continue.
Make sure that gem install public_activity -v '1.6.0' --source 'https://rubygems.org/'
succeeds before bundling.
Thanks @francesco-loreti, will try to reproduce, but I don't develop on windows so might be tougher to reproduce.
Probably related to #320
Can you try version 1.6.1? It should fix the problem.
Not working
ERROR: While executing gem ... (Errno::EACCES) Permission denied @ rb_file_s_symlink - (test/migrations/../../lib/generators/public_activity/migration/templates/migration.rb, C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/public_activity-1.6.1/test/migration s/001_create_activities.rb)
I hit similar issue on my mac and linux environment. the problem is gems/public_activity-1.6.x/test/migrations/001_create_activities.rb
points to test/migrations/../../lib/generators/public_activity/migration/templates/migration.rb
.
Temporary Solution for me:
get source from github like gem 'public_activity', git: 'https://github.com/chaps-io/public_activity', tag: 'v1.6.2'
To Maintainers :
it seems packaged gem file on rubygems is little bit broken.
in v1.5.0
(https://rubygems.org/downloads/public_activity-1.5.0.gem)
001_create_activities.rb
is a real ruby file.
in v1.6.x
(ex. https://rubygems.org/downloads/public_activity-1.6.0.gem)
001_create_activities.rb
points to test/migrations/../../lib/generators/public_activity/migration/templates/migration.rb
. not ../../lib/generators/public_activity/migration/templates/migration.rb
as https://github.com/chaps-io/public_activity/blob/v1.6.2/test/migrations/001_create_activities.rb
could you check what's happen in between v1.5.0
and v1.6.0
?
Still happening with 1.6.3
Errno::EACCES: Permission denied @ rb_file_s_symlink -
(test/migrations/../../lib/generators/public_activity/migration/templates/migration.rb,
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/public_activity-1.6.3/test/migrations/001_create_activities.rb)
An error occurred while installing public_activity (1.6.3), and Bundler cannot
continue.
Make sure that `gem install public_activity -v '1.6.3' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
public_activity
The temporary solution kawamoto gave worked for me.
Is there any plan on fixing it for future releases?
A year later still happening (1.6.4
now).
Can this issue be re-opened ?
gem 'public_activity'
Fetching public_activity 1.6.4
Installing public_activity 1.6.4
Errno::EACCES: Permission denied @ rb_file_s_symlink -
(test/migrations/../../lib/generators/public_activity/migration/templates/migration.rb,
C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/public_activity-1.6.4/test/migrations/001_create_activities.rb)
An error occurred while installing public_activity (1.6.4), and Bundler cannot
continue.
Make sure that `gem install public_activity -v '1.6.4' --source
'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
public_activity
A year later still happening (
1.6.4
now).
Can this issue be re-opened ?gem 'public_activity'Fetching public_activity 1.6.4 Installing public_activity 1.6.4 Errno::EACCES: Permission denied @ rb_file_s_symlink - (test/migrations/../../lib/generators/public_activity/migration/templates/migration.rb, C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/public_activity-1.6.4/test/migrations/001_create_activities.rb) An error occurred while installing public_activity (1.6.4), and Bundler cannot continue. Make sure that `gem install public_activity -v '1.6.4' --source 'https://rubygems.org/'` succeeds before bundling. In Gemfile: public_activity
gem install public_activity globally
I also get this error on windows 10
gem install administrate -v '0.14.0' --source 'https://rubygems.org/'
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_file_s_symlink - (../CONTRIBUTING.md, C:/Ruby26-x64/lib/ruby/gems/2.6.0/gems/administrate-0.14.0/docs/contributing.md)