It is currently Sun Apr 11, 2021 3:28 pm


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Can't start IOU with iouyap 0.95
PostPosted: Fri Jul 11, 2014 11:36 am 
Offline

Joined: Tue Jun 15, 2010 3:19 pm
Posts: 32
Hi Grossmj,

I'm trying to use the 0.95 version of iouyap so that I can do packet capturing but when ever I try to start the IOU instance I get
Code:
Server error [-3200] from 127.0.0.1:8000:IOU1: Could not start iouyap: [Errno 8] Exec format error

If I change to the other version I have of iouyap then the IOU instance works. I've also tried to run iouyap from the cli and that returns the Exec format error.
I'm using xubuntu 14.04 (32bit) and alpha8.

Another little bug I've noticed is that my folders are named "Projects" and "Images" (caps first letter). If I choose an IOU image in the preferences menu and hit save and apply the path changes to "images" (non caps first letter) and a new folder path is created from the images level e.g.
real path
/home/rochey/Images/IOU/<IOU-name.bin>
new folders created path
/home/rochey/images/IOU/<IOU-name.bin> <--------- In my linux filemanger this is shown as a shortcut and not the IOU image.
This goes the same for the projects folder I don't know when it happened but I've now got a "projects" folder as well as a "Projects" folder. Seems to be a few issues with caps in the path.

If you need anything from me just let me know.

Cheers,
Rochey




Top
 Profile  
 
 Post subject: Re: Can't start IOU with iouyap 0.95
PostPosted: Mon Jul 28, 2014 3:28 pm 
Offline

Joined: Tue Jun 15, 2010 3:19 pm
Posts: 32
I have had the chance to upgrade to GNS3 1.0-beta1 and I am still having issues using the iouyap 0.95. I even went as far as re-installing xubuntu 14.04 32bit and re-installing GNS3 (which then gave me websocket errors because of tornado version 4 - which I had to downgrade). As soon as I try to use the iouyap 0.95 I get the exec error as above.

Can anybody help? Has anyone managed to get GNS3 1.0-beta1 working on xubuntu 14.04 32bit?


Top
 Profile  
 
 Post subject: Re: Can't start IOU with iouyap 0.95
PostPosted: Tue Jul 29, 2014 3:00 pm 
Offline

Joined: Fri Mar 07, 2014 2:54 pm
Posts: 20
Hi,
Yes, I am running Kubuntu 14.04 32bit.
I have no issues running iouyap. But I have also compiled iouyap from source.
It sounds like the iouyap executable you have is a 64bit exec and not a 32bit exec.

Hope this helps.


Richard


Top
 Profile  
 
 Post subject: Re: Can't start IOU with iouyap 0.95
PostPosted: Wed Jul 30, 2014 10:19 am 
Offline

Joined: Tue Jun 15, 2010 3:19 pm
Posts: 32
Cheers for the reply rnewman.

I have been trying to get this working with the precompiled iouyap 0.95 from grossmj (the one he links to in the members area). I did try to compile my own but couldn't install iniparser.

Don't suppose you can give me some quick bullet points on how you compiled it on kubuntu please?
If you can that would be much appreciated.
Rochey


Top
 Profile  
 
 Post subject: Re: Can't start IOU with iouyap 0.95
PostPosted: Wed Jul 30, 2014 12:18 pm 
Offline

Joined: Fri Mar 07, 2014 2:54 pm
Posts: 20
Hi Rochey,
Sure. iniparser was a pain. I ended up downloading the sources (and pre-reqs) and compiling and installing. (copied libiniparser.so.0 to /usr/lib/libiniparser.so.0)
From there I also ended up copying the iniparser header to the iouyap directory and modifying the source to point to the local copies. (changed the <iniparser.h> to "iniparser.h")

Hope this helps. Let me know if you need anything else.
Richard


Top
 Profile  
 
 Post subject: Re: Can't start IOU with iouyap 0.95
PostPosted: Sat Aug 02, 2014 7:35 am 
Offline

Joined: Tue Jun 15, 2010 3:19 pm
Posts: 32
Hi again rnewman,

I'm still struggling with compiling iouyap, need your help again if possible.

I've compiled iniparser, moved the lib, moved the .h file into iouyap and modified the config.c and iouyap.c to use "iniparser.h". I've also installed bison and flex but when I try to compile I get an error "cannot find liniparser".
Code:
[email protected]:~/iouyap$ sudo make
gcc  -g -DDEBUG -Wall   -c -o iouyap.o iouyap.c
bison -y -d netmap_parse.y
mv -f y.tab.c netmap_parse.c
gcc  -g -DDEBUG -Wall   -c -o netmap_parse.o netmap_parse.c
flex  -t netmap_scan.l > netmap_scan.c
gcc  -g -DDEBUG -Wall   -c -o netmap_scan.o netmap_scan.c
gcc  -g -DDEBUG -Wall   -c -o netmap.o netmap.c
gcc  -g -DDEBUG -Wall   -c -o config.o config.c
gcc    iouyap.o netmap_parse.o netmap_scan.o netmap.o config.o  -liniparser -lpthread -o iouyap
/usr/bin/ld: cannot find -liniparser
collect2: error: ld returned 1 exit status
make: *** [iouyap] Error 1
rm netmap_scan.c netmap_parse.c
How did you overcome this? Is there something else I need to install?
I found a thread that said to iouyap you need the following to compile "gcc, flex, bison, libiniparser-devel, glibc-devel" but libiniparser.devel and glibc-devel are not available when I search for them.
I'm so close! Can you help again please?


Top
 Profile  
 
 Post subject: Re: Can't start IOU with iouyap 0.95
PostPosted: Mon Aug 04, 2014 1:23 pm 
Offline

Joined: Fri Mar 07, 2014 2:54 pm
Posts: 20
Hi Rochey,

Here is what I've found on building iouyap. It doesn't use the standard make. I ended up building a script which I use to recompile when updates get posted.

bison --yacc -dv netmap_parse.y
flex netmap_scan.l
gcc -Wall -g *.c -o iouyap -liniparser -lpthread -L/home/rnewman/src/iniparser


I hope this helps.
Let me know if you run into further issues and I'll see what I can do.

Cheers,
Richard


Top
 Profile  
 
 Post subject: Re: Can't start IOU with iouyap 0.95
PostPosted: Wed Aug 06, 2014 2:04 pm 
Offline

Joined: Tue Jun 15, 2010 3:19 pm
Posts: 32
Thanks rnewman, I've got it all working now - packet capture goodness.

I've actually got it all working now on xbuntu 14.04, linux mint 17 32bit and linux mint 17 64bit (my current favorite).
I also managed to find some compile instructions for mint and iouyap that I thought I would repost to maybe help someone in the future.
Code:
sudo apt-get install bison flex

git clone http://github.com/ndevilla/iniparser.git
cd iniparser
make
sudo cp libiniparser.* /usr/lib/
sudo cp src/iniparser.h /usr/local/include
sudo cp src/dictionary.h /usr/local/include

git clone https://github.com/GNS3/iouyap.git
cd iouyap
make
chmod +x iouyap
sudo cp iouyap /usr/local/bin/
These aren't specific to linux mint as they work on xubuntu as well.

Thanks again for your help rnewman.


Top
 Profile  
 
 Post subject: Re: Can't start IOU with iouyap 0.95
PostPosted: Wed Aug 06, 2014 3:35 pm 
Offline

Joined: Fri Mar 07, 2014 2:54 pm
Posts: 20
Hi Rochey,
Very glad to hear it is all working.

I am very happy with how the new version is progressing. I am still waiting for QEMU support so I can run the PIX and IDS/IPS code.

Let me know if I can assist further.

-Richard




Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group

phpBB SEO