Giter Club home page Giter Club logo

Comments (14)

iamsimakov avatar iamsimakov commented on August 28, 2024 2

error about ncurses fixed by
export CPPFLAGS="-P"

from ruby-packer.

pmq20 avatar pmq20 commented on August 28, 2024

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.

novneetnov avatar novneetnov commented on August 28, 2024

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.

pmq20 avatar pmq20 commented on August 28, 2024

@novneetnov This is definitely my fault, since there is another similarly reported issue . Let me fix it ASAP.

#11

from ruby-packer.

pmq20 avatar pmq20 commented on August 28, 2024

@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.

novneetnov avatar novneetnov commented on August 28, 2024

@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.

pmq20 avatar pmq20 commented on August 28, 2024

@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.

pmq20 avatar pmq20 commented on August 28, 2024

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.

obromios avatar obromios commented on August 28, 2024

I have the same problem, look forward to rubyc v0.4.0

from ruby-packer.

pmq20 avatar pmq20 commented on August 28, 2024

@novneetnov @obromios Ruby Compiler v0.4.0 released! Download: http://enclose.io/rubyc

from ruby-packer.

obromios avatar obromios commented on August 28, 2024

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.

pmq20 avatar pmq20 commented on August 28, 2024

@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.

drbrain avatar drbrain commented on August 28, 2024

Closing due to lack of response.

from ruby-packer.

Githubsectest avatar Githubsectest commented on August 28, 2024

@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?

-> 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.