Comments (14)
error about ncurses fixed by
export CPPFLAGS="-P"
from ruby-packer.
Interesting. This is due to a dependency-library failing to compile, i.e. ncurses
. What is your compiler version? Maybe it's too old? You could Google it since this is about ncurses and not related directly to ruby or rubyc.
from ruby-packer.
Yeah. You are correct. This was an external error, which I seem to have fixed. But I have run into another error.
ERROR: Could not find a valid gem '/__enclose_io_memfs__/local/vendor/bundler-1.15.2.gem' (>= 0) in any repository
Failed running [{"CI"=>"true", "PATH"=>"/tmp/rubyc/ruby-2.4.1-0.3.0/build/bin:/home/novneet/.rvm/gems/ruby-2.3.3@rails5/bin:/home/novneet/.rvm/gems/ruby-2.3.3@global/bin:/home/novneet/.rvm/rubies/ruby-2.3.3/bin:/home/novneet/bin:/home/novneet/.local/bin:/home/novneet/.nvm/versions/node/v4.2.3/bin:/home/novneet/bin:/home/novneet/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/novneet/.rvm/bin:/snap/bin:/home/novneet/.rvm/bin:/home/novneet/.rvm/bin", "GEM_HOME"=>nil, "GEM_PATH"=>nil, "ENCLOSE_IO_USE_ORIGINAL_RUBY"=>"1", "ENCLOSE_IO_RUBYC_1ST_PASS"=>"1", "ENCLOSE_IO_RUBYC_2ND_PASS"=>nil}, "sh", "-c", "gem install /__enclose_io_memfs__/local/vendor/bundler-1.15.2.gem --force --local --no-rdoc --no-ri"]
I have bundler version 1.15.3. Do I need to downgrade it to v 1.15.2?
Oh and you have not mentioned it the docs, but rubyc works fine with rvm right?
from ruby-packer.
@novneetnov This is definitely my fault, since there is another similarly reported issue . Let me fix it ASAP.
from ruby-packer.
@novneetnov Weird. I failed to reproduce it locally in the latest master
branch (i.e. 0.4.0
). Which version of rubyc
are you using?
from ruby-packer.
@pmq20 I have downloaded rubyc by the following command:
curl -L http://enclose.io/rubyc/rubyc-linux-x64.gz | gunzip > rubyc
This get me the 0.3.0 version.
How do I get the latest version? Should I clone the master branch locally?
from ruby-packer.
@novneetnov Yes, please clone the master branch and then execute from bin/rubyc
to see if it is already fixed. I'll release the next version very soon. Thanks!
from ruby-packer.
I figured it out. gem cannot read a virtual path. The reason why it works from the master repo is that it is reading a real path. When running from stand-alone nodec
or nodec.exe
, it is a virtual path.
Fixed in a84edb6
I'll release it in rubyc v0.4.0 as soon as possible.
from ruby-packer.
I have the same problem, look forward to rubyc v0.4.0
from ruby-packer.
@novneetnov @obromios Ruby Compiler v0.4.0 released! Download: http://enclose.io/rubyc
from ruby-packer.
I downloaded the latest version and checked that ./rubyc --version
gives 0.4.0. I am no longer getting the error above, but I get a few problems. I am running on a Mac.
The first is a warning 'The latest bundler is 1.15.4, but you are currently running 1.15.3'. This is puzzling because I am using 1.15.4, and do not have 1.15.3 installed. As well, in the output of the rubyc it actually says it is installing 1.15.3.
Second, there appears to be a fatal error 'Your Ruby version is 2.4.1, but your Gemfile specified 2.2.7
Failed Running...'
Do I need to upgrade to ruby 2.4.1 to use rubyc?
As a sanity check, I ran rubyc on a 'hello world' ruby file.
#!/usr/bin/env ruby
puts 'Hello World'
This also failed, with the error
/__enclose_io_memfs__/local/lib/compiler.rb:678:in `binread': Invalid argument @ io_fread - enclose_io_memfs.squashfs (Errno::EINVAL)
from /__enclose_io_memfs__/local/lib/compiler.rb:678:in `block in make_enclose_io_memfs'
from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in `block in chdir'
from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in `chdir'
from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in `chdir'
from /__enclose_io_memfs__/local/lib/compiler.rb:673:in `make_enclose_io_memfs'
from /__enclose_io_memfs__/local/lib/compiler.rb:485:in `block in run!'
from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in `block in chdir'
from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in `chdir'
from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in `chdir'
from /__enclose_io_memfs__/local/lib/compiler.rb:365:in `run!'
from /__enclose_io_memfs__/local/bin/rubyc:149:in `<main>'
from ruby-packer.
@obromios Regarding the sanity check, it looks as though enclose_io_memfs.squashfs
does not exist. Could you paste more log so that I can inspect about the generating of enclose_io_memfs.squashfs
?
from ruby-packer.
Closing due to lack of response.
from ruby-packer.
@obromios Regarding the sanity check, it looks as though
enclose_io_memfs.squashfs
does not exist. Could you paste more log so that I can inspect about the generating ofenclose_io_memfs.squashfs
?
-> rm -f /tmp/rubyc/rubyc_work_dir/enclose_io_memfs/lib/ruby/2.4.0/x86_64-linux/enc/utf_16le.so
-> rm -f /tmp/rubyc/rubyc_work_dir/enclose_io_memfs/lib/ruby/2.4.0/x86_64-linux/enc/utf_32be.so
-> rm -f /tmp/rubyc/rubyc_work_dir/enclose_io_memfs/lib/ruby/2.4.0/x86_64-linux/enc/utf_32le.so
-> rm -f /tmp/rubyc/rubyc_work_dir/enclose_io_memfs/lib/ruby/2.4.0/x86_64-linux/enc/windows_31j.so
-> rm -f /tmp/rubyc/rubyc_work_dir/enclose_io_memfs/lib/ruby/2.4.0/x86_64-linux/enc/windows_1250.so
-> rm -f /tmp/rubyc/rubyc_work_dir/enclose_io_memfs/lib/ruby/2.4.0/x86_64-linux/enc/windows_1251.so
-> rm -f /tmp/rubyc/rubyc_work_dir/enclose_io_memfs/lib/ruby/2.4.0/x86_64-linux/enc/windows_1252.so
-> rm -f /tmp/rubyc/rubyc_work_dir/enclose_io_memfs/lib/ruby/2.4.0/x86_64-linux/enc/windows_1253.so
-> rm -f /tmp/rubyc/rubyc_work_dir/enclose_io_memfs/lib/ruby/2.4.0/x86_64-linux/enc/windows_1254.so
-> rm -f /tmp/rubyc/rubyc_work_dir/enclose_io_memfs/lib/ruby/2.4.0/x86_64-linux/enc/windows_1257.so
-> cd /opt/rubyc
-> cp -r "/opt/rubyc" "/tmp/rubyc/rubyc_work_dir/enclose_io_memfs/local"
-> cd /tmp/rubyc/rubyc_work_dir/enclose_io_memfs/local
-> cd bin
/enclose_io_memfs/local/lib/compiler/utils.rb:45:in chdir': No such file or directory @ dir_chdir - bin (Errno::ENOENT) from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in
chdir'
from /enclose_io_memfs/local/lib/compiler.rb:645:in block (2 levels) in prepare_local' from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in
block in chdir'
from /enclose_io_memfs/local/lib/compiler/utils.rb:45:in chdir' from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in
chdir'
from /enclose_io_memfs/local/lib/compiler.rb:635:in block in prepare_local' from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in
block in chdir'
from /enclose_io_memfs/local/lib/compiler/utils.rb:45:in chdir' from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in
chdir'
from /enclose_io_memfs/local/lib/compiler.rb:527:in prepare_local' from /__enclose_io_memfs__/local/lib/compiler.rb:464:in
block in run!'
from /enclose_io_memfs/local/lib/compiler/utils.rb:45:in block in chdir' from /__enclose_io_memfs__/local/lib/compiler/utils.rb:45:in
chdir'
from /enclose_io_memfs/local/lib/compiler/utils.rb:45:in chdir' from /__enclose_io_memfs__/local/lib/compiler.rb:365:in
run!'
from /enclose_io_memfs/local/bin/rubyc:149:in `
from ruby-packer.
Related Issues (20)
- Pack more files HOT 2
- Can not build with Ruby 3.0.0 HOT 1
- Implicit declaration in C99 error when packing a rails project using Ruby 2.4.10 HOT 3
- Error loading nokogiri when starting compiled binary HOT 14
- The build is broken, due to Rubocop error
- rubyc not starting anymore since enclose.io is down
- Dir.glob returns inconsistent results inside memfs
- Reading from memfs file is not thread safe
- `require` is 10 times slower in packed ruby
- Is it possible to compile for Linux but on a Mac?
- Fails to build with both Stable and Pre-release HOT 1
- [Documentation] Differences to ocra?
- how to install another gems in linux system HOT 1
- TestFailed! nmake /f win32\Makefile.msc Failed running HOT 1
- Error building executable gem: error compiling squash.c
- Provide a GitHub action to setup and run rubyc
- Manual pages not compiled HOT 1
- ruby-packer sets BUNDLE_GEMFILE inside the running script
- Build error HOT 1
- ** Ruby-packer replacement, maintained **
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ruby-packer.