It is currently Thu Oct 18, 2018 4:01 pm


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Installing GNS3 (0.8.2 BETA) on Mac OS X Snow Leopard 10.6.8
PostPosted: Sun Jan 08, 2012 10:33 am 
Offline

Joined: Sun Jan 08, 2012 9:22 am
Posts: 3
On Mac OS X (Darwin mac.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386 i386) I've try to install GNS3, following Method 2 (http://blog.gns3.net/2010/03/how-to-run ... -mac-os-x/) as MacPorts is less of a hassle to get the deps installed automatically.

From MacPorts, I've installed the packages:
Code:
python26                       @2.6.7          lang/python26
py26-sip                       @4.12.4         python/py-sip
py26-pyqt4                     @4.8.6          python/py-pyqt4
qt4-mac                        @4.7.4          aqua/qt4-mac

(on a side note, selecting python version is now done using "sudo port select python python26")

I stumble across some troubles.

The downloaded dmg containing GNS3.app won't start. I fails with exception(.log):
Code:
Traceback (most recent call last):
  File "/Applications/GNS3.app/Contents/Resources/__boot__.py", line 58, in <module>
  File "/Applications/GNS3.app/Contents/Resources/__boot__.py", line 55, in _run
  File "/Applications/GNS3.app/Contents/Resources/gns3.pyw", line 97, in <module>
  File "GNS3/Main.pyo", line 61, in <module>
  File "GNS3/Application.pyo", line 355, in run
  File "GNS3/Config/Objects.pyo", line 64, in __setattr__
AttributeError: value of `path' must be of type: <type 'unicode'>


Not anything obvious help in this message, so I continue to look inside.

I noticed that /Applications/GNS3.app/Contents/MacOS/python -> points at the Apple python installation.
so I changed it to point at /opt/local/bin/python (the MacPorts python select symlink).
Still, GNS3.app won't start.

So I download the source, trying to see if I can build it myself (following this Guide http://blog.gns3.net/2010/06/making-a-dmg-package/)
Instead of compiling everything from start, I go the MacPorts way again and install the extra deps from MacPorts:
Code:
py26-macholib                  @1.4.3          python/py-macholib
py26-py2app                    @0.6.4          python/py-py2app


And download the gns3-devel and extract it.
First problem I stumble upon then I build it, is that it can't find Qt deps:
Code:
...
*** creating application bundle: GNS3 ***
copying gns3.pyw -> /Users/pettai/Downloads/gns3-devel-eb91f842a5b1/dist/GNS3.app/Contents/Resources
creating /Users/pettai/Downloads/gns3-devel-eb91f842a5b1/dist/GNS3.app/Contents/Resources/lib
creating /Users/pettai/Downloads/gns3-devel-eb91f842a5b1/dist/GNS3.app/Contents/Resources/lib/python2.6
copying build/bdist.macosx-10.6-x86_64/python2.6-semi_standalone/app/site-packages.zip -> /Users/pettai/Downloads/gns3-devel-eb91f842a5b1/dist/GNS3.app/Contents/Resources/lib/python2.6
creating /Users/pettai/Downloads/gns3-devel-eb91f842a5b1/dist/GNS3.app/Contents/Resources/lib/python2.6/lib-dynload
creating /Users/pettai/Downloads/gns3-devel-eb91f842a5b1/dist/GNS3.app/Contents/Frameworks
creating /Users/pettai/Downloads/gns3-devel-eb91f842a5b1/dist/GNS3.app/Contents/Resources/lib/python2.6/lib-dynload/PyQt4
error: No such file or directory: /Developer/Applications/Qt/plugins/iconengines/libqsvgicon.dylib


That's fixed by creating a symlink:
Code:
ls -l /Developer/Applications/Qt/
total 8
lrwxr-xr-x  1 root  admin  28 Jan  8 01:11 plugins -> /opt/local/share/qt4/plugins


Next problem is that "setup.py" has hardcoded paths:
Code:
...
*** Removing Qt debug libs ***
*** Patching __boot__.py ***
cp: ../__boot__.py: No such file or directory
*** Installing qt.conf ***
cp: ../qt.conf: No such file or directory
*** Installing Dynamips ***
cp: ../dynamips-0.2.8-RC3-community-OSX.intel64.bin: No such file or directory
*** Making DMG ***
sh: /usr/bin/macdeployqt: No such file or directory


Remove /usr/bin from line 194:
Code:
    os.system("macdeployqt GNS3.app -dmg -no-plugins")


And I copy the missing files from the GNS3.app package:
Code:
/Applications/GNS3.app/Contents/Resources/__boot__.py
/Applications/GNS3.app/Contents/Resources/qt.conf
/Applications/GNS3.app/Contents/Resources/dynamips-0.2.8-RC3-community-OSX.intel64.bin


And finally, I get stuck in this error:
Code:
*** Making DMG ***
dyld: Library not loaded: /usr/lib/libsasl2.2.dylib
  Referenced from: /System/Library/PrivateFrameworks/PasswordServer.framework/Versions/A/PasswordServer
  Reason: Incompatible library version: PasswordServer requires version 3.0.0 or later, but libsasl2.2.dylib provides version 0.0.0


Something is strange here, because the library seems ok:
Code:
$ otool -L /usr/lib/libsasl2.2.dylib /usr/lib/libsasl2.2.dylib:
        /usr/lib/libsasl2.2.dylib (compatibility version 3.0.0, current version 3.15.0)
        /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, current version 0.9.8)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 123.0.0)


And I can't find any helpful hints to get me further.
I found this (http://xquartz.macosforge.org/trac/ticket/323), that suggest that LD_LIBRARY_PATH + DYLD_LIBRARY_PATHs are pointing away from Apple's shipped libs, but I haven't those env's defined.

Does anybody have any pointers how to get further?
Should I bug report any of my findings?




Top
 Profile  
 
 Post subject: Re: Installing GNS3 (0.8.2 BETA) on Mac OS X Snow Leopard 10
PostPosted: Mon Jan 09, 2012 3:51 am 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Quote:
Traceback (most recent call last):
File "/Applications/GNS3.app/Contents/Resources/__boot__.py", line 58, in <module>
File "/Applications/GNS3.app/Contents/Resources/__boot__.py", line 55, in _run
File "/Applications/GNS3.app/Contents/Resources/gns3.pyw", line 97, in <module>
File "GNS3/Main.pyo", line 61, in <module>
File "GNS3/Application.pyo", line 355, in run
File "GNS3/Config/Objects.pyo", line 64, in __setattr__
AttributeError: value of `path' must be of type: <type 'unicode'>


This is a mistake from us, here is a temporary fix to have GNS3.app work.

Add the following line in ~/.gns3/gns3.ini

[Dynamips]
hypervisor_path=/Applications/GNS3.app/Contents/Resources/dynamips-0.2.8-RC3-community-OSX.intel64.bin

This will be fixed in next BETA release.

_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
 Post subject: Re: Installing GNS3 (0.8.2 BETA) on Mac OS X Snow Leopard 10
PostPosted: Sat Jan 14, 2012 5:45 pm 
Offline

Joined: Sat Jan 14, 2012 5:35 pm
Posts: 1
grossmj wrote:
Quote:
Traceback (most recent call last):
File "/Applications/GNS3.app/Contents/Resources/__boot__.py", line 58, in <module>
File "/Applications/GNS3.app/Contents/Resources/__boot__.py", line 55, in _run
File "/Applications/GNS3.app/Contents/Resources/gns3.pyw", line 97, in <module>
File "GNS3/Main.pyo", line 61, in <module>
File "GNS3/Application.pyo", line 355, in run
File "GNS3/Config/Objects.pyo", line 64, in __setattr__
AttributeError: value of `path' must be of type: <type 'unicode'>


This is a mistake from us, here is a temporary fix to have GNS3.app work.

Add the following line in ~/.gns3/gns3.ini

[Dynamips]
hypervisor_path=/Applications/GNS3.app/Contents/Resources/dynamips-0.2.8-RC3-community-OSX.intel64.bin

This will be fixed in next BETA release.


I'm having the same problem but I am not seeing a gns3.ini file anywhere. I haven't tried installing from source though. Running Lion 10.7.2

Code:
1/14/12 12:51:43.264 PM GNS3: GNS3 Error
1/14/12 12:51:44.460 PM [0x0-0x6e06e].net.gns3: WARNING: vboxapi module cannot be loaded ! You can proceed, but VirtualBox functionality will not be locally available.
1/14/12 12:51:44.460 PM [0x0-0x6e06e].net.gns3: ---------Traceback lines (saved in exception.log)----------
1/14/12 12:51:44.460 PM [0x0-0x6e06e].net.gns3: Traceback (most recent call last):
1/14/12 12:51:44.460 PM [0x0-0x6e06e].net.gns3:   File "/Applications/GNS3.app/Contents/Resources/__boot__.py", line 58, in <module>
1/14/12 12:51:44.460 PM [0x0-0x6e06e].net.gns3:   File "/Applications/GNS3.app/Contents/Resources/__boot__.py", line 55, in _run
1/14/12 12:51:44.460 PM [0x0-0x6e06e].net.gns3:   File "/Applications/GNS3.app/Contents/Resources/gns3.pyw", line 97, in <module>
1/14/12 12:51:44.460 PM [0x0-0x6e06e].net.gns3:   File "GNS3/Main.pyo", line 61, in <module>
1/14/12 12:51:44.460 PM [0x0-0x6e06e].net.gns3:   File "GNS3/Application.pyo", line 355, in run
1/14/12 12:51:44.460 PM [0x0-0x6e06e].net.gns3:   File "GNS3/Config/Objects.pyo", line 64, in __setattr__
1/14/12 12:51:44.460 PM [0x0-0x6e06e].net.gns3: AttributeError: value of `path' must be of type: <type 'unicode'>
1/14/12 12:51:44.460 PM [0x0-0x6e06e].net.gns3: -----------------------------------------------------------


**Update**
I installed gns3.app v0.7.4 and ran it successfully. I then saw the hidden gns3 folder under ~ which was never created when i installed gns3.app v0.8.2 beta. Then, i applied the path modification to the gns3.ini file. Successfully running gns3.app v0.8.2 beta. osx lion 10.7.2


Last edited by prow on Sat Jan 14, 2012 6:50 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Installing GNS3 (0.8.2 BETA) on Mac OS X Snow Leopard 10
PostPosted: Sat Jan 14, 2012 6:13 pm 
Offline
Site Admin

Joined: Sat Oct 11, 2008 1:41 pm
Posts: 2668
Location: Canada
Hi,

Quote:
/.gns3/gns3.ini


Please, create the folder + file and add the following lines:

Quote:
[Dynamips]
hypervisor_path=/Applications/GNS3.app/Contents/Resources/dynamips-0.2.8-RC3-community-OSX.intel64.bin


This should work. You can also wait a couple of day GNS3 0.8.2 BETA 2 which fix the issue.



_________________
Jeremy, GNS3 Programmer & Benevolent Dictator for Life.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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