Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some problems to install rable on windows #740

Open
shakhanabdiev opened this issue Nov 19, 2020 · 2 comments
Open

some problems to install rable on windows #740

shakhanabdiev opened this issue Nov 19, 2020 · 2 comments

Comments

@shakhanabdiev
Copy link

gem install rabl

C:\Users\User\Documents\Projects\e_commerce>gem install rabl
ERROR: While executing gem ... (Errno::EACCES)
Permission denied @ rb_file_s_symlink - (fixtures/ashared/views_rails_3/users/phone_number.json.rabl, C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/rabl-0.14.3/fixtures/ashared/views_rails_3/users/phone_number.xml.rabl)

@tagliala
Copy link
Collaborator

Hi,

thanks for reporting this

I can confirm the issue. This is caused by symlinks that do not work properly on windows

I do not use windows as a development machine and I can't clearly find a solution on google.

Would rather duplicate the files and 👋 👋

@Ex-Ark
Copy link

Ex-Ark commented Dec 29, 2020

Same issue, symlink not working on windows

Workaround is to build from source :

git clone https://github.com/nesquena/rabl
cd rabl
# optional
# git checkout whatever version you need
gem build rabl.gemspec

should output

 Successfully built RubyGem
  Name: rabl
  Version: 0.14.3
  File: rabl-0.14.3.gem

Then you can install it system wide, so it should be properly picked up by any project (Gemfile refering to this specific version).

gem install rable-0.14.3.gem

Proper & prod ready solution would be for the lib to drop the use of symlink and hard copy the file itself.
Especially if it's fixtures data that's crashing the gem install on other OS.

for my case it was phone_number.json.rabl as well

@tagliala tagliala changed the title some problems to install rable some problems to install rable on windows Dec 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants