|
View:
New views
18 Messages
—
Rating Filter:
Alert me
|
|
|
Help with building the Socket addon pleaseHello everyone!
I stumbled upon Io the other day and I very much like what I see! I want to continue exploring the language and since most of my background is in web-related stuff with Python and some JavaScript (aside: server side js is starting to look cool what with commonjs and such. Too bad the implementation of prototypes is so lame in js, one of the things that attracts me to Io is the good implementation of protos). Anyyyyways, I figured I would introduce myself to this foreign world of Io with something a little familiar: little web apps. Unfortunately, it seems the Socket addon did not compile with the rest of Io: Io> Socket > > Exception: Failed to load Addon Socket - it appears that the addon exists > but was not compiled. You might try running 'make Socket' in the Io source > folder. > --------- > Object Socket Command Line 1 > I tried running "sudo make Socket" inside the io dir, and this is what is dumped to stdout: > ./_build/binaries/io_static build.io -a Socket > > --- Socket > -------------------------------------------------------------------- > > build.io: Entering directory `addons/Socket' > > cp source/*.h _build/headers > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN -DIOBINDINGS > -I../../libs/basekit/_build/headers > -I../../libs/garbagecollector/_build/headers > -I../../libs/coroutine/_build/headers -I../../libs/iovm/_build/headers > -I/usr/local/include -I/usr/include -I/usr/include/freetype2 > -I/usr/include/cairo -I/usr/include/python2.6 -I. -fPIC -c -o > _build/objs/IoEventManager.o source/IoEventManager.c > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN -DIOBINDINGS > -I../../libs/basekit/_build/headers > -I../../libs/garbagecollector/_build/headers > -I../../libs/coroutine/_build/headers -I../../libs/iovm/_build/headers > -I/usr/local/include -I/usr/include -I/usr/include/freetype2 > -I/usr/include/cairo -I/usr/include/python2.6 -I. -fPIC -c -o > _build/objs/IoEvRequest.o source/IoEvRequest.c > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN -DIOBINDINGS > -I../../libs/basekit/_build/headers > -I../../libs/garbagecollector/_build/headers > -I../../libs/coroutine/_build/headers -I../../libs/iovm/_build/headers > -I/usr/local/include -I/usr/include -I/usr/include/freetype2 > -I/usr/include/cairo -I/usr/include/python2.6 -I. -fPIC -c -o > _build/objs/IoEvent.o source/IoEvent.c > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN -DIOBINDINGS > -I../../libs/basekit/_build/headers > -I../../libs/garbagecollector/_build/headers > -I../../libs/coroutine/_build/headers -I../../libs/iovm/_build/headers > -I/usr/local/include -I/usr/include -I/usr/include/freetype2 > -I/usr/include/cairo -I/usr/include/python2.6 -I. -fPIC -c -o > _build/objs/IoEvConnection.o source/IoEvConnection.c > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN -DIOBINDINGS > -I../../libs/basekit/_build/headers > -I../../libs/garbagecollector/_build/headers > -I../../libs/coroutine/_build/headers -I../../libs/iovm/_build/headers > -I/usr/local/include -I/usr/include -I/usr/include/freetype2 > -I/usr/include/cairo -I/usr/include/python2.6 -I. -fPIC -c -o > _build/objs/IoSocketInit.o source/IoSocketInit.c > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o > > ranlib _build/lib/libIoSocket.a > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/local/lib > -L/usr/lib -levent -L../../_build/dll -liovmall > > build.io: Leaving directory `addons/Socket' > But I still can't use the Socket addon, and receive the same message I originally had in Io. I have been spoiled in the past, and have been able to install most everything I want through apt-get (I'm running Ubuntu 9.04 by the way) and have never had to troubleshoot compiling source files. I'm utterly lost. Can anyone help me? Thanks for being patient with me and thanks for helping. _Nick_ |
|
|
Re: Help with building the Socket addon pleaseLooks good to me. Did you sudo make install afterward? Is libevent
installed? On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@...> wrote: > Hello everyone! > > I stumbled upon Io the other day and I very much like what I see! I > want to continue exploring the language and since most of my > background is in web-related stuff with Python and some JavaScript > (aside: server side js is starting to look cool what with commonjs > and such. Too bad the implementation of prototypes is so lame in js, > one of the things that attracts me to Io is the good implementation > of protos). > > Anyyyyways, I figured I would introduce myself to this foreign world > of Io with something a little familiar: little web apps. > > Unfortunately, it seems the Socket addon did not compile with the > rest of Io: > > Io> Socket > > Exception: Failed to load Addon Socket - it appears that the addon > exists but was not compiled. You might try running 'make Socket' in > the Io source folder. > --------- > Object Socket Command Line 1 > > I tried running "sudo make Socket" inside the io dir, and this is > what is dumped to stdout: > ./_build/binaries/io_static build.io -a Socket > > --- Socket > -------------------------------------------------------------------- > > build.io: Entering directory `addons/Socket' > > cp source/*.h _build/headers > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ > IoEventManager.c > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ > IoEvRequest.c > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/IoEvent.c > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ > IoEvConnection.c > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ > IoSocketInit.c > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o > > ranlib _build/lib/libIoSocket.a > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall > > build.io: Leaving directory `addons/Socket' > > > But I still can't use the Socket addon, and receive the same message > I originally had in Io. > > I have been spoiled in the past, and have been able to install most > everything I want through apt-get (I'm running Ubuntu 9.04 by the > way) and have never had to troubleshoot compiling source files. I'm > utterly lost. Can anyone help me? > > Thanks for being patient with me and thanks for helping. > > _Nick_ > |
|
|
Re: Help with building the Socket addon pleaseI just ran "sudo make Socket" again, then ran "sudo make install" and I'm still getting that same message inside Io when I try to access the Socket addon. I have libevent1 installed, is that equivalent? It seems ubuntu has no "libevent" package, but many packages whose name contains "libevent". Thanks again --- In iolanguage@..., Rich Collins <richcollins@...> wrote: > > Looks good to me. Did you sudo make install afterward? Is libevent > installed? > > > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@...> wrote: > > > Hello everyone! > > > > I stumbled upon Io the other day and I very much like what I see! I > > want to continue exploring the language and since most of my > > background is in web-related stuff with Python and some JavaScript > > (aside: server side js is starting to look cool what with commonjs > > and such. Too bad the implementation of prototypes is so lame in js, > > one of the things that attracts me to Io is the good implementation > > of protos). > > > > Anyyyyways, I figured I would introduce myself to this foreign world > > of Io with something a little familiar: little web apps. > > > > Unfortunately, it seems the Socket addon did not compile with the > > rest of Io: > > > > Io> Socket > > > > Exception: Failed to load Addon Socket - it appears that the addon > > exists but was not compiled. You might try running 'make Socket' in > > the Io source folder. > > --------- > > Object Socket Command Line 1 > > > > I tried running "sudo make Socket" inside the io dir, and this is > > what is dumped to stdout: > > ./_build/binaries/io_static build.io -a Socket > > > > --- Socket > > -------------------------------------------------------------------- > > > > build.io: Entering directory `addons/Socket' > > > > cp source/*.h _build/headers > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ > > IoEventManager.c > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ > > IoEvRequest.c > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/IoEvent.c > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ > > IoEvConnection.c > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ > > IoSocketInit.c > > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o > > > > ranlib _build/lib/libIoSocket.a > > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall > > > > build.io: Leaving directory `addons/Socket' > > > > > > But I still can't use the Socket addon, and receive the same message > > I originally had in Io. > > > > I have been spoiled in the past, and have been able to install most > > everything I want through apt-get (I'm running Ubuntu 9.04 by the > > way) and have never had to troubleshoot compiling source files. I'm > > utterly lost. Can anyone help me? > > > > Thanks for being patient with me and thanks for helping. > > > > _Nick_ > > > |
|
|
Re: Help with building the Socket addon pleaseI'm out of town atm, Im happy to have a look when I get back.
On Oct 1, 2009, at 3:39 PM, "fitzgen@..." <fitzgen@...> wrote: > > > I just ran "sudo make Socket" again, then ran "sudo make install" > and I'm still getting that same message inside Io when I try to > access the Socket addon. > > I have libevent1 installed, is that equivalent? It seems ubuntu has > no "libevent" package, but many packages whose name contains > "libevent". > > Thanks again > > --- In iolanguage@..., Rich Collins <richcollins@...> > wrote: > > > > Looks good to me. Did you sudo make install afterward? Is libevent > > installed? > > > > > > > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@...> wrote: > > > > > Hello everyone! > > > > > > I stumbled upon Io the other day and I very much like what I > see! I > > > want to continue exploring the language and since most of my > > > background is in web-related stuff with Python and some JavaScript > > > (aside: server side js is starting to look cool what with commonjs > > > and such. Too bad the implementation of prototypes is so lame in > js, > > > one of the things that attracts me to Io is the good > implementation > > > of protos). > > > > > > Anyyyyways, I figured I would introduce myself to this foreign > world > > > of Io with something a little familiar: little web apps. > > > > > > Unfortunately, it seems the Socket addon did not compile with the > > > rest of Io: > > > > > > Io> Socket > > > > > > Exception: Failed to load Addon Socket - it appears that the addon > > > exists but was not compiled. You might try running 'make Socket' > in > > > the Io source folder. > > > --------- > > > Object Socket Command Line 1 > > > > > > I tried running "sudo make Socket" inside the io dir, and this is > > > what is dumped to stdout: > > > ./_build/binaries/io_static build.io -a Socket > > > > > > --- Socket > > > ---------------------------------------------------------- > > > > > > build.io: Entering directory `addons/Socket' > > > > > > cp source/*.h _build/headers > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/ > usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ > include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ > > > IoEventManager.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/ > usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ > include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ > > > IoEvRequest.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/ > usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ > include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/IoEvent.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/ > usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ > include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ > > > IoEvConnection.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/ > usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ > include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ > > > IoSocketInit.c > > > > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o > > > > > > ranlib _build/lib/libIoSocket.a > > > > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall > > > > > > build.io: Leaving directory `addons/Socket' > > > > > > > > > But I still can't use the Socket addon, and receive the same > message > > > I originally had in Io. > > > > > > I have been spoiled in the past, and have been able to install > most > > > everything I want through apt-get (I'm running Ubuntu 9.04 by the > > > way) and have never had to troubleshoot compiling source files. > I'm > > > utterly lost. Can anyone help me? > > > > > > Thanks for being patient with me and thanks for helping. > > > > > > _Nick_ > > > > > > > |
|
|
Re: Help with building the Socket addon pleaseThanks a lot!
_Nick_ On Thu, Oct 1, 2009 at 11:07 PM, Rich Collins <richcollins@...> wrote: > > > I'm out of town atm, Im happy to have a look when I get back. > > > > On Oct 1, 2009, at 3:39 PM, "fitzgen@..." <fitzgen@...> wrote: > > > > > > I just ran "sudo make Socket" again, then ran "sudo make install" and I'm > still getting that same message inside Io when I try to access the Socket > addon. > > I have libevent1 installed, is that equivalent? It seems ubuntu has no > "libevent" package, but many packages whose name contains "libevent". > > Thanks again > > --- In iolanguage@yahoogro <iolanguage%40yahoogroups.com>ups.com, Rich > Collins <richcollins@...> wrote: > > > > Looks good to me. Did you sudo make install afterward? Is libevent > > installed? > > > > > > > > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@...> wrote: > > > > > Hello everyone! > > > > > > I stumbled upon Io the other day and I very much like what I see! I > > > want to continue exploring the language and since most of my > > > background is in web-related stuff with Python and some JavaScript > > > (aside: server side js is starting to look cool what with commonjs > > > and such. Too bad the implementation of prototypes is so lame in js, > > > one of the things that attracts me to Io is the good implementation > > > of protos). > > > > > > Anyyyyways, I figured I would introduce myself to this foreign world > > > of Io with something a little familiar: little web apps. > > > > > > Unfortunately, it seems the Socket addon did not compile with the > > > rest of Io: > > > > > > Io> Socket > > > > > > Exception: Failed to load Addon Socket - it appears that the addon > > > exists but was not compiled. You might try running 'make Socket' in > > > the Io source folder. > > > --------- > > > Object Socket Command Line 1 > > > > > > I tried running "sudo make Socket" inside the io dir, and this is > > > what is dumped to stdout: > > > ./_build/binaries/io_static build.io -a Socket > > > > > > --- Socket > > > ---------------------------------------------------------- > > > > > > build.io: Entering directory `addons/Socket' > > > > > > cp source/*.h _build/headers > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ > > > IoEventManager.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ > > > IoEvRequest.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/IoEvent.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ > > > IoEvConnection.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ > > > IoSocketInit.c > > > > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o > > > > > > ranlib _build/lib/libIoSocket.a > > > > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall > > > > > > build.io: Leaving directory `addons/Socket' > > > > > > > > > But I still can't use the Socket addon, and receive the same message > > > I originally had in Io. > > > > > > I have been spoiled in the past, and have been able to install most > > > everything I want through apt-get (I'm running Ubuntu 9.04 by the > > > way) and have never had to troubleshoot compiling source files. I'm > > > utterly lost. Can anyone help me? > > > > > > Thanks for being patient with me and thanks for helping. > > > > > > _Nick_ > > > > > > > > |
|
|
Re: Help with building the Socket addon pleaseI had the same problem on Ubuntu 9.04. It is caused by a problem with the event library. Unfortunately I don't remember what I did to fix it but I think you are on the right track. For some reason I'm thinking that libevent1 wasn't exactly the right one, but when I list my installed packages I can't find any others that have event in their name. I know I didn't have Socket working a couple months ago and now I do have it working. It might be that you need to find a -dev version or something, or it might depend on an old, deprecated version of the event library.
A trick is that works in a lot of these cases is if you can find a dev package for a project that depends on the same libraries as what you know you need, then you can use the command "apt-get build-dep project-name" to install all the dependencies it needs, and hopefully those will be the ones Io needs too. I think I used something like "sudo apt-get build-dep tuxracer" to get the dependencies I needed for Io's open-GL addon. --- In iolanguage@..., "fitzgen@..." <fitzgen@...> wrote: > > > > I just ran "sudo make Socket" again, then ran "sudo make install" and I'm still getting that same message inside Io when I try to access the Socket addon. > > I have libevent1 installed, is that equivalent? It seems ubuntu has no "libevent" package, but many packages whose name contains "libevent". > > Thanks again > > --- In iolanguage@..., Rich Collins <richcollins@> wrote: > > > > Looks good to me. Did you sudo make install afterward? Is libevent > > installed? > > > > > > > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: > > > > > Hello everyone! > > > > > > I stumbled upon Io the other day and I very much like what I see! I > > > want to continue exploring the language and since most of my > > > background is in web-related stuff with Python and some JavaScript > > > (aside: server side js is starting to look cool what with commonjs > > > and such. Too bad the implementation of prototypes is so lame in js, > > > one of the things that attracts me to Io is the good implementation > > > of protos). > > > > > > Anyyyyways, I figured I would introduce myself to this foreign world > > > of Io with something a little familiar: little web apps. > > > > > > Unfortunately, it seems the Socket addon did not compile with the > > > rest of Io: > > > > > > Io> Socket > > > > > > Exception: Failed to load Addon Socket - it appears that the addon > > > exists but was not compiled. You might try running 'make Socket' in > > > the Io source folder. > > > --------- > > > Object Socket Command Line 1 > > > > > > I tried running "sudo make Socket" inside the io dir, and this is > > > what is dumped to stdout: > > > ./_build/binaries/io_static build.io -a Socket > > > > > > --- Socket > > > -------------------------------------------------------------------- > > > > > > build.io: Entering directory `addons/Socket' > > > > > > cp source/*.h _build/headers > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ > > > IoEventManager.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ > > > IoEvRequest.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/IoEvent.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ > > > IoEvConnection.c > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ > > > IoSocketInit.c > > > > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o > > > > > > ranlib _build/lib/libIoSocket.a > > > > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall > > > > > > build.io: Leaving directory `addons/Socket' > > > > > > > > > But I still can't use the Socket addon, and receive the same message > > > I originally had in Io. > > > > > > I have been spoiled in the past, and have been able to install most > > > everything I want through apt-get (I'm running Ubuntu 9.04 by the > > > way) and have never had to troubleshoot compiling source files. I'm > > > utterly lost. Can anyone help me? > > > > > > Thanks for being patient with me and thanks for helping. > > > > > > _Nick_ > > > > > > |
|
|
Re: Help with building the Socket addon pleaseAlso, might want to try t download latest libevent and build from
source. On Oct 2, 2009, at 10:11 AM, Nick Fitzgerald wrote: > Thanks a lot! > > _Nick_ > > > > On Thu, Oct 1, 2009 at 11:07 PM, Rich Collins > <richcollins@...> wrote: > > > I'm out of town atm, Im happy to have a look when I get back. > > > > On Oct 1, 2009, at 3:39 PM, "fitzgen@..." <fitzgen@...> > wrote: > >> >> >> >> I just ran "sudo make Socket" again, then ran "sudo make install" >> and I'm still getting that same message inside Io when I try to >> access the Socket addon. >> >> I have libevent1 installed, is that equivalent? It seems ubuntu has >> no "libevent" package, but many packages whose name contains >> "libevent". >> >> Thanks again >> >> --- In iolanguage@..., Rich Collins <richcollins@...> >> wrote: >> > >> > Looks good to me. Did you sudo make install afterward? Is libevent >> > installed? >> >> >> > >> > >> > >> > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@...> wrote: >> > >> > > Hello everyone! >> > > >> > > I stumbled upon Io the other day and I very much like what I >> see! I >> > > want to continue exploring the language and since most of my >> > > background is in web-related stuff with Python and some >> JavaScript >> > > (aside: server side js is starting to look cool what with >> commonjs >> > > and such. Too bad the implementation of prototypes is so lame >> in js, >> > > one of the things that attracts me to Io is the good >> implementation >> > > of protos). >> > > >> > > Anyyyyways, I figured I would introduce myself to this foreign >> world >> > > of Io with something a little familiar: little web apps. >> > > >> > > Unfortunately, it seems the Socket addon did not compile with the >> > > rest of Io: >> > > >> > > Io> Socket >> > > >> > > Exception: Failed to load Addon Socket - it appears that the >> addon >> > > exists but was not compiled. You might try running 'make >> Socket' in >> > > the Io source folder. >> > > --------- >> > > Object Socket Command Line 1 >> > > >> > > I tried running "sudo make Socket" inside the io dir, and this is >> > > what is dumped to stdout: >> > > ./_build/binaries/io_static build.io -a Socket >> > > >> > > --- Socket >> > > ---------------------------------------------------------- >> > > >> > > build.io: Entering directory `addons/Socket' >> > > >> > > cp source/*.h _build/headers >> > > >> > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > headers -I../../libs/iovm/_build/headers -I/usr/local/include - >> I/usr/ >> > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >> include/ >> > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ >> > > IoEventManager.c >> > > >> > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > headers -I../../libs/iovm/_build/headers -I/usr/local/include - >> I/usr/ >> > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >> include/ >> > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ >> > > IoEvRequest.c >> > > >> > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > headers -I../../libs/iovm/_build/headers -I/usr/local/include - >> I/usr/ >> > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >> include/ >> > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/IoEvent.c >> > > >> > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > headers -I../../libs/iovm/_build/headers -I/usr/local/include - >> I/usr/ >> > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >> include/ >> > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ >> > > IoEvConnection.c >> > > >> > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > headers -I../../libs/iovm/_build/headers -I/usr/local/include - >> I/usr/ >> > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >> include/ >> > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ >> > > IoSocketInit.c >> > > >> > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o >> > > >> > > ranlib _build/lib/libIoSocket.a >> > > >> > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ >> > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall >> > > >> > > build.io: Leaving directory `addons/Socket' >> > > >> > > >> > > But I still can't use the Socket addon, and receive the same >> message >> > > I originally had in Io. >> > > >> > > I have been spoiled in the past, and have been able to install >> most >> > > everything I want through apt-get (I'm running Ubuntu 9.04 by the >> > > way) and have never had to troubleshoot compiling source files. >> I'm >> > > utterly lost. Can anyone help me? >> > > >> > > Thanks for being patient with me and thanks for helping. >> > > >> > > _Nick_ >> > > >> > >> > > > > ------------------------------------ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/iolanguage/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/iolanguage/join (Yahoo! ID required) <*> To change settings via email: mailto:iolanguage-digest@... mailto:iolanguage-fullfeatured@... <*> To unsubscribe from this group, send an email to: iolanguage-unsubscribe@... <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ |
|
|
Re: Re: Help with building the Socket addon pleaseThanks for all the help so far guys! I seem to be making some slight
progress (maybe). I ran these commands in this order: * sudo aptitude install libevent-dev * sudo aptitude build-dep libevent-dev * sudo make Socket * sudo make install Opened up Io, and tried to access the Socket addon again: Io 20090105 > Io> Socket > > Exception: Error loading object > '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so': > '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so: undefined > symbol: IoEvRequest_proto' > --------- > open AddonLoader.io 65 > Object Socket Command Line 1 > So, I'm getting a new error now. Again, the message doesn't mean too much to me, and I'm stuck again. It seems perhaps I got a little farther this time, but I could be wrong. Should I remove libevent completely and start again from source? Or does this seem to be a problem that needs to be fixed in a different spot you think? Thanks, _Nick_ On Fri, Oct 2, 2009 at 1:47 PM, dennisf486 <dennisf486@...> wrote: > > > I had the same problem on Ubuntu 9.04. It is caused by a problem with the > event library. Unfortunately I don't remember what I did to fix it but I > think you are on the right track. For some reason I'm thinking that > libevent1 wasn't exactly the right one, but when I list my installed > packages I can't find any others that have event in their name. I know I > didn't have Socket working a couple months ago and now I do have it working. > It might be that you need to find a -dev version or something, or it might > depend on an old, deprecated version of the event library. > > A trick is that works in a lot of these cases is if you can find a dev > package for a project that depends on the same libraries as what you know > you need, then you can use the command "apt-get build-dep project-name" to > install all the dependencies it needs, and hopefully those will be the ones > Io needs too. I think I used something like "sudo apt-get build-dep > tuxracer" to get the dependencies I needed for Io's open-GL addon. > > > --- In iolanguage@... <iolanguage%40yahoogroups.com>, > "fitzgen@..." <fitzgen@...> wrote: > > > > > > > > I just ran "sudo make Socket" again, then ran "sudo make install" and I'm > still getting that same message inside Io when I try to access the Socket > addon. > > > > I have libevent1 installed, is that equivalent? It seems ubuntu has no > "libevent" package, but many packages whose name contains "libevent". > > > > Thanks again > > > > --- In iolanguage@... <iolanguage%40yahoogroups.com>, Rich > Collins <richcollins@> wrote: > > > > > > Looks good to me. Did you sudo make install afterward? Is libevent > > > installed? > > > > > > > > > > > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: > > > > > > > Hello everyone! > > > > > > > > I stumbled upon Io the other day and I very much like what I see! I > > > > want to continue exploring the language and since most of my > > > > background is in web-related stuff with Python and some JavaScript > > > > (aside: server side js is starting to look cool what with commonjs > > > > and such. Too bad the implementation of prototypes is so lame in js, > > > > one of the things that attracts me to Io is the good implementation > > > > of protos). > > > > > > > > Anyyyyways, I figured I would introduce myself to this foreign world > > > > of Io with something a little familiar: little web apps. > > > > > > > > Unfortunately, it seems the Socket addon did not compile with the > > > > rest of Io: > > > > > > > > Io> Socket > > > > > > > > Exception: Failed to load Addon Socket - it appears that the addon > > > > exists but was not compiled. You might try running 'make Socket' in > > > > the Io source folder. > > > > --------- > > > > Object Socket Command Line 1 > > > > > > > > I tried running "sudo make Socket" inside the io dir, and this is > > > > what is dumped to stdout: > > > > ./_build/binaries/io_static build.io -a Socket > > > > > > > > --- Socket > > > > ---------------------------------------------------------- > > > > > > > > build.io: Entering directory `addons/Socket' > > > > > > > > cp source/*.h _build/headers > > > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ > > > > IoEventManager.c > > > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ > > > > IoEvRequest.c > > > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/IoEvent.c > > > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ > > > > IoEvConnection.c > > > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include -I/usr/ > > > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/include/ > > > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ > > > > IoSocketInit.c > > > > > > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o > > > > > > > > ranlib _build/lib/libIoSocket.a > > > > > > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ > > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall > > > > > > > > build.io: Leaving directory `addons/Socket' > > > > > > > > > > > > But I still can't use the Socket addon, and receive the same message > > > > I originally had in Io. > > > > > > > > I have been spoiled in the past, and have been able to install most > > > > everything I want through apt-get (I'm running Ubuntu 9.04 by the > > > > way) and have never had to troubleshoot compiling source files. I'm > > > > utterly lost. Can anyone help me? > > > > > > > > Thanks for being patient with me and thanks for helping. > > > > > > > > _Nick_ > > > > > > > > > > > > |
|
|
Re: Re: Help with building the Socket addon pleaseWhat version of libevent are you using?
On 2009-10-02, at 8:41 PM, Nick Fitzgerald wrote: > > > Thanks for all the help so far guys! I seem to be making some slight > progress (maybe). > > I ran these commands in this order: > > * sudo aptitude install libevent-dev > * sudo aptitude build-dep libevent-dev > * sudo make Socket > * sudo make install > > Opened up Io, and tried to access the Socket addon again: > > Io 20090105 > Io> Socket > > Exception: Error loading object '/usr/local/lib/io/addons/Socket/ > _build/dll/libIoSocket.so': '/usr/local/lib/io/addons/Socket/_build/ > dll/libIoSocket.so: undefined symbol: IoEvRequest_proto' > --------- > open AddonLoader.io 65 > Object Socket Command Line 1 > > So, I'm getting a new error now. Again, the message doesn't mean too > much to me, and I'm stuck again. It seems perhaps I got a little > farther this time, but I could be wrong. > > Should I remove libevent completely and start again from source? Or > does this seem to be a problem that needs to be fixed in a different > spot you think? > > Thanks, > > _Nick_ > > > On Fri, Oct 2, 2009 at 1:47 PM, dennisf486 <dennisf486@...> > wrote: > > I had the same problem on Ubuntu 9.04. It is caused by a problem > with the event library. Unfortunately I don't remember what I did to > fix it but I think you are on the right track. For some reason I'm > thinking that libevent1 wasn't exactly the right one, but when I > list my installed packages I can't find any others that have event > in their name. I know I didn't have Socket working a couple months > ago and now I do have it working. It might be that you need to find > a -dev version or something, or it might depend on an old, > deprecated version of the event library. > > A trick is that works in a lot of these cases is if you can find a > dev package for a project that depends on the same libraries as what > you know you need, then you can use the command "apt-get build-dep > project-name" to install all the dependencies it needs, and > hopefully those will be the ones Io needs too. I think I used > something like "sudo apt-get build-dep tuxracer" to get the > dependencies I needed for Io's open-GL addon. > > > > --- In iolanguage@..., "fitzgen@..." <fitzgen@...> wrote: > > > > > > > > I just ran "sudo make Socket" again, then ran "sudo make install" > and I'm still getting that same message inside Io when I try to > access the Socket addon. > > > > I have libevent1 installed, is that equivalent? It seems ubuntu > has no "libevent" package, but many packages whose name contains > "libevent". > > > > Thanks again > > > > --- In iolanguage@..., Rich Collins <richcollins@> > wrote: > > > > > > Looks good to me. Did you sudo make install afterward? Is libevent > > > installed? > > > > > > > > > > > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: > > > > > > > Hello everyone! > > > > > > > > I stumbled upon Io the other day and I very much like what I > see! I > > > > want to continue exploring the language and since most of my > > > > background is in web-related stuff with Python and some > JavaScript > > > > (aside: server side js is starting to look cool what with > commonjs > > > > and such. Too bad the implementation of prototypes is so lame > in js, > > > > one of the things that attracts me to Io is the good > implementation > > > > of protos). > > > > > > > > Anyyyyways, I figured I would introduce myself to this foreign > world > > > > of Io with something a little familiar: little web apps. > > > > > > > > Unfortunately, it seems the Socket addon did not compile with > the > > > > rest of Io: > > > > > > > > Io> Socket > > > > > > > > Exception: Failed to load Addon Socket - it appears that the > addon > > > > exists but was not compiled. You might try running 'make > Socket' in > > > > the Io source folder. > > > > --------- > > > > Object Socket Command Line 1 > > > > > > > > I tried running "sudo make Socket" inside the io dir, and this > is > > > > what is dumped to stdout: > > > > ./_build/binaries/io_static build.io -a Socket > > > > > > > > --- Socket > > > > ---------------------------------------------------------- > > > > > > > > build.io: Entering directory `addons/Socket' > > > > > > > > cp source/*.h _build/headers > > > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include - > I/usr/ > > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ > include/ > > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ > > > > IoEventManager.c > > > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include - > I/usr/ > > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ > include/ > > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ > > > > IoEvRequest.c > > > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include - > I/usr/ > > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ > include/ > > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/IoEvent.c > > > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include - > I/usr/ > > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ > include/ > > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ > > > > IoEvConnection.c > > > > > > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ > > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include - > I/usr/ > > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ > include/ > > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ > > > > IoSocketInit.c > > > > > > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o > > > > > > > > ranlib _build/lib/libIoSocket.a > > > > > > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ > > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall > > > > > > > > build.io: Leaving directory `addons/Socket' > > > > > > > > > > > > But I still can't use the Socket addon, and receive the same > message > > > > I originally had in Io. > > > > > > > > I have been spoiled in the past, and have been able to install > most > > > > everything I want through apt-get (I'm running Ubuntu 9.04 by > the > > > > way) and have never had to troubleshoot compiling source > files. I'm > > > > utterly lost. Can anyone help me? > > > > > > > > Thanks for being patient with me and thanks for helping. > > > > > > > > _Nick_ > > > > > > > > > > > > > > Regards, Jeremy Tregunna jeremy.tregunna@... |
|
|
Re: Re: Help with building the Socket addon pleaseI just built 1.4.8-stable from source, and still no luck. Interestingly
enough, in the traceback Io refers to libevent-1.3e.so.1 and not libevent-1.4.8. Do you think this is a remnant of a previous version? Io> Socket > > Exception: Error loading object > '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so': > 'libevent-1.3e.so.1: cannot open shared object file: No such file or > directory' > --------- > open AddonLoader.io 65 > Object Socket Command Line 1 > _Nick_ On Fri, Oct 2, 2009 at 7:40 PM, Jeremy Tregunna <jeremy.tregunna@...>wrote: > > > What version of libevent are you using? > > On 2009-10-02, at 8:41 PM, Nick Fitzgerald wrote: > > > > Thanks for all the help so far guys! I seem to be making some slight > progress (maybe). > > I ran these commands in this order: > > * sudo aptitude install libevent-dev > * sudo aptitude build-dep libevent-dev > * sudo make Socket > * sudo make install > > Opened up Io, and tried to access the Socket addon again: > > Io 20090105 >> Io> Socket >> >> Exception: Error loading object >> '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so': >> '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so: undefined >> symbol: IoEvRequest_proto' >> --------- >> open AddonLoader.io 65 >> Object Socket Command Line 1 >> > > So, I'm getting a new error now. Again, the message doesn't mean too much > to me, and I'm stuck again. It seems perhaps I got a little farther this > time, but I could be wrong. > > Should I remove libevent completely and start again from source? Or does > this seem to be a problem that needs to be fixed in a different spot you > think? > > Thanks, > > _Nick_ > > > On Fri, Oct 2, 2009 at 1:47 PM, dennisf486 <dennisf486@...> wrote: > >> >> >> I had the same problem on Ubuntu 9.04. It is caused by a problem with the >> event library. Unfortunately I don't remember what I did to fix it but I >> think you are on the right track. For some reason I'm thinking that >> libevent1 wasn't exactly the right one, but when I list my installed >> packages I can't find any others that have event in their name. I know I >> didn't have Socket working a couple months ago and now I do have it working. >> It might be that you need to find a -dev version or something, or it might >> depend on an old, deprecated version of the event library. >> >> A trick is that works in a lot of these cases is if you can find a dev >> package for a project that depends on the same libraries as what you know >> you need, then you can use the command "apt-get build-dep project-name" to >> install all the dependencies it needs, and hopefully those will be the ones >> Io needs too. I think I used something like "sudo apt-get build-dep >> tuxracer" to get the dependencies I needed for Io's open-GL addon. >> >> >> --- In iolanguage@... <iolanguage%40yahoogroups.com>, >> "fitzgen@..." <fitzgen@...> wrote: >> > >> > >> > >> > I just ran "sudo make Socket" again, then ran "sudo make install" and >> I'm still getting that same message inside Io when I try to access the >> Socket addon. >> > >> > I have libevent1 installed, is that equivalent? It seems ubuntu has no >> "libevent" package, but many packages whose name contains "libevent". >> > >> > Thanks again >> > >> > --- In iolanguage@... <iolanguage%40yahoogroups.com>, Rich >> Collins <richcollins@> wrote: >> > > >> > > Looks good to me. Did you sudo make install afterward? Is libevent >> > > installed? >> > > >> > > >> > > >> > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: >> > > >> > > > Hello everyone! >> > > > >> > > > I stumbled upon Io the other day and I very much like what I see! I >> >> > > > want to continue exploring the language and since most of my >> > > > background is in web-related stuff with Python and some JavaScript >> > > > (aside: server side js is starting to look cool what with commonjs >> > > > and such. Too bad the implementation of prototypes is so lame in js, >> >> > > > one of the things that attracts me to Io is the good implementation >> >> > > > of protos). >> > > > >> > > > Anyyyyways, I figured I would introduce myself to this foreign world >> >> > > > of Io with something a little familiar: little web apps. >> > > > >> > > > Unfortunately, it seems the Socket addon did not compile with the >> > > > rest of Io: >> > > > >> > > > Io> Socket >> > > > >> > > > Exception: Failed to load Addon Socket - it appears that the addon >> > > > exists but was not compiled. You might try running 'make Socket' in >> >> > > > the Io source folder. >> > > > --------- >> > > > Object Socket Command Line 1 >> > > > >> > > > I tried running "sudo make Socket" inside the io dir, and this is >> > > > what is dumped to stdout: >> > > > ./_build/binaries/io_static build.io -a Socket >> > > > >> > > > --- Socket >> > > > ---------------------------------------------------------- >> > > > >> > > > build.io: Entering directory `addons/Socket' >> > > > >> > > > cp source/*.h _build/headers >> > > > >> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >> -I/usr/ >> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >> -I/usr/include/ >> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ >> > > > IoEventManager.c >> > > > >> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >> -I/usr/ >> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >> -I/usr/include/ >> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ >> > > > IoEvRequest.c >> > > > >> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >> -I/usr/ >> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >> -I/usr/include/ >> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/IoEvent.c >> > > > >> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >> -I/usr/ >> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >> -I/usr/include/ >> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ >> > > > IoEvConnection.c >> > > > >> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >> -I/usr/ >> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >> -I/usr/include/ >> > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ >> > > > IoSocketInit.c >> > > > >> > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o >> > > > >> > > > ranlib _build/lib/libIoSocket.a >> > > > >> > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ >> > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall >> > > > >> > > > build.io: Leaving directory `addons/Socket' >> > > > >> > > > >> > > > But I still can't use the Socket addon, and receive the same message >> >> > > > I originally had in Io. >> > > > >> > > > I have been spoiled in the past, and have been able to install most >> >> > > > everything I want through apt-get (I'm running Ubuntu 9.04 by the >> > > > way) and have never had to troubleshoot compiling source files. I'm >> >> > > > utterly lost. Can anyone help me? >> > > > >> > > > Thanks for being patient with me and thanks for helping. >> > > > >> > > > _Nick_ >> > > > >> > > >> > >> >> > > > > Regards, > > Jeremy Tregunna > jeremy.tregunna@... > > > > > |
|
|
Re: Re: Help with building the Socket addon pleaseIn fact I do. See if you can clear that up first then make clean and
build Socket again. On 2009-10-02, at 10:44 PM, Nick Fitzgerald wrote: > > > I just built 1.4.8-stable from source, and still no luck. > Interestingly enough, in the traceback Io refers to libevent-1.3e.so. > 1 and not libevent-1.4.8. > > Do you think this is a remnant of a previous version? > > Io> Socket > > Exception: Error loading object '/usr/local/lib/io/addons/Socket/ > _build/dll/libIoSocket.so': 'libevent-1.3e.so.1: cannot open shared > object file: No such file or directory' > --------- > open AddonLoader.io 65 > Object Socket Command Line 1 > > > _Nick_ > > > On Fri, Oct 2, 2009 at 7:40 PM, Jeremy Tregunna <jeremy.tregunna@... > > wrote: > > What version of libevent are you using? > > > On 2009-10-02, at 8:41 PM, Nick Fitzgerald wrote: > >> >> >> Thanks for all the help so far guys! I seem to be making some >> slight progress (maybe). >> >> I ran these commands in this order: >> >> * sudo aptitude install libevent-dev >> * sudo aptitude build-dep libevent-dev >> * sudo make Socket >> * sudo make install >> >> Opened up Io, and tried to access the Socket addon again: >> >> Io 20090105 >> Io> Socket >> >> Exception: Error loading object '/usr/local/lib/io/addons/Socket/ >> _build/dll/libIoSocket.so': '/usr/local/lib/io/addons/Socket/_build/ >> dll/libIoSocket.so: undefined symbol: IoEvRequest_proto' >> --------- >> open AddonLoader.io 65 >> Object Socket Command Line 1 >> >> So, I'm getting a new error now. Again, the message doesn't mean >> too much to me, and I'm stuck again. It seems perhaps I got a >> little farther this time, but I could be wrong. >> >> Should I remove libevent completely and start again from source? Or >> does this seem to be a problem that needs to be fixed in a >> different spot you think? >> >> Thanks, >> >> _Nick_ >> >> >> On Fri, Oct 2, 2009 at 1:47 PM, dennisf486 <dennisf486@...> >> wrote: >> >> I had the same problem on Ubuntu 9.04. It is caused by a problem >> with the event library. Unfortunately I don't remember what I did >> to fix it but I think you are on the right track. For some reason >> I'm thinking that libevent1 wasn't exactly the right one, but when >> I list my installed packages I can't find any others that have >> event in their name. I know I didn't have Socket working a couple >> months ago and now I do have it working. It might be that you need >> to find a -dev version or something, or it might depend on an old, >> deprecated version of the event library. >> >> A trick is that works in a lot of these cases is if you can find a >> dev package for a project that depends on the same libraries as >> what you know you need, then you can use the command "apt-get build- >> dep project-name" to install all the dependencies it needs, and >> hopefully those will be the ones Io needs too. I think I used >> something like "sudo apt-get build-dep tuxracer" to get the >> dependencies I needed for Io's open-GL addon. >> >> >> >> --- In iolanguage@..., "fitzgen@..." <fitzgen@...> wrote: >> > >> > >> > >> > I just ran "sudo make Socket" again, then ran "sudo make install" >> and I'm still getting that same message inside Io when I try to >> access the Socket addon. >> > >> > I have libevent1 installed, is that equivalent? It seems ubuntu >> has no "libevent" package, but many packages whose name contains >> "libevent". >> > >> > Thanks again >> > >> > --- In iolanguage@..., Rich Collins <richcollins@> >> wrote: >> > > >> > > Looks good to me. Did you sudo make install afterward? Is >> libevent >> > > installed? >> > > >> > > >> > > >> > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: >> > > >> > > > Hello everyone! >> > > > >> > > > I stumbled upon Io the other day and I very much like what I >> see! I >> > > > want to continue exploring the language and since most of my >> > > > background is in web-related stuff with Python and some >> JavaScript >> > > > (aside: server side js is starting to look cool what with >> commonjs >> > > > and such. Too bad the implementation of prototypes is so lame >> in js, >> > > > one of the things that attracts me to Io is the good >> implementation >> > > > of protos). >> > > > >> > > > Anyyyyways, I figured I would introduce myself to this >> foreign world >> > > > of Io with something a little familiar: little web apps. >> > > > >> > > > Unfortunately, it seems the Socket addon did not compile with >> the >> > > > rest of Io: >> > > > >> > > > Io> Socket >> > > > >> > > > Exception: Failed to load Addon Socket - it appears that the >> addon >> > > > exists but was not compiled. You might try running 'make >> Socket' in >> > > > the Io source folder. >> > > > --------- >> > > > Object Socket Command Line 1 >> > > > >> > > > I tried running "sudo make Socket" inside the io dir, and >> this is >> > > > what is dumped to stdout: >> > > > ./_build/binaries/io_static build.io -a Socket >> > > > >> > > > --- Socket >> > > > ---------------------------------------------------------- >> > > > >> > > > build.io: Entering directory `addons/Socket' >> > > > >> > > > cp source/*.h _build/headers >> > > > >> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >> -I/usr/ >> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >> include/ >> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ >> > > > IoEventManager.c >> > > > >> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >> -I/usr/ >> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >> include/ >> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ >> > > > IoEvRequest.c >> > > > >> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >> -I/usr/ >> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >> include/ >> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/ >> IoEvent.c >> > > > >> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >> -I/usr/ >> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >> include/ >> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ >> > > > IoEvConnection.c >> > > > >> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >> -I/usr/ >> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >> include/ >> > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ >> > > > IoSocketInit.c >> > > > >> > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o >> > > > >> > > > ranlib _build/lib/libIoSocket.a >> > > > >> > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ >> > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall >> > > > >> > > > build.io: Leaving directory `addons/Socket' >> > > > >> > > > >> > > > But I still can't use the Socket addon, and receive the same >> message >> > > > I originally had in Io. >> > > > >> > > > I have been spoiled in the past, and have been able to >> install most >> > > > everything I want through apt-get (I'm running Ubuntu 9.04 by >> the >> > > > way) and have never had to troubleshoot compiling source >> files. I'm >> > > > utterly lost. Can anyone help me? >> > > > >> > > > Thanks for being patient with me and thanks for helping. >> > > > >> > > > _Nick_ >> > > > >> > > >> > >> >> >> >> > > Regards, > > Jeremy Tregunna > jeremy.tregunna@... > > > > > > > Regards, Jeremy Tregunna jeremy.tregunna@... |
|
|
Re: Re: Help with building the Socket addon pleaseArgh, same message, this time it is referencing libevent-1.4:
Io> Socket Exception: Error loading object '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so': 'libevent-1.4.so.2: cannot open shared object file: No such file or directory' --------- open AddonLoader.io 65 Object Socket Command Line 1 _Nick_ On Fri, Oct 2, 2009 at 7:50 PM, Jeremy Tregunna <jeremy.tregunna@...>wrote: > > > In fact I do. See if you can clear that up first then make clean and build > Socket again. > > On 2009-10-02, at 10:44 PM, Nick Fitzgerald wrote: > > > > I just built 1.4.8-stable from source, and still no luck. Interestingly > enough, in the traceback Io refers to libevent-1.3e.so.1 and not > libevent-1.4.8. > > Do you think this is a remnant of a previous version? > > Io> Socket >> >> Exception: Error loading object >> '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so': >> 'libevent-1.3e.so.1: cannot open shared object file: No such file or >> directory' >> --------- >> open AddonLoader.io 65 >> Object Socket Command Line 1 >> > > > _Nick_ > > > On Fri, Oct 2, 2009 at 7:40 PM, Jeremy Tregunna <jeremy.tregunna@...> > wrote: > >> >> >> What version of libevent are you using? >> >> On 2009-10-02, at 8:41 PM, Nick Fitzgerald wrote: >> >> >> >> Thanks for all the help so far guys! I seem to be making some slight >> progress (maybe). >> >> I ran these commands in this order: >> >> * sudo aptitude install libevent-dev >> * sudo aptitude build-dep libevent-dev >> * sudo make Socket >> * sudo make install >> >> Opened up Io, and tried to access the Socket addon again: >> >> Io 20090105 >>> Io> Socket >>> >>> Exception: Error loading object >>> '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so': >>> '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so: undefined >>> symbol: IoEvRequest_proto' >>> --------- >>> open AddonLoader.io 65 >>> Object Socket Command Line 1 >>> >> >> So, I'm getting a new error now. Again, the message doesn't mean too much >> to me, and I'm stuck again. It seems perhaps I got a little farther this >> time, but I could be wrong. >> >> Should I remove libevent completely and start again from source? Or does >> this seem to be a problem that needs to be fixed in a different spot you >> think? >> >> Thanks, >> >> _Nick_ >> >> >> On Fri, Oct 2, 2009 at 1:47 PM, dennisf486 <dennisf486@...> wrote: >> >>> >>> >>> I had the same problem on Ubuntu 9.04. It is caused by a problem with the >>> event library. Unfortunately I don't remember what I did to fix it but I >>> think you are on the right track. For some reason I'm thinking that >>> libevent1 wasn't exactly the right one, but when I list my installed >>> packages I can't find any others that have event in their name. I know I >>> didn't have Socket working a couple months ago and now I do have it working. >>> It might be that you need to find a -dev version or something, or it might >>> depend on an old, deprecated version of the event library. >>> >>> A trick is that works in a lot of these cases is if you can find a dev >>> package for a project that depends on the same libraries as what you know >>> you need, then you can use the command "apt-get build-dep project-name" to >>> install all the dependencies it needs, and hopefully those will be the ones >>> Io needs too. I think I used something like "sudo apt-get build-dep >>> tuxracer" to get the dependencies I needed for Io's open-GL addon. >>> >>> >>> --- In iolanguage@... <iolanguage%40yahoogroups.com>, >>> "fitzgen@..." <fitzgen@...> wrote: >>> > >>> > >>> > >>> > I just ran "sudo make Socket" again, then ran "sudo make install" and >>> I'm still getting that same message inside Io when I try to access the >>> Socket addon. >>> > >>> > I have libevent1 installed, is that equivalent? It seems ubuntu has no >>> "libevent" package, but many packages whose name contains "libevent". >>> > >>> > Thanks again >>> > >>> > --- In iolanguage@... <iolanguage%40yahoogroups.com>, Rich >>> Collins <richcollins@> wrote: >>> > > >>> > > Looks good to me. Did you sudo make install afterward? Is libevent >>> > > installed? >>> > > >>> > > >>> > > >>> > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: >>> > > >>> > > > Hello everyone! >>> > > > >>> > > > I stumbled upon Io the other day and I very much like what I see! I >>> >>> > > > want to continue exploring the language and since most of my >>> > > > background is in web-related stuff with Python and some JavaScript >>> >>> > > > (aside: server side js is starting to look cool what with commonjs >>> >>> > > > and such. Too bad the implementation of prototypes is so lame in >>> js, >>> > > > one of the things that attracts me to Io is the good implementation >>> >>> > > > of protos). >>> > > > >>> > > > Anyyyyways, I figured I would introduce myself to this foreign >>> world >>> > > > of Io with something a little familiar: little web apps. >>> > > > >>> > > > Unfortunately, it seems the Socket addon did not compile with the >>> > > > rest of Io: >>> > > > >>> > > > Io> Socket >>> > > > >>> > > > Exception: Failed to load Addon Socket - it appears that the addon >>> >>> > > > exists but was not compiled. You might try running 'make Socket' in >>> >>> > > > the Io source folder. >>> > > > --------- >>> > > > Object Socket Command Line 1 >>> > > > >>> > > > I tried running "sudo make Socket" inside the io dir, and this is >>> > > > what is dumped to stdout: >>> > > > ./_build/binaries/io_static build.io -a Socket >>> > > > >>> > > > --- Socket >>> > > > ---------------------------------------------------------- >>> > > > >>> > > > build.io: Entering directory `addons/Socket' >>> > > > >>> > > > cp source/*.h _build/headers >>> > > > >>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >>> -I/usr/ >>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >>> -I/usr/include/ >>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ >>> > > > IoEventManager.c >>> > > > >>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >>> -I/usr/ >>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >>> -I/usr/include/ >>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ >>> > > > IoEvRequest.c >>> > > > >>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >>> -I/usr/ >>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >>> -I/usr/include/ >>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/IoEvent.c >>> > > > >>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >>> -I/usr/ >>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >>> -I/usr/include/ >>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ >>> > > > IoEvConnection.c >>> > > > >>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >>> -I/usr/ >>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >>> -I/usr/include/ >>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ >>> > > > IoSocketInit.c >>> > > > >>> > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o >>> > > > >>> > > > ranlib _build/lib/libIoSocket.a >>> > > > >>> > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ >>> > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall >>> > > > >>> > > > build.io: Leaving directory `addons/Socket' >>> > > > >>> > > > >>> > > > But I still can't use the Socket addon, and receive the same >>> message >>> > > > I originally had in Io. >>> > > > >>> > > > I have been spoiled in the past, and have been able to install most >>> >>> > > > everything I want through apt-get (I'm running Ubuntu 9.04 by the >>> > > > way) and have never had to troubleshoot compiling source files. I'm >>> >>> > > > utterly lost. Can anyone help me? >>> > > > >>> > > > Thanks for being patient with me and thanks for helping. >>> > > > >>> > > > _Nick_ >>> > > > >>> > > >>> > >>> >>> >> >> >> >> Regards, >> >> Jeremy Tregunna >> jeremy.tregunna@... >> >> >> >> > > > > Regards, > > Jeremy Tregunna > jeremy.tregunna@... > > > > > |
|
|
Re: Re: Help with building the Socket addon pleaseDo us a favour, run an ldd /usr/local/lib/io/addons/Socket/_build/dll/
libIoSocket.so and paste the output. On 2009-10-02, at 11:02 PM, Nick Fitzgerald wrote: > > > Argh, same message, this time it is referencing libevent-1.4: > > Io> Socket > > Exception: Error loading object '/usr/local/lib/io/addons/Socket/ > _build/dll/libIoSocket.so': 'libevent-1.4.so.2: cannot open shared > object file: No such file or directory' > --------- > open AddonLoader.io 65 > Object Socket Command Line 1 > > _Nick_ > > > On Fri, Oct 2, 2009 at 7:50 PM, Jeremy Tregunna <jeremy.tregunna@... > > wrote: > > > In fact I do. See if you can clear that up first then make clean and > build Socket again. > > On 2009-10-02, at 10:44 PM, Nick Fitzgerald wrote: > >> >> >> I just built 1.4.8-stable from source, and still no luck. >> Interestingly enough, in the traceback Io refers to >> libevent-1.3e.so.1 and not libevent-1.4.8. >> >> Do you think this is a remnant of a previous version? >> >> Io> Socket >> >> Exception: Error loading object '/usr/local/lib/io/addons/Socket/ >> _build/dll/libIoSocket.so': 'libevent-1.3e.so.1: cannot open shared >> object file: No such file or directory' >> --------- >> open AddonLoader.io 65 >> Object Socket Command Line 1 >> >> >> _Nick_ >> >> >> On Fri, Oct 2, 2009 at 7:40 PM, Jeremy Tregunna <jeremy.tregunna@... >> > wrote: >> >> What version of libevent are you using? >> >> >> On 2009-10-02, at 8:41 PM, Nick Fitzgerald wrote: >> >>> >>> >>> Thanks for all the help so far guys! I seem to be making some >>> slight progress (maybe). >>> >>> I ran these commands in this order: >>> >>> * sudo aptitude install libevent-dev >>> * sudo aptitude build-dep libevent-dev >>> * sudo make Socket >>> * sudo make install >>> >>> Opened up Io, and tried to access the Socket addon again: >>> >>> Io 20090105 >>> Io> Socket >>> >>> Exception: Error loading object '/usr/local/lib/io/addons/Socket/ >>> _build/dll/libIoSocket.so': '/usr/local/lib/io/addons/Socket/ >>> _build/dll/libIoSocket.so: undefined symbol: IoEvRequest_proto' >>> --------- >>> open AddonLoader.io 65 >>> Object Socket Command Line 1 >>> >>> So, I'm getting a new error now. Again, the message doesn't mean >>> too much to me, and I'm stuck again. It seems perhaps I got a >>> little farther this time, but I could be wrong. >>> >>> Should I remove libevent completely and start again from source? >>> Or does this seem to be a problem that needs to be fixed in a >>> different spot you think? >>> >>> Thanks, >>> >>> _Nick_ >>> >>> >>> On Fri, Oct 2, 2009 at 1:47 PM, dennisf486 <dennisf486@...> >>> wrote: >>> >>> I had the same problem on Ubuntu 9.04. It is caused by a problem >>> with the event library. Unfortunately I don't remember what I did >>> to fix it but I think you are on the right track. For some reason >>> I'm thinking that libevent1 wasn't exactly the right one, but when >>> I list my installed packages I can't find any others that have >>> event in their name. I know I didn't have Socket working a couple >>> months ago and now I do have it working. It might be that you need >>> to find a -dev version or something, or it might depend on an old, >>> deprecated version of the event library. >>> >>> A trick is that works in a lot of these cases is if you can find a >>> dev package for a project that depends on the same libraries as >>> what you know you need, then you can use the command "apt-get >>> build-dep project-name" to install all the dependencies it needs, >>> and hopefully those will be the ones Io needs too. I think I used >>> something like "sudo apt-get build-dep tuxracer" to get the >>> dependencies I needed for Io's open-GL addon. >>> >>> >>> >>> --- In iolanguage@..., "fitzgen@..." <fitzgen@...> >>> wrote: >>> > >>> > >>> > >>> > I just ran "sudo make Socket" again, then ran "sudo make >>> install" and I'm still getting that same message inside Io when I >>> try to access the Socket addon. >>> > >>> > I have libevent1 installed, is that equivalent? It seems ubuntu >>> has no "libevent" package, but many packages whose name contains >>> "libevent". >>> > >>> > Thanks again >>> > >>> > --- In iolanguage@..., Rich Collins <richcollins@> >>> wrote: >>> > > >>> > > Looks good to me. Did you sudo make install afterward? Is >>> libevent >>> > > installed? >>> > > >>> > > >>> > > >>> > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: >>> > > >>> > > > Hello everyone! >>> > > > >>> > > > I stumbled upon Io the other day and I very much like what I >>> see! I >>> > > > want to continue exploring the language and since most of my >>> > > > background is in web-related stuff with Python and some >>> JavaScript >>> > > > (aside: server side js is starting to look cool what with >>> commonjs >>> > > > and such. Too bad the implementation of prototypes is so >>> lame in js, >>> > > > one of the things that attracts me to Io is the good >>> implementation >>> > > > of protos). >>> > > > >>> > > > Anyyyyways, I figured I would introduce myself to this >>> foreign world >>> > > > of Io with something a little familiar: little web apps. >>> > > > >>> > > > Unfortunately, it seems the Socket addon did not compile >>> with the >>> > > > rest of Io: >>> > > > >>> > > > Io> Socket >>> > > > >>> > > > Exception: Failed to load Addon Socket - it appears that the >>> addon >>> > > > exists but was not compiled. You might try running 'make >>> Socket' in >>> > > > the Io source folder. >>> > > > --------- >>> > > > Object Socket Command Line 1 >>> > > > >>> > > > I tried running "sudo make Socket" inside the io dir, and >>> this is >>> > > > what is dumped to stdout: >>> > > > ./_build/binaries/io_static build.io -a Socket >>> > > > >>> > > > --- Socket >>> > > > ---------------------------------------------------------- >>> > > > >>> > > > build.io: Entering directory `addons/Socket' >>> > > > >>> > > > cp source/*.h _build/headers >>> > > > >>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >>> include -I/usr/ >>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >>> include/ >>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ >>> > > > IoEventManager.c >>> > > > >>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >>> include -I/usr/ >>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >>> include/ >>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ >>> > > > IoEvRequest.c >>> > > > >>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >>> include -I/usr/ >>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >>> include/ >>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/ >>> IoEvent.c >>> > > > >>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >>> include -I/usr/ >>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >>> include/ >>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ >>> > > > IoEvConnection.c >>> > > > >>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >>> include -I/usr/ >>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/usr/ >>> include/ >>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ >>> > > > IoSocketInit.c >>> > > > >>> > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o >>> > > > >>> > > > ranlib _build/lib/libIoSocket.a >>> > > > >>> > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/ >>> usr/ >>> > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall >>> > > > >>> > > > build.io: Leaving directory `addons/Socket' >>> > > > >>> > > > >>> > > > But I still can't use the Socket addon, and receive the same >>> message >>> > > > I originally had in Io. >>> > > > >>> > > > I have been spoiled in the past, and have been able to >>> install most >>> > > > everything I want through apt-get (I'm running Ubuntu 9.04 >>> by the >>> > > > way) and have never had to troubleshoot compiling source >>> files. I'm >>> > > > utterly lost. Can anyone help me? >>> > > > >>> > > > Thanks for being patient with me and thanks for helping. >>> > > > >>> > > > _Nick_ >>> > > > >>> > > >>> > >>> >>> >>> >>> >> >> Regards, >> >> Jeremy Tregunna >> jeremy.tregunna@... >> >> >> >> >> >> > > Regards, > > Jeremy Tregunna > jeremy.tregunna@... > > > > > > > Regards, Jeremy Tregunna jeremy.tregunna@... |
|
|
Re: Re: Help with building the Socket addon please>
> linux-gate.so.1 => (0xb8091000) > libevent-1.4.so.2 => not found > /usr/local/lib/libiovmall.so (0xb7fa0000) > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e3c000) > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e38000) > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e12000) > /lib/ld-linux.so.2 (0xb8092000) > You don't happen to be on #io do you? I feel like we are having a really slow back and forth here... _Nick_ On Fri, Oct 2, 2009 at 8:03 PM, Jeremy Tregunna <jeremy.tregunna@...>wrote: > > > Do us a favour, run an ldd > /usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so and paste the > output. > > On 2009-10-02, at 11:02 PM, Nick Fitzgerald wrote: > > > > Argh, same message, this time it is referencing libevent-1.4: > > Io> Socket > > Exception: Error loading object > '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so': > 'libevent-1.4.so.2: cannot open shared object file: No such file or > directory' > --------- > open AddonLoader.io 65 > Object Socket Command Line 1 > > > _Nick_ > > > On Fri, Oct 2, 2009 at 7:50 PM, Jeremy Tregunna <jeremy.tregunna@...> > wrote: > >> >> In fact I do. See if you can clear that up first then make clean and build >> Socket again. >> >> On 2009-10-02, at 10:44 PM, Nick Fitzgerald wrote: >> >> >> >> I just built 1.4.8-stable from source, and still no luck. Interestingly >> enough, in the traceback Io refers to libevent-1.3e.so.1 and not >> libevent-1.4.8. >> >> Do you think this is a remnant of a previous version? >> >> Io> Socket >>> >>> Exception: Error loading object >>> '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so': >>> 'libevent-1.3e.so.1: cannot open shared object file: No such file or >>> directory' >>> --------- >>> open AddonLoader.io 65 >>> Object Socket Command Line 1 >>> >> >> >> _Nick_ >> >> >> On Fri, Oct 2, 2009 at 7:40 PM, Jeremy Tregunna <jeremy.tregunna@...> >> wrote: >> >>> >>> >>> What version of libevent are you using? >>> >>> On 2009-10-02, at 8:41 PM, Nick Fitzgerald wrote: >>> >>> >>> >>> Thanks for all the help so far guys! I seem to be making some slight >>> progress (maybe). >>> >>> I ran these commands in this order: >>> >>> * sudo aptitude install libevent-dev >>> * sudo aptitude build-dep libevent-dev >>> * sudo make Socket >>> * sudo make install >>> >>> Opened up Io, and tried to access the Socket addon again: >>> >>> Io 20090105 >>>> Io> Socket >>>> >>>> Exception: Error loading object >>>> '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so': >>>> '/usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so: undefined >>>> symbol: IoEvRequest_proto' >>>> --------- >>>> open AddonLoader.io 65 >>>> Object Socket Command Line 1 >>>> >>> >>> So, I'm getting a new error now. Again, the message doesn't mean too much >>> to me, and I'm stuck again. It seems perhaps I got a little farther this >>> time, but I could be wrong. >>> >>> Should I remove libevent completely and start again from source? Or does >>> this seem to be a problem that needs to be fixed in a different spot you >>> think? >>> >>> Thanks, >>> >>> _Nick_ >>> >>> >>> On Fri, Oct 2, 2009 at 1:47 PM, dennisf486 <dennisf486@...> wrote: >>> >>>> >>>> >>>> I had the same problem on Ubuntu 9.04. It is caused by a problem with >>>> the event library. Unfortunately I don't remember what I did to fix it but I >>>> think you are on the right track. For some reason I'm thinking that >>>> libevent1 wasn't exactly the right one, but when I list my installed >>>> packages I can't find any others that have event in their name. I know I >>>> didn't have Socket working a couple months ago and now I do have it working. >>>> It might be that you need to find a -dev version or something, or it might >>>> depend on an old, deprecated version of the event library. >>>> >>>> A trick is that works in a lot of these cases is if you can find a dev >>>> package for a project that depends on the same libraries as what you know >>>> you need, then you can use the command "apt-get build-dep project-name" to >>>> install all the dependencies it needs, and hopefully those will be the ones >>>> Io needs too. I think I used something like "sudo apt-get build-dep >>>> tuxracer" to get the dependencies I needed for Io's open-GL addon. >>>> >>>> >>>> --- In iolanguage@... <iolanguage%40yahoogroups.com>, >>>> "fitzgen@..." <fitzgen@...> wrote: >>>> > >>>> > >>>> > >>>> > I just ran "sudo make Socket" again, then ran "sudo make install" and >>>> I'm still getting that same message inside Io when I try to access the >>>> Socket addon. >>>> > >>>> > I have libevent1 installed, is that equivalent? It seems ubuntu has no >>>> "libevent" package, but many packages whose name contains "libevent". >>>> > >>>> > Thanks again >>>> > >>>> > --- In iolanguage@... <iolanguage%40yahoogroups.com>, >>>> Rich Collins <richcollins@> wrote: >>>> > > >>>> > > Looks good to me. Did you sudo make install afterward? Is libevent >>>> > > installed? >>>> > > >>>> > > >>>> > > >>>> > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: >>>> > > >>>> > > > Hello everyone! >>>> > > > >>>> > > > I stumbled upon Io the other day and I very much like what I see! >>>> I >>>> > > > want to continue exploring the language and since most of my >>>> > > > background is in web-related stuff with Python and some JavaScript >>>> >>>> > > > (aside: server side js is starting to look cool what with commonjs >>>> >>>> > > > and such. Too bad the implementation of prototypes is so lame in >>>> js, >>>> > > > one of the things that attracts me to Io is the good >>>> implementation >>>> > > > of protos). >>>> > > > >>>> > > > Anyyyyways, I figured I would introduce myself to this foreign >>>> world >>>> > > > of Io with something a little familiar: little web apps. >>>> > > > >>>> > > > Unfortunately, it seems the Socket addon did not compile with the >>>> >>>> > > > rest of Io: >>>> > > > >>>> > > > Io> Socket >>>> > > > >>>> > > > Exception: Failed to load Addon Socket - it appears that the addon >>>> >>>> > > > exists but was not compiled. You might try running 'make Socket' >>>> in >>>> > > > the Io source folder. >>>> > > > --------- >>>> > > > Object Socket Command Line 1 >>>> > > > >>>> > > > I tried running "sudo make Socket" inside the io dir, and this is >>>> >>>> > > > what is dumped to stdout: >>>> > > > ./_build/binaries/io_static build.io -a Socket >>>> > > > >>>> > > > --- Socket >>>> > > > ---------------------------------------------------------- >>>> > > > >>>> > > > build.io: Entering directory `addons/Socket' >>>> > > > >>>> > > > cp source/*.h _build/headers >>>> > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >>>> -I/usr/ >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >>>> -I/usr/include/ >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o source/ >>>> > > > IoEventManager.c >>>> > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >>>> -I/usr/ >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >>>> -I/usr/include/ >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ >>>> > > > IoEvRequest.c >>>> > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >>>> -I/usr/ >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >>>> -I/usr/include/ >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/IoEvent.c >>>> > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >>>> -I/usr/ >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >>>> -I/usr/include/ >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o source/ >>>> > > > IoEvConnection.c >>>> > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/_build/ >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/include >>>> -I/usr/ >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo >>>> -I/usr/include/ >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ >>>> > > > IoSocketInit.c >>>> > > > >>>> > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o >>>> > > > >>>> > > > ranlib _build/lib/libIoSocket.a >>>> > > > >>>> > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/usr/ >>>> > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall >>>> > > > >>>> > > > build.io: Leaving directory `addons/Socket' >>>> > > > >>>> > > > >>>> > > > But I still can't use the Socket addon, and receive the same >>>> message >>>> > > > I originally had in Io. >>>> > > > >>>> > > > I have been spoiled in the past, and have been able to install >>>> most >>>> > > > everything I want through apt-get (I'm running Ubuntu 9.04 by the >>>> >>>> > > > way) and have never had to troubleshoot compiling source files. >>>> I'm >>>> > > > utterly lost. Can anyone help me? >>>> > > > >>>> > > > Thanks for being patient with me and thanks for helping. >>>> > > > >>>> > > > _Nick_ >>>> > > > >>>> > > >>>> > >>>> >>>> >>> >>> >>> >>> Regards, >>> >>> Jeremy Tregunna >>> jeremy.tregunna@... >>> >>> >>> >>> >> >> >> >> Regards, >> >> Jeremy Tregunna >> jeremy.tregunna@... >> >> >> >> > > > > Regards, > > Jeremy Tregunna > jeremy.tregunna@... > > > > > |
|
|
Re: Re: Help with building the Socket addon pleaseOk, do you see the problem with that? :)
Find libevent-1.4.so.2 on your system, ensure the dir it exists in is in your ld cache search path (normally /etc/ld.so.conf) and rerun ldconfig. See if this fixes your problem. No need to build Socket again. On 2009-10-02, at 11:05 PM, Nick Fitzgerald wrote: > > > linux-gate.so.1 => (0xb8091000) > libevent-1.4.so.2 => not found > /usr/local/lib/libiovmall.so (0xb7fa0000) > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e3c000) > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e38000) > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e12000) > /lib/ld-linux.so.2 (0xb8092000) > > You don't happen to be on #io do you? I feel like we are having a > really slow back and forth here... > > _Nick_ > > > On Fri, Oct 2, 2009 at 8:03 PM, Jeremy Tregunna <jeremy.tregunna@... > > wrote: > > Do us a favour, run an ldd /usr/local/lib/io/addons/Socket/_build/ > dll/libIoSocket.so and paste the output. > > > On 2009-10-02, at 11:02 PM, Nick Fitzgerald wrote: > >> >> >> Argh, same message, this time it is referencing libevent-1.4: >> >> Io> Socket >> >> Exception: Error loading object '/usr/local/lib/io/addons/Socket/ >> _build/dll/libIoSocket.so': 'libevent-1.4.so.2: cannot open shared >> object file: No such file or directory' >> --------- >> open AddonLoader.io 65 >> Object Socket Command Line 1 >> >> _Nick_ >> >> >> On Fri, Oct 2, 2009 at 7:50 PM, Jeremy Tregunna <jeremy.tregunna@... >> > wrote: >> >> >> In fact I do. See if you can clear that up first then make clean >> and build Socket again. >> >> On 2009-10-02, at 10:44 PM, Nick Fitzgerald wrote: >> >>> >>> >>> I just built 1.4.8-stable from source, and still no luck. >>> Interestingly enough, in the traceback Io refers to >>> libevent-1.3e.so.1 and not libevent-1.4.8. >>> >>> Do you think this is a remnant of a previous version? >>> >>> Io> Socket >>> >>> Exception: Error loading object '/usr/local/lib/io/addons/Socket/ >>> _build/dll/libIoSocket.so': 'libevent-1.3e.so.1: cannot open >>> shared object file: No such file or directory' >>> --------- >>> open AddonLoader.io 65 >>> Object Socket Command Line 1 >>> >>> >>> _Nick_ >>> >>> >>> On Fri, Oct 2, 2009 at 7:40 PM, Jeremy Tregunna <jeremy.tregunna@... >>> > wrote: >>> >>> What version of libevent are you using? >>> >>> >>> On 2009-10-02, at 8:41 PM, Nick Fitzgerald wrote: >>> >>>> >>>> >>>> Thanks for all the help so far guys! I seem to be making some >>>> slight progress (maybe). >>>> >>>> I ran these commands in this order: >>>> >>>> * sudo aptitude install libevent-dev >>>> * sudo aptitude build-dep libevent-dev >>>> * sudo make Socket >>>> * sudo make install >>>> >>>> Opened up Io, and tried to access the Socket addon again: >>>> >>>> Io 20090105 >>>> Io> Socket >>>> >>>> Exception: Error loading object '/usr/local/lib/io/addons/ >>>> Socket/_build/dll/libIoSocket.so': '/usr/local/lib/io/addons/ >>>> Socket/_build/dll/libIoSocket.so: undefined symbol: >>>> IoEvRequest_proto' >>>> --------- >>>> open AddonLoader.io 65 >>>> Object Socket Command Line 1 >>>> >>>> So, I'm getting a new error now. Again, the message doesn't mean >>>> too much to me, and I'm stuck again. It seems perhaps I got a >>>> little farther this time, but I could be wrong. >>>> >>>> Should I remove libevent completely and start again from source? >>>> Or does this seem to be a problem that needs to be fixed in a >>>> different spot you think? >>>> >>>> Thanks, >>>> >>>> _Nick_ >>>> >>>> >>>> On Fri, Oct 2, 2009 at 1:47 PM, dennisf486 <dennisf486@...> >>>> wrote: >>>> >>>> I had the same problem on Ubuntu 9.04. It is caused by a problem >>>> with the event library. Unfortunately I don't remember what I did >>>> to fix it but I think you are on the right track. For some reason >>>> I'm thinking that libevent1 wasn't exactly the right one, but >>>> when I list my installed packages I can't find any others that >>>> have event in their name. I know I didn't have Socket working a >>>> couple months ago and now I do have it working. It might be that >>>> you need to find a -dev version or something, or it might depend >>>> on an old, deprecated version of the event library. >>>> >>>> A trick is that works in a lot of these cases is if you can find >>>> a dev package for a project that depends on the same libraries as >>>> what you know you need, then you can use the command "apt-get >>>> build-dep project-name" to install all the dependencies it needs, >>>> and hopefully those will be the ones Io needs too. I think I used >>>> something like "sudo apt-get build-dep tuxracer" to get the >>>> dependencies I needed for Io's open-GL addon. >>>> >>>> >>>> >>>> --- In iolanguage@..., "fitzgen@..." <fitzgen@...> >>>> wrote: >>>> > >>>> > >>>> > >>>> > I just ran "sudo make Socket" again, then ran "sudo make >>>> install" and I'm still getting that same message inside Io when I >>>> try to access the Socket addon. >>>> > >>>> > I have libevent1 installed, is that equivalent? It seems ubuntu >>>> has no "libevent" package, but many packages whose name contains >>>> "libevent". >>>> > >>>> > Thanks again >>>> > >>>> > --- In iolanguage@..., Rich Collins <richcollins@> >>>> wrote: >>>> > > >>>> > > Looks good to me. Did you sudo make install afterward? Is >>>> libevent >>>> > > installed? >>>> > > >>>> > > >>>> > > >>>> > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: >>>> > > >>>> > > > Hello everyone! >>>> > > > >>>> > > > I stumbled upon Io the other day and I very much like what >>>> I see! I >>>> > > > want to continue exploring the language and since most of my >>>> > > > background is in web-related stuff with Python and some >>>> JavaScript >>>> > > > (aside: server side js is starting to look cool what with >>>> commonjs >>>> > > > and such. Too bad the implementation of prototypes is so >>>> lame in js, >>>> > > > one of the things that attracts me to Io is the good >>>> implementation >>>> > > > of protos). >>>> > > > >>>> > > > Anyyyyways, I figured I would introduce myself to this >>>> foreign world >>>> > > > of Io with something a little familiar: little web apps. >>>> > > > >>>> > > > Unfortunately, it seems the Socket addon did not compile >>>> with the >>>> > > > rest of Io: >>>> > > > >>>> > > > Io> Socket >>>> > > > >>>> > > > Exception: Failed to load Addon Socket - it appears that >>>> the addon >>>> > > > exists but was not compiled. You might try running 'make >>>> Socket' in >>>> > > > the Io source folder. >>>> > > > --------- >>>> > > > Object Socket Command Line 1 >>>> > > > >>>> > > > I tried running "sudo make Socket" inside the io dir, and >>>> this is >>>> > > > what is dumped to stdout: >>>> > > > ./_build/binaries/io_static build.io -a Socket >>>> > > > >>>> > > > --- Socket >>>> > > > ---------------------------------------------------------- >>>> > > > >>>> > > > build.io: Entering directory `addons/Socket' >>>> > > > >>>> > > > cp source/*.h _build/headers >>>> > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ >>>> _build/ >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >>>> include -I/usr/ >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ >>>> usr/include/ >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o >>>> source/ >>>> > > > IoEventManager.c >>>> > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ >>>> _build/ >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >>>> include -I/usr/ >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ >>>> usr/include/ >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ >>>> > > > IoEvRequest.c >>>> > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ >>>> _build/ >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >>>> include -I/usr/ >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ >>>> usr/include/ >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/ >>>> IoEvent.c >>>> > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ >>>> _build/ >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >>>> include -I/usr/ >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ >>>> usr/include/ >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o >>>> source/ >>>> > > > IoEvConnection.c >>>> > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ >>>> _build/ >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >>>> include -I/usr/ >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ >>>> usr/include/ >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ >>>> > > > IoSocketInit.c >>>> > > > >>>> > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o >>>> > > > >>>> > > > ranlib _build/lib/libIoSocket.a >>>> > > > >>>> > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/ >>>> usr/ >>>> > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall >>>> > > > >>>> > > > build.io: Leaving directory `addons/Socket' >>>> > > > >>>> > > > >>>> > > > But I still can't use the Socket addon, and receive the >>>> same message >>>> > > > I originally had in Io. >>>> > > > >>>> > > > I have been spoiled in the past, and have been able to >>>> install most >>>> > > > everything I want through apt-get (I'm running Ubuntu 9.04 >>>> by the >>>> > > > way) and have never had to troubleshoot compiling source >>>> files. I'm >>>> > > > utterly lost. Can anyone help me? >>>> > > > >>>> > > > Thanks for being patient with me and thanks for helping. >>>> > > > >>>> > > > _Nick_ >>>> > > > >>>> > > >>>> > >>>> >>>> >>>> >>>> >>> >>> Regards, >>> >>> Jeremy Tregunna >>> jeremy.tregunna@... >>> >>> >>> >>> >>> >>> >> >> Regards, >> >> Jeremy Tregunna >> jeremy.tregunna@... >> >> >> >> >> >> > > Regards, > > Jeremy Tregunna > jeremy.tregunna@... > > > > > > > Regards, Jeremy Tregunna jeremy.tregunna@... |
|
|
Re: Help with building the Socket addon pleaseOh that jogged my memory. Two things:
1. It was actually the NEWER version of libevent that was broken. They changed the name of a function or something, and broke a lot of people's code. It was a really dumb thing of them to do and needlessly broke compatibility with existing stuff for no good reason. I read bug tracker report on it somewhere. You either need to force-install an older version or find out if they've released an even newer version that reverts the change. 2. Since the system tries to use the latest version, in order to revert to 1.3 I had to do a really thorough search of my hard drive for any reference to any libevent.*.so file and delete it. Every time I thought I'd fixed it, the 1.4 version of libevent would keep coming back like night of the living dead; you have to find all the places it's copied or linked and excise them. Only then can you build and install libevent 1.3 and then you should be good. --- In iolanguage@..., Jeremy Tregunna <jeremy.tregunna@...> wrote: > > Ok, do you see the problem with that? :) > > Find libevent-1.4.so.2 on your system, ensure the dir it exists in is > in your ld cache search path (normally /etc/ld.so.conf) and rerun > ldconfig. See if this fixes your problem. No need to build Socket again. > > On 2009-10-02, at 11:05 PM, Nick Fitzgerald wrote: > > > > > > > linux-gate.so.1 => (0xb8091000) > > libevent-1.4.so.2 => not found > > /usr/local/lib/libiovmall.so (0xb7fa0000) > > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e3c000) > > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e38000) > > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e12000) > > /lib/ld-linux.so.2 (0xb8092000) > > > > You don't happen to be on #io do you? I feel like we are having a > > really slow back and forth here... > > > > _Nick_ > > > > > > On Fri, Oct 2, 2009 at 8:03 PM, Jeremy Tregunna <jeremy.tregunna@... > > > wrote: > > > > Do us a favour, run an ldd /usr/local/lib/io/addons/Socket/_build/ > > dll/libIoSocket.so and paste the output. > > > > > > On 2009-10-02, at 11:02 PM, Nick Fitzgerald wrote: > > > >> > >> > >> Argh, same message, this time it is referencing libevent-1.4: > >> > >> Io> Socket > >> > >> Exception: Error loading object '/usr/local/lib/io/addons/Socket/ > >> _build/dll/libIoSocket.so': 'libevent-1.4.so.2: cannot open shared > >> object file: No such file or directory' > >> --------- > >> open AddonLoader.io 65 > >> Object Socket Command Line 1 > >> > >> _Nick_ > >> > >> > >> On Fri, Oct 2, 2009 at 7:50 PM, Jeremy Tregunna <jeremy.tregunna@... > >> > wrote: > >> > >> > >> In fact I do. See if you can clear that up first then make clean > >> and build Socket again. > >> > >> On 2009-10-02, at 10:44 PM, Nick Fitzgerald wrote: > >> > >>> > >>> > >>> I just built 1.4.8-stable from source, and still no luck. > >>> Interestingly enough, in the traceback Io refers to > >>> libevent-1.3e.so.1 and not libevent-1.4.8. > >>> > >>> Do you think this is a remnant of a previous version? > >>> > >>> Io> Socket > >>> > >>> Exception: Error loading object '/usr/local/lib/io/addons/Socket/ > >>> _build/dll/libIoSocket.so': 'libevent-1.3e.so.1: cannot open > >>> shared object file: No such file or directory' > >>> --------- > >>> open AddonLoader.io 65 > >>> Object Socket Command Line 1 > >>> > >>> > >>> _Nick_ > >>> > >>> > >>> On Fri, Oct 2, 2009 at 7:40 PM, Jeremy Tregunna <jeremy.tregunna@... > >>> > wrote: > >>> > >>> What version of libevent are you using? > >>> > >>> > >>> On 2009-10-02, at 8:41 PM, Nick Fitzgerald wrote: > >>> > >>>> > >>>> > >>>> Thanks for all the help so far guys! I seem to be making some > >>>> slight progress (maybe). > >>>> > >>>> I ran these commands in this order: > >>>> > >>>> * sudo aptitude install libevent-dev > >>>> * sudo aptitude build-dep libevent-dev > >>>> * sudo make Socket > >>>> * sudo make install > >>>> > >>>> Opened up Io, and tried to access the Socket addon again: > >>>> > >>>> Io 20090105 > >>>> Io> Socket > >>>> > >>>> Exception: Error loading object '/usr/local/lib/io/addons/ > >>>> Socket/_build/dll/libIoSocket.so': '/usr/local/lib/io/addons/ > >>>> Socket/_build/dll/libIoSocket.so: undefined symbol: > >>>> IoEvRequest_proto' > >>>> --------- > >>>> open AddonLoader.io 65 > >>>> Object Socket Command Line 1 > >>>> > >>>> So, I'm getting a new error now. Again, the message doesn't mean > >>>> too much to me, and I'm stuck again. It seems perhaps I got a > >>>> little farther this time, but I could be wrong. > >>>> > >>>> Should I remove libevent completely and start again from source? > >>>> Or does this seem to be a problem that needs to be fixed in a > >>>> different spot you think? > >>>> > >>>> Thanks, > >>>> > >>>> _Nick_ > >>>> > >>>> > >>>> On Fri, Oct 2, 2009 at 1:47 PM, dennisf486 <dennisf486@...> > >>>> wrote: > >>>> > >>>> I had the same problem on Ubuntu 9.04. It is caused by a problem > >>>> with the event library. Unfortunately I don't remember what I did > >>>> to fix it but I think you are on the right track. For some reason > >>>> I'm thinking that libevent1 wasn't exactly the right one, but > >>>> when I list my installed packages I can't find any others that > >>>> have event in their name. I know I didn't have Socket working a > >>>> couple months ago and now I do have it working. It might be that > >>>> you need to find a -dev version or something, or it might depend > >>>> on an old, deprecated version of the event library. > >>>> > >>>> A trick is that works in a lot of these cases is if you can find > >>>> a dev package for a project that depends on the same libraries as > >>>> what you know you need, then you can use the command "apt-get > >>>> build-dep project-name" to install all the dependencies it needs, > >>>> and hopefully those will be the ones Io needs too. I think I used > >>>> something like "sudo apt-get build-dep tuxracer" to get the > >>>> dependencies I needed for Io's open-GL addon. > >>>> > >>>> > >>>> > >>>> --- In iolanguage@..., "fitzgen@" <fitzgen@> > >>>> wrote: > >>>> > > >>>> > > >>>> > > >>>> > I just ran "sudo make Socket" again, then ran "sudo make > >>>> install" and I'm still getting that same message inside Io when I > >>>> try to access the Socket addon. > >>>> > > >>>> > I have libevent1 installed, is that equivalent? It seems ubuntu > >>>> has no "libevent" package, but many packages whose name contains > >>>> "libevent". > >>>> > > >>>> > Thanks again > >>>> > > >>>> > --- In iolanguage@..., Rich Collins <richcollins@> > >>>> wrote: > >>>> > > > >>>> > > Looks good to me. Did you sudo make install afterward? Is > >>>> libevent > >>>> > > installed? > >>>> > > > >>>> > > > >>>> > > > >>>> > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: > >>>> > > > >>>> > > > Hello everyone! > >>>> > > > > >>>> > > > I stumbled upon Io the other day and I very much like what > >>>> I see! I > >>>> > > > want to continue exploring the language and since most of my > >>>> > > > background is in web-related stuff with Python and some > >>>> JavaScript > >>>> > > > (aside: server side js is starting to look cool what with > >>>> commonjs > >>>> > > > and such. Too bad the implementation of prototypes is so > >>>> lame in js, > >>>> > > > one of the things that attracts me to Io is the good > >>>> implementation > >>>> > > > of protos). > >>>> > > > > >>>> > > > Anyyyyways, I figured I would introduce myself to this > >>>> foreign world > >>>> > > > of Io with something a little familiar: little web apps. > >>>> > > > > >>>> > > > Unfortunately, it seems the Socket addon did not compile > >>>> with the > >>>> > > > rest of Io: > >>>> > > > > >>>> > > > Io> Socket > >>>> > > > > >>>> > > > Exception: Failed to load Addon Socket - it appears that > >>>> the addon > >>>> > > > exists but was not compiled. You might try running 'make > >>>> Socket' in > >>>> > > > the Io source folder. > >>>> > > > --------- > >>>> > > > Object Socket Command Line 1 > >>>> > > > > >>>> > > > I tried running "sudo make Socket" inside the io dir, and > >>>> this is > >>>> > > > what is dumped to stdout: > >>>> > > > ./_build/binaries/io_static build.io -a Socket > >>>> > > > > >>>> > > > --- Socket > >>>> > > > ---------------------------------------------------------- > >>>> > > > > >>>> > > > build.io: Entering directory `addons/Socket' > >>>> > > > > >>>> > > > cp source/*.h _build/headers > >>>> > > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ > >>>> _build/ > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ > >>>> include -I/usr/ > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ > >>>> usr/include/ > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o > >>>> source/ > >>>> > > > IoEventManager.c > >>>> > > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ > >>>> _build/ > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ > >>>> include -I/usr/ > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ > >>>> usr/include/ > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ > >>>> > > > IoEvRequest.c > >>>> > > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ > >>>> _build/ > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ > >>>> include -I/usr/ > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ > >>>> usr/include/ > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/ > >>>> IoEvent.c > >>>> > > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ > >>>> _build/ > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ > >>>> include -I/usr/ > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ > >>>> usr/include/ > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o > >>>> source/ > >>>> > > > IoEvConnection.c > >>>> > > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ > >>>> _build/ > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ > >>>> include -I/usr/ > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ > >>>> usr/include/ > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ > >>>> > > > IoSocketInit.c > >>>> > > > > >>>> > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o > >>>> > > > > >>>> > > > ranlib _build/lib/libIoSocket.a > >>>> > > > > >>>> > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/ > >>>> usr/ > >>>> > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall > >>>> > > > > >>>> > > > build.io: Leaving directory `addons/Socket' > >>>> > > > > >>>> > > > > >>>> > > > But I still can't use the Socket addon, and receive the > >>>> same message > >>>> > > > I originally had in Io. > >>>> > > > > >>>> > > > I have been spoiled in the past, and have been able to > >>>> install most > >>>> > > > everything I want through apt-get (I'm running Ubuntu 9.04 > >>>> by the > >>>> > > > way) and have never had to troubleshoot compiling source > >>>> files. I'm > >>>> > > > utterly lost. Can anyone help me? > >>>> > > > > >>>> > > > Thanks for being patient with me and thanks for helping. > >>>> > > > > >>>> > > > _Nick_ > >>>> > > > > >>>> > > > >>>> > > >>>> > >>>> > >>>> > >>>> > >>> > >>> Regards, > >>> > >>> Jeremy Tregunna > >>> jeremy.tregunna@... > >>> > >>> > >>> > >>> > >>> > >>> > >> > >> Regards, > >> > >> Jeremy Tregunna > >> jeremy.tregunna@... > >> > >> > >> > >> > >> > >> > > > > Regards, > > > > Jeremy Tregunna > > jeremy.tregunna@... > > > > > > > > > > > > > > > > Regards, > > Jeremy Tregunna > jeremy.tregunna@... > |
|
|
Re: Re: Help with building the Socket addon pleaseThanks for all the help everyone! I managed to get it working somehow. Last
night jer was hand holding me through finding what was wrong with libevent, and I ended up having to run, with the expectation that I would have more tinkering to do today to get things to work. Well, I ran ldd /usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so again this morning and all the dependencies were found. I fired up the REPL and wouldn't ya know it, Socket is available. So once again, THANKS EVERYONE! All your help has been very much appreciated, and a special thanks to jer for walking me through some troubleshooting step by step on #io. Now I am trying to figure out exactly what did the trick, so I can document it and post it back to the mailing list and maybe write up a blog post for whoever has this issue in the future. libevent-1.4.8-stable was the one I built from source, and ended up working. I built it with the instructions from http://blog.as.tl/2009/01/04/compiling-io-on-ubuntu-810/ but had to do a lot of trickery to find all the old versions of libevent first and remove them. I think I ran something like "sudo locate libevent | xargs rm" but it seems like a risky command, and I'm glad I got away with it. Unfortunately my .bash_history isn't very complete (at all), and I'm not sure why (I think because I had multiple terminals open or something) which is unfortunate because I can't retrace my exact steps. Is there a log of #io? I'm sure that would be helpful for writing this up. Anyways, I have a couple errands to run right now, but this afternoon I am going to keep working on documenting exactly what did the trick. Thanks again! _Nick_ On Sat, Oct 3, 2009 at 10:18 AM, dennisf486 <dennisf486@...> wrote: > > > Oh that jogged my memory. Two things: > > 1. It was actually the NEWER version of libevent that was broken. They > changed the name of a function or something, and broke a lot of people's > code. It was a really dumb thing of them to do and needlessly broke > compatibility with existing stuff for no good reason. I read bug tracker > report on it somewhere. You either need to force-install an older version or > find out if they've released an even newer version that reverts the change. > > 2. Since the system tries to use the latest version, in order to revert to > 1.3 I had to do a really thorough search of my hard drive for any reference > to any libevent.*.so file and delete it. Every time I thought I'd fixed it, > the 1.4 version of libevent would keep coming back like night of the living > dead; you have to find all the places it's copied or linked and excise them. > Only then can you build and install libevent 1.3 and then you should be > good. > > > --- In iolanguage@... <iolanguage%40yahoogroups.com>, Jeremy > Tregunna <jeremy.tregunna@...> wrote: > > > > Ok, do you see the problem with that? :) > > > > Find libevent-1.4.so.2 on your system, ensure the dir it exists in is > > in your ld cache search path (normally /etc/ld.so.conf) and rerun > > ldconfig. See if this fixes your problem. No need to build Socket again. > > > > On 2009-10-02, at 11:05 PM, Nick Fitzgerald wrote: > > > > > > > > > > > linux-gate.so.1 => (0xb8091000) > > > libevent-1.4.so.2 => not found > > > /usr/local/lib/libiovmall.so (0xb7fa0000) > > > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e3c000) > > > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e38000) > > > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e12000) > > > /lib/ld-linux.so.2 (0xb8092000) > > > > > > You don't happen to be on #io do you? I feel like we are having a > > > really slow back and forth here... > > > > > > _Nick_ > > > > > > > > > On Fri, Oct 2, 2009 at 8:03 PM, Jeremy Tregunna <jeremy.tregunna@... > > > > wrote: > > > > > > Do us a favour, run an ldd /usr/local/lib/io/addons/Socket/_build/ > > > dll/libIoSocket.so and paste the output. > > > > > > > > > On 2009-10-02, at 11:02 PM, Nick Fitzgerald wrote: > > > > > >> > > >> > > >> Argh, same message, this time it is referencing libevent-1.4: > > >> > > >> Io> Socket > > >> > > >> Exception: Error loading object '/usr/local/lib/io/addons/Socket/ > > >> _build/dll/libIoSocket.so': 'libevent-1.4.so.2: cannot open shared > > >> object file: No such file or directory' > > >> --------- > > >> open AddonLoader.io 65 > > >> Object Socket Command Line 1 > > >> > > >> _Nick_ > > >> > > >> > > >> On Fri, Oct 2, 2009 at 7:50 PM, Jeremy Tregunna <jeremy.tregunna@... > > >> > wrote: > > >> > > >> > > >> In fact I do. See if you can clear that up first then make clean > > >> and build Socket again. > > >> > > >> On 2009-10-02, at 10:44 PM, Nick Fitzgerald wrote: > > >> > > >>> > > >>> > > >>> I just built 1.4.8-stable from source, and still no luck. > > >>> Interestingly enough, in the traceback Io refers to > > >>> libevent-1.3e.so.1 and not libevent-1.4.8. > > >>> > > >>> Do you think this is a remnant of a previous version? > > >>> > > >>> Io> Socket > > >>> > > >>> Exception: Error loading object '/usr/local/lib/io/addons/Socket/ > > >>> _build/dll/libIoSocket.so': 'libevent-1.3e.so.1: cannot open > > >>> shared object file: No such file or directory' > > >>> --------- > > >>> open AddonLoader.io 65 > > >>> Object Socket Command Line 1 > > >>> > > >>> > > >>> _Nick_ > > >>> > > >>> > > >>> On Fri, Oct 2, 2009 at 7:40 PM, Jeremy Tregunna <jeremy.tregunna@... > > > >>> > wrote: > > >>> > > >>> What version of libevent are you using? > > >>> > > >>> > > >>> On 2009-10-02, at 8:41 PM, Nick Fitzgerald wrote: > > >>> > > >>>> > > >>>> > > >>>> Thanks for all the help so far guys! I seem to be making some > > >>>> slight progress (maybe). > > >>>> > > >>>> I ran these commands in this order: > > >>>> > > >>>> * sudo aptitude install libevent-dev > > >>>> * sudo aptitude build-dep libevent-dev > > >>>> * sudo make Socket > > >>>> * sudo make install > > >>>> > > >>>> Opened up Io, and tried to access the Socket addon again: > > >>>> > > >>>> Io 20090105 > > >>>> Io> Socket > > >>>> > > >>>> Exception: Error loading object '/usr/local/lib/io/addons/ > > >>>> Socket/_build/dll/libIoSocket.so': '/usr/local/lib/io/addons/ > > >>>> Socket/_build/dll/libIoSocket.so: undefined symbol: > > >>>> IoEvRequest_proto' > > >>>> --------- > > >>>> open AddonLoader.io 65 > > >>>> Object Socket Command Line 1 > > >>>> > > >>>> So, I'm getting a new error now. Again, the message doesn't mean > > >>>> too much to me, and I'm stuck again. It seems perhaps I got a > > >>>> little farther this time, but I could be wrong. > > >>>> > > >>>> Should I remove libevent completely and start again from source? > > >>>> Or does this seem to be a problem that needs to be fixed in a > > >>>> different spot you think? > > >>>> > > >>>> Thanks, > > >>>> > > >>>> _Nick_ > > >>>> > > >>>> > > >>>> On Fri, Oct 2, 2009 at 1:47 PM, dennisf486 <dennisf486@...> > > >>>> wrote: > > >>>> > > >>>> I had the same problem on Ubuntu 9.04. It is caused by a problem > > >>>> with the event library. Unfortunately I don't remember what I did > > >>>> to fix it but I think you are on the right track. For some reason > > >>>> I'm thinking that libevent1 wasn't exactly the right one, but > > >>>> when I list my installed packages I can't find any others that > > >>>> have event in their name. I know I didn't have Socket working a > > >>>> couple months ago and now I do have it working. It might be that > > >>>> you need to find a -dev version or something, or it might depend > > >>>> on an old, deprecated version of the event library. > > >>>> > > >>>> A trick is that works in a lot of these cases is if you can find > > >>>> a dev package for a project that depends on the same libraries as > > >>>> what you know you need, then you can use the command "apt-get > > >>>> build-dep project-name" to install all the dependencies it needs, > > >>>> and hopefully those will be the ones Io needs too. I think I used > > >>>> something like "sudo apt-get build-dep tuxracer" to get the > > >>>> dependencies I needed for Io's open-GL addon. > > >>>> > > >>>> > > >>>> > > >>>> --- In iolanguage@... <iolanguage%40yahoogroups.com>, > "fitzgen@" <fitzgen@> > > >>>> wrote: > > >>>> > > > >>>> > > > >>>> > > > >>>> > I just ran "sudo make Socket" again, then ran "sudo make > > >>>> install" and I'm still getting that same message inside Io when I > > >>>> try to access the Socket addon. > > >>>> > > > >>>> > I have libevent1 installed, is that equivalent? It seems ubuntu > > >>>> has no "libevent" package, but many packages whose name contains > > >>>> "libevent". > > >>>> > > > >>>> > Thanks again > > >>>> > > > >>>> > --- In iolanguage@... <iolanguage%40yahoogroups.com>, > Rich Collins <richcollins@> > > >>>> wrote: > > >>>> > > > > >>>> > > Looks good to me. Did you sudo make install afterward? Is > > >>>> libevent > > >>>> > > installed? > > >>>> > > > > >>>> > > > > >>>> > > > > >>>> > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: > > >>>> > > > > >>>> > > > Hello everyone! > > >>>> > > > > > >>>> > > > I stumbled upon Io the other day and I very much like what > > >>>> I see! I > > >>>> > > > want to continue exploring the language and since most of my > > >>>> > > > background is in web-related stuff with Python and some > > >>>> JavaScript > > >>>> > > > (aside: server side js is starting to look cool what with > > >>>> commonjs > > >>>> > > > and such. Too bad the implementation of prototypes is so > > >>>> lame in js, > > >>>> > > > one of the things that attracts me to Io is the good > > >>>> implementation > > >>>> > > > of protos). > > >>>> > > > > > >>>> > > > Anyyyyways, I figured I would introduce myself to this > > >>>> foreign world > > >>>> > > > of Io with something a little familiar: little web apps. > > >>>> > > > > > >>>> > > > Unfortunately, it seems the Socket addon did not compile > > >>>> with the > > >>>> > > > rest of Io: > > >>>> > > > > > >>>> > > > Io> Socket > > >>>> > > > > > >>>> > > > Exception: Failed to load Addon Socket - it appears that > > >>>> the addon > > >>>> > > > exists but was not compiled. You might try running 'make > > >>>> Socket' in > > >>>> > > > the Io source folder. > > >>>> > > > --------- > > >>>> > > > Object Socket Command Line 1 > > >>>> > > > > > >>>> > > > I tried running "sudo make Socket" inside the io dir, and > > >>>> this is > > >>>> > > > what is dumped to stdout: > > >>>> > > > ./_build/binaries/io_static build.io -a Socket > > >>>> > > > > > >>>> > > > --- Socket > > >>>> > > > ---------------------------------------------------------- > > >>>> > > > > > >>>> > > > build.io: Entering directory `addons/Socket' > > >>>> > > > > > >>>> > > > cp source/*.h _build/headers > > >>>> > > > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ > > >>>> _build/ > > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ > > >>>> include -I/usr/ > > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ > > >>>> usr/include/ > > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o > > >>>> source/ > > >>>> > > > IoEventManager.c > > >>>> > > > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ > > >>>> _build/ > > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ > > >>>> include -I/usr/ > > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ > > >>>> usr/include/ > > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ > > >>>> > > > IoEvRequest.c > > >>>> > > > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ > > >>>> _build/ > > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ > > >>>> include -I/usr/ > > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ > > >>>> usr/include/ > > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/ > > >>>> IoEvent.c > > >>>> > > > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ > > >>>> _build/ > > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ > > >>>> include -I/usr/ > > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ > > >>>> usr/include/ > > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o > > >>>> source/ > > >>>> > > > IoEvConnection.c > > >>>> > > > > > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - > > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ > > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ > > >>>> _build/ > > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ > > >>>> include -I/usr/ > > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ > > >>>> usr/include/ > > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ > > >>>> > > > IoSocketInit.c > > >>>> > > > > > >>>> > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o > > >>>> > > > > > >>>> > > > ranlib _build/lib/libIoSocket.a > > >>>> > > > > > >>>> > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/ > > >>>> usr/ > > >>>> > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall > > >>>> > > > > > >>>> > > > build.io: Leaving directory `addons/Socket' > > >>>> > > > > > >>>> > > > > > >>>> > > > But I still can't use the Socket addon, and receive the > > >>>> same message > > >>>> > > > I originally had in Io. > > >>>> > > > > > >>>> > > > I have been spoiled in the past, and have been able to > > >>>> install most > > >>>> > > > everything I want through apt-get (I'm running Ubuntu 9.04 > > >>>> by the > > >>>> > > > way) and have never had to troubleshoot compiling source > > >>>> files. I'm > > >>>> > > > utterly lost. Can anyone help me? > > >>>> > > > > > >>>> > > > Thanks for being patient with me and thanks for helping. > > >>>> > > > > > >>>> > > > _Nick_ > > >>>> > > > > > >>>> > > > > >>>> > > > >>>> > > >>>> > > >>>> > > >>>> > > >>> > > >>> Regards, > > >>> > > >>> Jeremy Tregunna > > >>> jeremy.tregunna@... > > >>> > > >>> > > >>> > > >>> > > >>> > > >>> > > >> > > >> Regards, > > >> > > >> Jeremy Tregunna > > >> jeremy.tregunna@... > > >> > > >> > > >> > > >> > > >> > > >> > > > > > > Regards, > > > > > > Jeremy Tregunna > > > jeremy.tregunna@... > > > > > > > > > > > > > > > > > > > > > > > > > Regards, > > > > Jeremy Tregunna > > jeremy.tregunna@... > > > > > |
|
|
Re: Re: Help with building the Socket addon please Ok, so I figured it all out, if anyone else gets this error:
Io> Socket Exception: Failed to load Addon Socket - it appears that the addon exists but was not compiled. You might try running 'make Socket' in the Io source folder. --------- Object Socket Command Line 1 just do the following: 1. Remove all versions of libevent and all references to libevent from your system. 2. Install libevent-1.4.8-stable from source (taken from http://blog.as.tl/2009/01/04/compiling-io-on-ubuntu-810/): - wget http://monkey.org/~provos/libevent-1.4.8-stable.tar.gz - gzip -d libevent-1.4.8-stable.tar.gz && tar -xf libevent-1.4.8-stable.tar && rm libevent-1.4.8-stable.tar - cd libevent-1.4.8-stable - ./configure –prefix=/usr - sudo make - sudo checkinstall -D * In the checkinstall press “2″ to change the name to just “libevent” and then press “3″ to change the version to “1.4.8″ because its default value with this package is “stable” which is wrong because checkinstall won’t create a *.deb because the package name will be invalid. Press “3″ in the checkinstall menu and enter “1.4.8″. Enter again and the deb should be build. 3. Return to the Io source directory: - sudo make clean - sudo make - sudo make install 4. Test that everything worked by opening up the Io REPL and access the Socket object. Success! I just tested all this on my laptop, which was having the same problems that I was having on this computer and everything is groovey. However, if you find that you're getting that error with Socket there are probably a lot more addons that didn't compile (at least thats how it was for me) that should be pretty easy to compile if you follow the instructions at http://blog.as.tl/2009/01/04/compiling-io-on-ubuntu-810/ Hope that is helpful to somebody in the future, thanks again everyone for helping me out! _Nick_ On Sat, Oct 3, 2009 at 10:40 AM, Nick Fitzgerald <fitzgen@...> wrote: > Thanks for all the help everyone! I managed to get it working somehow. Last > night jer was hand holding me through finding what was wrong with libevent, > and I ended up having to run, with the expectation that I would have more > tinkering to do today to get things to work. > > Well, I ran ldd /usr/local/lib/io/addons/Socket/_build/dll/libIoSocket.so > again this morning and all the dependencies were found. I fired up the REPL > and wouldn't ya know it, Socket is available. > > So once again, THANKS EVERYONE! All your help has been very much > appreciated, and a special thanks to jer for walking me through some > troubleshooting step by step on #io. > > Now I am trying to figure out exactly what did the trick, so I can document > it and post it back to the mailing list and maybe write up a blog post for > whoever has this issue in the future. > > libevent-1.4.8-stable was the one I built from source, and ended up > working. I built it with the instructions from > http://blog.as.tl/2009/01/04/compiling-io-on-ubuntu-810/ but had to do a > lot of trickery to find all the old versions of libevent first and remove > them. > > I think I ran something like "sudo locate libevent | xargs rm" but it seems > like a risky command, and I'm glad I got away with it. > > Unfortunately my .bash_history isn't very complete (at all), and I'm not > sure why (I think because I had multiple terminals open or something) which > is unfortunate because I can't retrace my exact steps. > > Is there a log of #io? I'm sure that would be helpful for writing this up. > > Anyways, I have a couple errands to run right now, but this afternoon I am > going to keep working on documenting exactly what did the trick. > > Thanks again! > > _Nick_ > > > > On Sat, Oct 3, 2009 at 10:18 AM, dennisf486 <dennisf486@...> wrote: > >> >> >> Oh that jogged my memory. Two things: >> >> 1. It was actually the NEWER version of libevent that was broken. They >> changed the name of a function or something, and broke a lot of people's >> code. It was a really dumb thing of them to do and needlessly broke >> compatibility with existing stuff for no good reason. I read bug tracker >> report on it somewhere. You either need to force-install an older version or >> find out if they've released an even newer version that reverts the change. >> >> 2. Since the system tries to use the latest version, in order to revert to >> 1.3 I had to do a really thorough search of my hard drive for any reference >> to any libevent.*.so file and delete it. Every time I thought I'd fixed it, >> the 1.4 version of libevent would keep coming back like night of the living >> dead; you have to find all the places it's copied or linked and excise them. >> Only then can you build and install libevent 1.3 and then you should be >> good. >> >> >> --- In iolanguage@... <iolanguage%40yahoogroups.com>, Jeremy >> Tregunna <jeremy.tregunna@...> wrote: >> > >> > Ok, do you see the problem with that? :) >> > >> > Find libevent-1.4.so.2 on your system, ensure the dir it exists in is >> > in your ld cache search path (normally /etc/ld.so.conf) and rerun >> > ldconfig. See if this fixes your problem. No need to build Socket again. >> > >> > On 2009-10-02, at 11:05 PM, Nick Fitzgerald wrote: >> > >> > > >> > > >> > > linux-gate.so.1 => (0xb8091000) >> > > libevent-1.4.so.2 => not found >> > > /usr/local/lib/libiovmall.so (0xb7fa0000) >> > > libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e3c000) >> > > libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7e38000) >> > > libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7e12000) >> > > /lib/ld-linux.so.2 (0xb8092000) >> > > >> > > You don't happen to be on #io do you? I feel like we are having a >> > > really slow back and forth here... >> > > >> > > _Nick_ >> > > >> > > >> > > On Fri, Oct 2, 2009 at 8:03 PM, Jeremy Tregunna <jeremy.tregunna@... >> > > > wrote: >> > > >> > > Do us a favour, run an ldd /usr/local/lib/io/addons/Socket/_build/ >> > > dll/libIoSocket.so and paste the output. >> > > >> > > >> > > On 2009-10-02, at 11:02 PM, Nick Fitzgerald wrote: >> > > >> > >> >> > >> >> > >> Argh, same message, this time it is referencing libevent-1.4: >> > >> >> > >> Io> Socket >> > >> >> > >> Exception: Error loading object '/usr/local/lib/io/addons/Socket/ >> > >> _build/dll/libIoSocket.so': 'libevent-1.4.so.2: cannot open shared >> > >> object file: No such file or directory' >> > >> --------- >> > >> open AddonLoader.io 65 >> > >> Object Socket Command Line 1 >> > >> >> > >> _Nick_ >> > >> >> > >> >> > >> On Fri, Oct 2, 2009 at 7:50 PM, Jeremy Tregunna <jeremy.tregunna@... >> >> > >> > wrote: >> > >> >> > >> >> > >> In fact I do. See if you can clear that up first then make clean >> > >> and build Socket again. >> > >> >> > >> On 2009-10-02, at 10:44 PM, Nick Fitzgerald wrote: >> > >> >> > >>> >> > >>> >> > >>> I just built 1.4.8-stable from source, and still no luck. >> > >>> Interestingly enough, in the traceback Io refers to >> > >>> libevent-1.3e.so.1 and not libevent-1.4.8. >> > >>> >> > >>> Do you think this is a remnant of a previous version? >> > >>> >> > >>> Io> Socket >> > >>> >> > >>> Exception: Error loading object '/usr/local/lib/io/addons/Socket/ >> > >>> _build/dll/libIoSocket.so': 'libevent-1.3e.so.1: cannot open >> > >>> shared object file: No such file or directory' >> > >>> --------- >> > >>> open AddonLoader.io 65 >> > >>> Object Socket Command Line 1 >> > >>> >> > >>> >> > >>> _Nick_ >> > >>> >> > >>> >> > >>> On Fri, Oct 2, 2009 at 7:40 PM, Jeremy Tregunna <jeremy.tregunna@... >> >> > >>> > wrote: >> > >>> >> > >>> What version of libevent are you using? >> > >>> >> > >>> >> > >>> On 2009-10-02, at 8:41 PM, Nick Fitzgerald wrote: >> > >>> >> > >>>> >> > >>>> >> > >>>> Thanks for all the help so far guys! I seem to be making some >> > >>>> slight progress (maybe). >> > >>>> >> > >>>> I ran these commands in this order: >> > >>>> >> > >>>> * sudo aptitude install libevent-dev >> > >>>> * sudo aptitude build-dep libevent-dev >> > >>>> * sudo make Socket >> > >>>> * sudo make install >> > >>>> >> > >>>> Opened up Io, and tried to access the Socket addon again: >> > >>>> >> > >>>> Io 20090105 >> > >>>> Io> Socket >> > >>>> >> > >>>> Exception: Error loading object '/usr/local/lib/io/addons/ >> > >>>> Socket/_build/dll/libIoSocket.so': '/usr/local/lib/io/addons/ >> > >>>> Socket/_build/dll/libIoSocket.so: undefined symbol: >> > >>>> IoEvRequest_proto' >> > >>>> --------- >> > >>>> open AddonLoader.io 65 >> > >>>> Object Socket Command Line 1 >> > >>>> >> > >>>> So, I'm getting a new error now. Again, the message doesn't mean >> > >>>> too much to me, and I'm stuck again. It seems perhaps I got a >> > >>>> little farther this time, but I could be wrong. >> > >>>> >> > >>>> Should I remove libevent completely and start again from source? >> > >>>> Or does this seem to be a problem that needs to be fixed in a >> > >>>> different spot you think? >> > >>>> >> > >>>> Thanks, >> > >>>> >> > >>>> _Nick_ >> > >>>> >> > >>>> >> > >>>> On Fri, Oct 2, 2009 at 1:47 PM, dennisf486 <dennisf486@...> >> > >>>> wrote: >> > >>>> >> > >>>> I had the same problem on Ubuntu 9.04. It is caused by a problem >> > >>>> with the event library. Unfortunately I don't remember what I did >> > >>>> to fix it but I think you are on the right track. For some reason >> > >>>> I'm thinking that libevent1 wasn't exactly the right one, but >> > >>>> when I list my installed packages I can't find any others that >> > >>>> have event in their name. I know I didn't have Socket working a >> > >>>> couple months ago and now I do have it working. It might be that >> > >>>> you need to find a -dev version or something, or it might depend >> > >>>> on an old, deprecated version of the event library. >> > >>>> >> > >>>> A trick is that works in a lot of these cases is if you can find >> > >>>> a dev package for a project that depends on the same libraries as >> > >>>> what you know you need, then you can use the command "apt-get >> > >>>> build-dep project-name" to install all the dependencies it needs, >> > >>>> and hopefully those will be the ones Io needs too. I think I used >> > >>>> something like "sudo apt-get build-dep tuxracer" to get the >> > >>>> dependencies I needed for Io's open-GL addon. >> > >>>> >> > >>>> >> > >>>> >> > >>>> --- In iolanguage@... <iolanguage%40yahoogroups.com>, >> "fitzgen@" <fitzgen@> >> > >>>> wrote: >> > >>>> > >> > >>>> > >> > >>>> > >> > >>>> > I just ran "sudo make Socket" again, then ran "sudo make >> > >>>> install" and I'm still getting that same message inside Io when I >> > >>>> try to access the Socket addon. >> > >>>> > >> > >>>> > I have libevent1 installed, is that equivalent? It seems ubuntu >> > >>>> has no "libevent" package, but many packages whose name contains >> > >>>> "libevent". >> > >>>> > >> > >>>> > Thanks again >> > >>>> > >> > >>>> > --- In iolanguage@... <iolanguage%40yahoogroups.com>, >> Rich Collins <richcollins@> >> > >>>> wrote: >> > >>>> > > >> > >>>> > > Looks good to me. Did you sudo make install afterward? Is >> > >>>> libevent >> > >>>> > > installed? >> > >>>> > > >> > >>>> > > >> > >>>> > > >> > >>>> > > On Oct 1, 2009, at 6:15 AM, Nick Fitzgerald <fitzgen@> wrote: >> > >>>> > > >> > >>>> > > > Hello everyone! >> > >>>> > > > >> > >>>> > > > I stumbled upon Io the other day and I very much like what >> > >>>> I see! I >> > >>>> > > > want to continue exploring the language and since most of my >> > >>>> > > > background is in web-related stuff with Python and some >> > >>>> JavaScript >> > >>>> > > > (aside: server side js is starting to look cool what with >> > >>>> commonjs >> > >>>> > > > and such. Too bad the implementation of prototypes is so >> > >>>> lame in js, >> > >>>> > > > one of the things that attracts me to Io is the good >> > >>>> implementation >> > >>>> > > > of protos). >> > >>>> > > > >> > >>>> > > > Anyyyyways, I figured I would introduce myself to this >> > >>>> foreign world >> > >>>> > > > of Io with something a little familiar: little web apps. >> > >>>> > > > >> > >>>> > > > Unfortunately, it seems the Socket addon did not compile >> > >>>> with the >> > >>>> > > > rest of Io: >> > >>>> > > > >> > >>>> > > > Io> Socket >> > >>>> > > > >> > >>>> > > > Exception: Failed to load Addon Socket - it appears that >> > >>>> the addon >> > >>>> > > > exists but was not compiled. You might try running 'make >> > >>>> Socket' in >> > >>>> > > > the Io source folder. >> > >>>> > > > --------- >> > >>>> > > > Object Socket Command Line 1 >> > >>>> > > > >> > >>>> > > > I tried running "sudo make Socket" inside the io dir, and >> > >>>> this is >> > >>>> > > > what is dumped to stdout: >> > >>>> > > > ./_build/binaries/io_static build.io -a Socket >> > >>>> > > > >> > >>>> > > > --- Socket >> > >>>> > > > ---------------------------------------------------------- >> > >>>> > > > >> > >>>> > > > build.io: Entering directory `addons/Socket' >> > >>>> > > > >> > >>>> > > > cp source/*.h _build/headers >> > >>>> > > > >> > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ >> > >>>> _build/ >> > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >> > >>>> include -I/usr/ >> > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ >> > >>>> usr/include/ >> > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEventManager.o >> > >>>> source/ >> > >>>> > > > IoEventManager.c >> > >>>> > > > >> > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ >> > >>>> _build/ >> > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >> > >>>> include -I/usr/ >> > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ >> > >>>> usr/include/ >> > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvRequest.o source/ >> > >>>> > > > IoEvRequest.c >> > >>>> > > > >> > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ >> > >>>> _build/ >> > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >> > >>>> include -I/usr/ >> > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ >> > >>>> usr/include/ >> > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvent.o source/ >> > >>>> IoEvent.c >> > >>>> > > > >> > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ >> > >>>> _build/ >> > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >> > >>>> include -I/usr/ >> > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ >> > >>>> usr/include/ >> > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoEvConnection.o >> > >>>> source/ >> > >>>> > > > IoEvConnection.c >> > >>>> > > > >> > >>>> > > > cc -Os -g -Wall -pipe -fno-strict-aliasing -DSANE_POPEN - >> > >>>> > > > DIOBINDINGS -I../../libs/basekit/_build/headers -I../../libs/ >> > >>>> > > > garbagecollector/_build/headers -I../../libs/coroutine/ >> > >>>> _build/ >> > >>>> > > > headers -I../../libs/iovm/_build/headers -I/usr/local/ >> > >>>> include -I/usr/ >> > >>>> > > > include -I/usr/include/freetype2 -I/usr/include/cairo -I/ >> > >>>> usr/include/ >> > >>>> > > > python2.6 -I. -fPIC -c -o _build/objs/IoSocketInit.o source/ >> > >>>> > > > IoSocketInit.c >> > >>>> > > > >> > >>>> > > > ar rcu _build/lib/libIoSocket.a _build/objs/*.o >> > >>>> > > > >> > >>>> > > > ranlib _build/lib/libIoSocket.a >> > >>>> > > > >> > >>>> > > > cc -shared -o _build/dll/libIoSocket.so _build/objs/*.o -L/ >> > >>>> usr/ >> > >>>> > > > local/lib -L/usr/lib -levent -L../../_build/dll -liovmall >> > >>>> > > > >> > >>>> > > > build.io: Leaving directory `addons/Socket' >> > >>>> > > > >> > >>>> > > > >> > >>>> > > > But I still can't use the Socket addon, and receive the >> > >>>> same message >> > >>>> > > > I originally had in Io. >> > >>>> > > > >> > >>>> > > > I have been spoiled in the past, and have been able to >> > >>>> install most >> > >>>> > > > everything I want through apt-get (I'm running Ubuntu 9.04 >> > >>>> by the >> > >>>> > > > way) and have never had to troubleshoot compiling source >> > >>>> files. I'm >> > >>>> > > > utterly lost. Can anyone help me? >> > >>>> > > > >> > >>>> > > > Thanks for being patient with me and thanks for helping. >> > >>>> > > > >> > >>>> > > > _Nick_ >> > >>>> > > > >> > >>>> > > >> > >>>> > >> > >>>> >> > >>>> >> > >>>> >> > >>>> >> > >>> >> > >>> Regards, >> > >>> >> > >>> Jeremy Tregunna >> > >>> jeremy.tregunna@... >> > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > >>> >> > >> >> > >> Regards, >> > >> >> > >> Jeremy Tregunna >> > >> jeremy.tregunna@... >> > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > > >> > > Regards, >> > > >> > > Jeremy Tregunna >> > > jeremy.tregunna@... >> > > >> > > >> > > >> > > >> > > >> > > >> > > >> > >> > Regards, >> > >> > Jeremy Tregunna >> > jeremy.tregunna@... >> > >> >> >> > > |
| Free embeddable forum powered by Nabble | Forum Help |