Murga-Projects Forums

Full Version: io.popen not supported?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I have had a few issues with some of lua's functions from within lua and murgaLua.
For instance io.popen complains about not being supported.

> io.popen("fluid")
stdin:1: 'popen' not supported
stack traceback:
        [C]: in function 'popen'
        stdin:1: in main chunk
        [C]: ?

In iGame3D it works but I don't know what we did different as far as lua/murgaLua goes.

Any clues?

popen support was added in version 0.4.1
That was one of the things I had been looking forward to myself.
I did the build, I must not have done something right.
Back to the terminal...
It apparently does have something to do with how it's built, although I can only point you to another thread and hope you understand it, because I didn't =o)
Yeah my build is no go for popen on mac os intel.
Tobi has a Universal binary somewhere that probably solves this problem, I know he did some tricks to the make file. Hope we can get this squared away.
Sorry, a few things came up with my personal life and I have been traveling lately.

Yes, this problem is due to the way LUA is built.

The popen test is pure LUA, so rebuild LUA with "make bsd; make install" and you
should be able to use popen ... I thought the macOs binary worked :-(

Anyway, then you'll have to re-build murgaLua.

Ok I've rebuilt it, a few times, finally got it to work right.
murgaLua Mac OS X (BSD build) .0.4.1
Reference URL's