Opened 10 years ago

Closed 7 years ago

#830 closed defect (fixed)

wxgui loading error for GRASS7 on Ubuntu 9.10

Reported by: isaacullah Owned by: grass-dev@…
Priority: major Milestone: 7.0.0
Component: Default Version: svn-trunk
Keywords: libgdal Cc:
CPU: x86-64 Platform: Linux

Description

After successful compiling and installation of GRASS 7 on Ubuntu 9.10, the grass launcher GUI loads properly, but after selection of location and mapset, only the terminal is present, and no gui. Executing g.gui yields the following errors:

  GRASS 7.0.svn (Penaguila_highres):~/grass_7_source/grass_trunk > 
WARNING: Vector digitizer is not available (No module named grass7_wxvdigit).

Note that vector digitizer is currently not working under MS Windows (hopefully will be fixed soon). Please try more recent version of GRASS.
g.list: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory
g.list: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory
Traceback (most recent call last):
  File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line 1641, in <module>
    sys.exit(main())
  File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line 1634, in main
    app = GMApp(workspaceFile)
  File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line 1558, in __init__
    wx.App.__init__(self, False)
  File "/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7978, in __init__
    self._BootstrapApp()
  File "/usr/lib64/python2.6/dist-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7552, in _BootstrapApp
    return _core_.PyApp__BootstrapApp(*args, **kwargs)
  File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line 1577, in OnInit
    workspace = self.workspaceFile)
  File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line 186, in __init__
    self.NewDisplay(show=False)
  File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/wxgui.py", line 1171, in NewDisplay
    auimgr=self._auimgr, showMapDisplay=show)
  File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/gui_modules/wxgui_utils.py", line 108, in __init__
    Map=self.Map, auimgr=self.auimgr)
  File "/usr/local/grass7.0.svn-28_11_2009/etc/wxpython/gui_modules/mapdisp.py", line 280, in __init__
    self.MapWindow.ZoomHistory(self.Map.region['n'],
KeyError: 'n'

I am using Ubuntu 9.10, and have compiled GRASS 7 from latest SVN source code. Here are my compile options:

./configure --enable-64bit --with-lesstif --with-freetype=yes --with-freetype-includes=/usr/include/freetype2 --with-cxx --with-nls --with-gdal=/usr/bin/gdal-config --with-proj --with-proj-includes=/usr/include --with-proj-libs=/usr/lib --with-python=/usr/bin/python-config --with-wxwidgets=/usr/bin/wx-config --with-wxwidgets=/etc/alternatives/wx-config --with-tcltk-includes=/usr/include/tcl8.5/ --with-cario --enable-largefile --with-readline --with-blas-libs=/usr/lib/ --with-pthread

With compile output:

GRASS is now configured for:  x86_64-unknown-linux-gnu

  Source directory:            /home/iullah2/grass_7_source/grass_trunk
  Build directory:             /home/iullah2/grass_7_source/grass_trunk
  Installation directory:      ${prefix}/grass-7.0.svn
  Startup script in directory: ${exec_prefix}/bin
  C compiler:                  gcc -g -O2 
  C++ compiler:                c++ -g -O2
  Building shared libraries:   yes
  64bit support:               
  OpenGL platform:             X11

  MacOSX application:         no
  MacOSX architectures:       
  MacOSX SDK:                 

  NVIZ:                       yes

  BLAS support:               no
  C++ support:                yes
  Cairo support:              yes
  DWG support:                no
  FFMPEG support:             no
  FFTW support:               yes
  FreeType support:           yes
  GDAL support:               yes
  GEOS support:               no
  JPEG support:               yes
  LAPACK support:             no
  Large File support (LFS):   yes
  MySQL support:              no
  NLS support:                yes
  ODBC support:               no
  OGR support:                yes
  OpenGL support:             yes
  PNG support:                yes
  PostgreSQL support:         no
  Python support:             yes
  Readline support:           yes
  SQLite support:             no
  Tcl/Tk support:             yes
  wxWidgets support:          yes
  TIFF support:               yes
  X11 support:                yes
  Regex support:              yes
  POSIX thread support:       yes

There were no errors after make.

Change History (5)

comment:1 in reply to:  description Changed 10 years ago by martinl

Replying to isaacullah:

> g.list: error while loading shared libraries: libgdal.so.1: cannot open shared object file: No such file or directory

Apparently not related to the GUI, just broken reference to GDAL/OGR library.

comment:2 Changed 10 years ago by martinl

Component: wxGUIdefault

comment:3 Changed 10 years ago by isaacullah

Okay, I want to confirm that I do have a libgdal.so.1 installed in /usr/lib. It links to /usr/lib/libgdal1.5.0.so.1.12.4, which is the only GDAL header I have installed on my machine. GRASS should be able to find this header file as it is in the standard location.

comment:4 Changed 9 years ago by aghisla

Keywords: libgdal added; Ubuntu fails to load GUI removed

I can reproduce the error on Fedora 13 64bit.

  1. configure - make - no make install
  1. run ./bin.i686-pc-linux-gnu/grass70

No library error running the correct architecture executable.

Maybe make install chooses the wrong architecture?

comment:5 Changed 7 years ago by martinl

Resolution: fixed
Status: newclosed

No activity for 2 years. Probably already solved, closing, please re-open if needed.

Note: See TracTickets for help on using tickets.