简体   繁体   English

Rails4-错误Errno :: EINVAL:无效的参数@ rb_sysopen-路径/路径/路径

[英]Rails4 - ERROR Errno::EINVAL: Invalid argument @ rb_sysopen - path/path/path


Hello, after running bundle install (or update) today (27-Aug-2015) I received this error: 您好,今天(2015年8月27日)运行捆绑包安装(或更新)后,我收到此错误:

ERROR Errno::EINVAL: Invalid argument @ rb_sysopen - C:/_Daten/Ruby/ai/C:/_Daten/Ruby/ai/C:/_Daten/Ruby/ai/C:/_Daten/Ruby/ai/C:/_Daten/Ruby/ai/app/assets/images/cp-points-icon.ico

As you can see, the path "C:/_Daten" is repeated 5 times. 如您所见,路径“ C:/ _ Daten”重复了5次。
I cannot imagine why and where it happens. 我无法想象它发生的原因和地点。
My _form.haml.html looks like this: 我的_form.haml.html看起来像这样:

<%= image_tag 'cp-logo.png', class: "logo", style: "height:18px; width:auto; " %>

This happens on my Windows 10 development environment. 这发生在我的Windows 10开发环境中。
My Ubunt15.04 development environment is showing the icons and pictures quite correct. 我的Ubunt15.04开发环境显示的图标和图片非常正确。
And now checked on my Win7 development environment. 现在检查我的Win7开发环境。 That is bringing up the same issue. 那带来了同样的问题。

Issue is: for all pics and icons and glyphicons the path is being inserted more than one time. 问题是:对于所有图片,图标和字形图标,路径已插入多次。
This is my code for showing glyphicons: 这是我显示字形的代码:

<i class="glyphicon glyphicon-home"> Home</i>


And the error is like this: 错误是这样的:

ERROR Errno::EINVAL: Invalid argument @ rb_sysopen - C:/_Daten/Ruby/ai/C:/_Daten/Ruby/ai/C:/_Daten/Ruby/ai/C:/Ruby21/lib/ruby/gems/2.1.0/gems/bootstrap-sass-3.3.4.1/assets/fonts/bootstrap/glyphicons-halflings-regular.woff

So my question now is: how can I take control of the path for the glyphicon-file. 所以我现在的问题是:我如何控制glyphicon文件的路径。
Any help from anyone? 任何人的帮助吗?
Thanks. 谢谢。

On 02-Sep-2015 the sprockets gem has been updated to version 3.3.4 . 在2015年9月2日, 链轮 gem已更新至版本3.3.4
I checked my app with this version and all seems to be displayed correctly. 我用此版本检查了我的应用程序,所有似乎都能正确显示。
There are no more issues with displaying images, icons and glyphicons. 显示图像,图标和字形图标不再有问题。
The path is now not added more than needed. 现在,添加的路径没有超出所需数量。

Solution: Do not use sprockets gem in version 3.3.3 as it is buggy. 解决方案:请勿在3.3.3版中使用链轮式宝石,因为它有故障。 Update the sprockets gem to 3.3.4. 将链轮gem更新为3.3.4。

This should be the process to install new gems: 这应该是安装新gem的过程:
a) install manually, do not use bundle install, as that is updating all existing gems a)手动安装,请勿使用捆绑安装,因为这将更新所有现有的gem
b) after checking the newly installed gem, include that into your gemfile with a specific version to ensure no updates will be done in an unattended way. b)检查新安装的gem后,将其包含在具有特定版本的gemfile中,以确保不会以无人看管的方式进行更新。

Hope this helps. 希望这可以帮助。
Regards, Andi. 问候,安迪。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Rails应用程序的正确路径或权限? -没有这样的文件或目录@ rb_sysopen - Correct path or permissions for Rails app? - No such file or directory @ rb_sysopen Ruby On Rails,错误运行命令“ rails generate controller”,输入/输出错误@ rb_sysopen,(Errno :: EIO) - Ruby On Rails, Error running command “rails generate controller”, Input/output error @ rb_sysopen, (Errno::EIO) rails 4:Errno :: ENOENT(没有这样的文件或目录@ rb_sysopen - / assets / - rails 4: Errno::ENOENT (No such file or directory @ rb_sysopen - /assets/ Errno :: ENOENT - 没有这样的文件或目录@ rb_sysopen - Errno::ENOENT - No such file or directory @ rb_sysopen Errno::ENOENT 没有那个文件或目录@rb_sysopen - Errno::ENOENT No such file or directory @ rb_sysopen Rails 3-错误Errno :: EINVAL:测试页面时参数无效 - Rails 3 - ERROR Errno::EINVAL: Invalid argument when testing the page Rails gem 权限被拒绝@ rb_sysopen - Rails gem Permission denied @ rb_sysopen Rails的公共目录中的文件-Errno :: ENOENT(无此类文件或目录@ rb_sysopen - Files in public directory in Rails - Errno::ENOENT (No such file or directory @ rb_sysopen ruby on rails Errno :: EACCES权限被拒绝@ rb_sysopen-product.log - ruby on rails Errno::EACCES Permission denied @ rb_sysopen - product.log 带有 Rails API 的 Expo Image Picker 获取 Errno::ENOENT(没有这样的文件或目录 @ rb_sysopen - Expo Image Picker With Rails API gets Errno::ENOENT (No such file or directory @ rb_sysopen
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM