GithubHelp home page GithubHelp logo

onigposix.h missing about mruby-onig-regexp HOT 13 CLOSED

mattn avatar mattn commented on July 24, 2024
onigposix.h missing

from mruby-onig-regexp.

Comments (13)

mattn avatar mattn commented on July 24, 2024

I suppose that you have onigposix.h in /usr/include or /usr/local/include. But I will change mruby-onig-regexp to static-link gem.

from mruby-onig-regexp.

mattn avatar mattn commented on July 24, 2024

onigposix.h is here: http://www.geocities.jp/kosako3/oniguruma/index.html

from mruby-onig-regexp.

bovi avatar bovi commented on July 24, 2024

great. thanks!

from mruby-onig-regexp.

xxuejie avatar xxuejie commented on July 24, 2024

Hi guys, is there a second way around this? I'm the author of webruby, and someone reported an issue saying that they cannot use this gem in webruby. I took a little look, the problem is that oniguruma is missing.

Just to provide a little background here: webruby uses emscripten to compile mruby, it uses its own libc and libc++ libraries instead of using the system's libs, which means that there is not likely to be an onigurama impl.

So I just want to ask here if there is another way around this problem. Is it possible to add an option here to let the users choose whether to use the one in /usr/include(and /usr/lib), or compile one on-the-fly?

from mruby-onig-regexp.

rjst avatar rjst commented on July 24, 2024

Given how little oniguruma changes, wouldn't it make sense to simply bundle oniguruma in mruby-onig-regexp ? This would make building mruby-onig-regexp simpler, for example to build on mac oniguruma has to be installed, for example with brew.

thanks,
Ricardo

from mruby-onig-regexp.

take-cheeze avatar take-cheeze commented on July 24, 2024

Btw, I made some mrbgem.rake that builds oniguruma so libonig.a would be linked when a executable needs to be built. Maybe it can be linked to shared library or DLL.
I want to use this in mruby-uv too so that libuv version problem can be solved with it.
Though it's little dirty so I would want a rubyist to refactor it.

from mruby-onig-regexp.

mattn avatar mattn commented on July 24, 2024

@take-cheeze Thanks! It seems rubyinstaller for windows doesn't contains libarchive. Hmm.

from mruby-onig-regexp.

mattn avatar mattn commented on July 24, 2024

@take-cheeze Is this ok? 1fbb9fb

from mruby-onig-regexp.

take-cheeze avatar take-cheeze commented on July 24, 2024

@mattn It was OK on my OS X 10.9. No need to use MacPorts oniguruma now.
Btw @xxuejie @rjst, is 1fbb9fb enough to close this issue?

from mruby-onig-regexp.

take-cheeze avatar take-cheeze commented on July 24, 2024

Thanks for the Windows workaround too.

from mruby-onig-regexp.

xxuejie avatar xxuejie commented on July 24, 2024

@take-cheeze Thanks for the fix! I haven't given it a test. But for my case, I think this is good enough to solve the problem.

from mruby-onig-regexp.

mattn avatar mattn commented on July 24, 2024

@bovi Is this closable?

from mruby-onig-regexp.

bovi avatar bovi commented on July 24, 2024

@mattn nearly forget this issue ;-) Yes it is! Thanks a lot!

from mruby-onig-regexp.

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.