Comments (13)
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.
onigposix.h is here: http://www.geocities.jp/kosako3/oniguruma/index.html
from mruby-onig-regexp.
great. thanks!
from mruby-onig-regexp.
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.
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.
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.
@take-cheeze Thanks! It seems rubyinstaller for windows doesn't contains libarchive. Hmm.
from mruby-onig-regexp.
@take-cheeze Is this ok? 1fbb9fb
from mruby-onig-regexp.
@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.
Thanks for the Windows workaround too.
from mruby-onig-regexp.
@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.
@bovi Is this closable?
from mruby-onig-regexp.
@mattn nearly forget this issue ;-) Yes it is! Thanks a lot!
from mruby-onig-regexp.
Related Issues (20)
- How to cross compile this gem? HOT 7
- Compilation failed on Visual Studio 2019
- Can not cross complie for x86_64-w64-mingw32 on Mac HOT 8
- test fails when MRB_UTF8_STRING is defined HOT 4
- No way to explicitly use the included libonig instead of what is installed on the host system
- ld: symbol(s) not found for architecture x86_64 HOT 3
- Slice on empty string
- gem description maybe is "鬼車", not "鬼雲" ? HOT 1
- string size too big (ArgumentError)
- infinite loop when empty regexp HOT 2
- Doesn't freak out when replacing `^` HOT 2
- Abort on UTF-8 split with empty src HOT 7
- /./ should match to latin-1 letter when MRB_UTF8_STRING is not defined.
- build with bundled onigmo fails when c++ API is enabled HOT 3
- Problems finding oniguruma.h HOT 2
- Support `Regexp#match?` HOT 8
- Freeze regex variable HOT 1
- Match? bug HOT 2
- Supporting non-word char in group name HOT 1
- slice! does not work with Regexp HOT 3
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 mruby-onig-regexp.