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

Linking error in OS X #18

Open
abinashmeher999 opened this issue Feb 19, 2016 · 3 comments
Open

Linking error in OS X #18

abinashmeher999 opened this issue Feb 19, 2016 · 3 comments
Labels
Milestone

Comments

@abinashmeher999
Copy link
Contributor

The travis-ci build for OS X terminates with the following error message.

bundle exec rspec

/Users/travis/gems/symengine-0.1.0/lib/symengine.rb:1:in `require': cannot load such file -- symengine/symengine (LoadError)

    from /Users/travis/gems/symengine-0.1.0/lib/symengine.rb:1:in `<top (required)>'

    from /Users/travis/gems/symengine-0.1.0/spec/spec_helper.rb:16:in `require_relative'

    from /Users/travis/gems/symengine-0.1.0/spec/spec_helper.rb:16:in `<top (required)>'

    from /Users/travis/gems/symengine-0.1.0/spec/arit_spec.rb:1:in `require'

    from /Users/travis/gems/symengine-0.1.0/spec/arit_spec.rb:1:in `<top (required)>'

Complete log here.

@isuruf isuruf changed the title Rspec tests fail in OS X for Ruby version 1.9.3 Linking error in OS X Feb 24, 2016
@isuruf
Copy link
Member

isuruf commented Oct 8, 2016

@abinashmeher999, any updates on this?

@isuruf isuruf added this to the Release 0.1.0 milestone Oct 8, 2016
@abinashmeher999
Copy link
Contributor Author

The OS X system that I had was an office computer and had it with me for a short duration. Couldn't find out much about this.

@genya0407
Copy link

genya0407 commented Nov 8, 2016

I have the same error as @abinashmeher999's one in my local mac osx.

It seems that any other gems with native extensions doesn't have '.so' binary file, but has '.bundle' binary file.
I'm not sure, but I think that building native extension on osx might need some extra cmake configuration to generate '.bundle' file.

In addition, in my environment, load '/Users/sangenya/.rbenv/versions/2.3.0-dev/lib/ruby/gems/2.3.0/gems/symengine-0.0.2/lib/symengine/symengine.so' fails with the following error:

SyntaxError: /Users/sangenya/.rbenv/versions/2.3.0-dev/lib/ruby/gems/2.3.0/gems/symengine-0.0.2/lib/symengine/symengine.so:1: invalid multibyte char (UTF-8)
    from (irb):2:in `load'
    from (irb):2
    from /Users/sangenya/.rbenv/versions/2.3.0-dev/bin/irb:11:in `<main>'

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants