News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
io.popen not supported?
Author Message
iGame3D
Moderator
***


Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #1
io.popen not supported?

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.

Code:
> 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?

05-27-2007 08:31 AM
Visit this user's website Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #2
RE: io.popen not supported?

popen support was added in version 0.4.1
That was one of the things I had been looking forward to myself.

05-27-2007 03:03 PM
Find all posts by this user Quote this message in a reply
iGame3D
Moderator
***


Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #3
RE: io.popen not supported?

I did the build, I must not have done something right.
Back to the terminal...

05-27-2007 09:06 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #4
RE: io.popen not supported?

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)
http://www.murga-projects.com/forum/show...php?tid=10

05-27-2007 09:49 PM
Find all posts by this user Quote this message in a reply
iGame3D
Moderator
***


Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #5
RE: io.popen not supported?

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.

05-27-2007 10:13 PM
Visit this user's website Find all posts by this user Quote this message in a reply
JohnMurga
Administrator
*******


Posts: 381
Group: Administrators
Joined: Apr 2007
Status: Offline
Reputation: 2
Post: #6
RE: io.popen not supported?

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.

Cheers
JohnM

05-30-2007 06:11 AM
Visit this user's website Find all posts by this user Quote this message in a reply
iGame3D
Moderator
***


Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #7
RE: io.popen not supported?

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

05-30-2007 05:51 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: