[GRASS-dev] OSX 10.11 Compiling

Carlos Grohmann carlos.grohmann at gmail.com
Wed Aug 5 07:05:43 PDT 2015


Continuing..

Adding

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

to my .bash_profile fixed the initial problem.

Then it can't find wxpython, even though it installed it:

Serenity:~ guano$ brew install wxpython
Warning: wxpython-3.0.2.0 already installed

So, I had to add some stuff to my PYTHONPATH. The usual advised of
including
/usr/local/lib/python2.7/site-packages
didn't worked, I had to include
/usr/local/lib/python2.7/site-packages/wx-3.0-osx_cocoa as well, since the
wx.pth file is not read by python (see
https://github.com/Homebrew/homebrew/issues/30844)


So I add:

export PYTHONPATH=`brew --prefix`/lib/python2.7/site-packages:`brew
--prefix`/lib/python2.7/site-packages/wx-3.0-osx_cocoa
:$PYTHONPATH


And now it works!

(except for liblas. still need to figure out why it couldn't find it at)

best

Carlos








On Wed, Aug 5, 2015 at 9:31 AM, Carlos Grohmann <carlos.grohmann at gmail.com>
wrote:

> Hi
>
> I never installed OS X on a virtual machine, can't help much there.. (I'm
> using yosemite as primary machine and El Capitan on a secondary one)
>
>
> While we are here, I tried the homebrew tap for 7.1svn on a Yosemite
> machine and it didn't worked.
> First I tried to install with libLas, add although it installed libels
> correctly, it can't find the library when running GRASS'configure
>
> :==> ./configure --prefix=/usr/local/Cellar/grass-71/HEAD --enable-shared
> --with-
> checking for gdal-config... /usr/local/opt/gdal/bin/gdal-config
> rm: conftest.dSYM: is a directory
> checking whether to use libLAS... yes
> checking for liblas-config... /usr/local/opt/liblas/bin/liblas-config
> configure: error: *** Unable to locate libLAS library.
>
>
> Then I tried with libels and it went OK, but when I run:
>
>
> Serenity:~ guano$ /usr/local/bin/grass71
> Traceback (most recent call last):
>   File "/usr/local/bin/grass71", line 54, in <module>
>     ENCODING = locale.getdefaultlocale()[1]
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py",
> line 511, in getdefaultlocale
>     return _parse_localename(localename)
>   File
> "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.py",
> line 443, in _parse_localename
>     raise ValueError, 'unknown locale: %s' % localename
> ValueError: unknown locale: UTF-8
> Serenity:~ guano$
>
>
>
> any ideas?
>
>
> thanks
>
> Carlos
>
>
>
>
>
>
>
>
>
>
> On Tue, Aug 4, 2015 at 10:52 AM, Rainer M Krug <Rainer at krugs.de> wrote:
>
>> Carlos Grohmann <carlos.grohmann at gmail.com> writes:
>>
>> > Hello Rainer (and devs)
>> >
>> > I think you only need to join the beta program (although I have the free
>> > developer account, just to be able to download xcode-related tools like
>> the
>> > comand line tools).
>>
>> Thanks - I registered for the beta program an I am downloading El
>> Capitan at the moment.
>>
>> Can you give any pointers how I can install it in Virtual Box as I do
>> not want to interfere with my production machine and do prefer the
>> flexibility of a virtual machine.
>>
>> I'll take a look at the errors when I have it installed - which might be
>> in two weeks time as I will be on holiday next week.
>>
>> Thanks,
>>
>> Rainer
>>
>>
>> >
>> > I'll summarise what I know so far about these issues:
>> >
>> >
>> > - When compiling, I get a lot of errors. These are related to creating
>> html
>> > docs. As Glynn said, at this pint of compilation, the module is run
>> > with  --html-description
>> > switch to get a list of its options. Any problems with wxpython will
>> cause
>> > an error here.
>> >
>> > - Running make in the module directory show a call to
>> > libgrass_gis.7.0.1svn.dylib,
>> > but with the wrong path. It tries to load the library from the final
>> > package path (after installation), which doesn't exists yet..
>> >
>> > see the last lines of this output:
>> >
>> > cd scripts/d.correlate/
>> > GuanoAFBIOTA:d.correlate guano$ make
>> > if [
>> >
>> "/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/scripts/d.correlate"
>> > != "" ] ; then
>> >
>> GISRC=/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/demolocation/.grassrc70
>> >
>> GISBASE=/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0
>> >
>> PATH="/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/bin:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/bin:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/scripts:$PATH"
>> >
>> PYTHONPATH="/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/etc/python:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/gui/wxpython:$PYTHONPATH"
>> >
>> DYLD_LIBRARY_PATH="/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/bin:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/scripts:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/lib:/Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/lib:"
>> > LC_ALL=C
>> >
>> /Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/scripts/d.correlate
>> > --html-description < /dev/null | grep -v '</body>\|</html>' >
>> > d.correlate.tmp.html ; fi
>> > dyld: Library not loaded:
>> >
>> /Applications/GRASS-7.0.app/Contents/MacOS/lib/libgrass_gis.7.0.1svn.dylib
>> >   Referenced from:
>> >
>> /Users/guano/Documents/installs/grass70_release/dist.x86_64-apple-darwin15.0.0/bin/g.parser
>> >   Reason: image not found
>> > make: *** [d.correlate.tmp.html] Error 1
>> > rm d.correlate.tmp.html
>> >
>> >
>> > - Ignoring the error and creating the package will work, and the package
>> > will install, although when run, the GUI will fail:
>> >
>> >>>> from grass.pygrass import messages
>> > Traceback (most recent call last):
>> >   File "<stdin>", line 1, in <module>
>> >   File
>> >
>> "/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/pygrass/messages/__init__.py",
>> > line 19, in <module>
>> >     import grass.lib.gis as libgis
>> >   File
>> >
>> "/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/lib/gis.py",
>> > line 23, in <module>
>> >     _libs["grass_gis.7.0.1RC2"] = load_library("grass_gis.7.0.1RC2")
>> >   File
>> >
>> "/Applications/GRASS-7.0.app/Contents/MacOS/etc/python/grass/lib/ctypes_loader.py",
>> > line 57, in load_library
>> >     raise ImportError,"%s not found." % libname
>> > ImportError: grass_gis.7.0.1RC2 not found.
>> >
>> >
>> > cheers
>> >
>> > Carlos
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> >
>> > On Sun, Aug 2, 2015 at 7:51 AM, Rainer M Krug <r.m.krug at gmail.com>
>> wrote:
>> >
>> >>
>> >>
>> >> Envoyé de mon iPhone
>> >>
>> >> Le 31 juil. 2015 à 23:07, Carlos Grohmann <carlos.grohmann at gmail.com>
>> a
>> >> écrit :
>> >>
>> >> Hi
>> >>
>> >> The homebrew formula doesn't really work on OSX 10.11 beta. In the log
>> >> file (attached) I can see the same errors in compilation I got when
>> tried
>> >> to compile svn. They are related to html manual pages, but prevent
>> >> installation from continue.
>> >>
>> >>
>> >> As I do not have 10.11 beta I can't check it. But please let me (and
>> >> osgeo4mac) know when you found a solution as I think it will also
>> affect
>> >> 6.4x and 7.0x versions.
>> >>
>> >> Do I have to have a developer account with apple to have access to the
>> >> beta?
>> >>
>> >> Cheers
>> >>
>> >> Rainer
>> >>
>> >>
>> >> Carlos
>> >>
>> >>
>> >>
>> >> brew tap rkrug/head-only
>> >> ==> Tapping rkrug/head-only
>> >> Cloning into '/usr/local/Library/Taps/rkrug/homebrew-head-only'...
>> >> remote: Counting objects: 4, done.
>> >> remote: Compressing objects: 100% (4/4), done.
>> >> remote: Total 4 (delta 0), reused 4 (delta 0), pack-reused 0
>> >> Unpacking objects: 100% (4/4), done.
>> >> Checking connectivity... done.
>> >> Tapped 1 formula (27 files, 116K)
>> >>
>> >>
>> >> brew install grass-71
>> >> Error: rkrug/head-only/grass-71 is a head-only formula
>> >> Install with `brew install --HEAD rkrug/head-only/grass-71`
>> >>
>> >>
>> >> brew install --HEAD rkrug/head-only/grass-71
>> >> Warning: You are using OS X 10.11.
>> >> We do not provide support for this pre-release version.
>> >> You may encounter build failures or other breakage.
>> >> ==> Installing grass-71 from rkrug/homebrew-head-only
>> >> Error: No available formula for nc_spm_08_grass7 (dependency of
>> >> rkrug/head-only/grass-71)
>> >>
>> >>
>> >> guano$ brew install --HEAD rkrug/head-only/grass-71
>> >> --without-nc_spm_08_grass7
>> >> Warning: You are using OS X 10.11.
>> >> We do not provide support for this pre-release version.
>> >> You may encounter build failures or other breakage.
>> >> ==> Installing grass-71 from rkrug/homebrew-head-only
>> >> ==> Cloning https://svn.osgeo.org/grass/grass/trunk
>> >> Updating /Library/Caches/Homebrew/grass-71--svn-HEAD
>> >> ==> Patching
>> >> patching file include/Make/Install.make
>> >> Hunk #1 succeeded at 116 (offset 2 lines).
>> >> ==> ./configure --prefix=/usr/local/Cellar/grass-71/HEAD
>> --enable-shared
>> >> --with-
>> >> ==> make GDAL_DYNAMIC=
>> >> appear in the error log. If you get an error building a library, you
>> will
>> >> also get errors from anything which uses the library.
>> >> --
>> >> Finished compilation: Fri Jul 31 17:36:12 BRT 2015
>> >> make: *** [default] Error 1
>> >>
>> >> READ THIS: https://git.io/brew-troubleshooting
>> >> If reporting this issue please do so at (not Homebrew/homebrew):
>> >>   https://github.com/rkrug/homebrew-head-only/issues
>> >>
>> >> Warning: You are using OS X 10.11.
>> >> We do not provide support for this pre-release version.
>> >> You may encounter build failures or other breakage.
>> >> GuanoAFBIOTA:~ guano$
>> >>
>> >>
>> >>
>> >>
>> >> On Fri, Jul 31, 2015 at 11:54 AM, Carlos Grohmann <
>> >> carlos.grohmann at gmail.com> wrote:
>> >>
>> >>> Very interesting!
>> >>>
>> >>> From the brew recipe, it looks that one needs all dependencies
>> installed
>> >>> via homebrew, is that right? I'm thinking that most will have
>> Kyngsburie's
>> >>> Frameworks already installed (at least GDAL). Same goes for wx-python.
>> >>>
>> >>> best
>> >>>
>> >>> Carlos
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> On Fri, Jul 31, 2015 at 5:44 AM, Rainer M Krug <Rainer at krugs.de>
>> wrote:
>> >>>
>> >>>> Anna Petrášová <kratochanna at gmail.com> writes:
>> >>>>
>> >>>> > On Thu, Jul 30, 2015 at 6:38 AM, Rainer M Krug <Rainer at krugs.de>
>> >>>> wrote:
>> >>>> >
>> >>>> >> Hi
>> >>>> >>
>> >>>> >> I just added a section / new page in the WIKI for installation of
>> >>>> GRASS
>> >>>> >> using homebrew. Please see
>> >>>> >>
>> >>>> >> http://grasswiki.osgeo.org/wiki/Compile_and_Install#Mac_OSX
>> >>>> >>
>> >>>> >> and
>> >>>> >>
>> >>>> >>
>> http://grasswiki.osgeo.org/wiki/Compiling_on_MacOSX_using_homebrew
>> >>>> >>
>> >>>> >> It would be great if some Mac / homebrew users would see if it
>> works
>> >>>> and
>> >>>> >> give me comments here.
>> >>>> >>
>> >>>> >
>> >>>> > I will try to test it next week. Thank you for your efforts!
>> >>>>
>> >>>> Great - let me know how it goes, although I don't know if I will be
>> able
>> >>>> to reply as I am away and possibly only have very limited internet
>> >>>> access.
>> >>>>
>> >>>>
>> >>>> Thanks,
>> >>>>
>> >>>> Rainer
>> >>>>
>> >>>> >
>> >>>> > Anna
>> >>>> >
>> >>>> >
>> >>>> >>
>> >>>> >> Cheers,
>> >>>> >>
>> >>>> >> Rainer
>> >>>> >>
>> >>>> >> --
>> >>>> >> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
>> >>>> >> Biology, UCT), Dipl. Phys. (Germany)
>> >>>> >>
>> >>>> >> Centre of Excellence for Invasion Biology
>> >>>> >> Stellenbosch University
>> >>>> >> South Africa
>> >>>> >>
>> >>>> >> Tel :       +33 - (0)9 53 10 27 44
>> >>>> >> Cell:       +33 - (0)6 85 62 59 98
>> >>>> >> Fax :       +33 - (0)9 58 10 27 44
>> >>>> >>
>> >>>> >> Fax (D):    +49 - (0)3 21 21 25 22 44
>> >>>> >>
>> >>>> >> email:      Rainer at krugs.de
>> >>>> >>
>> >>>> >> Skype:      RMkrug
>> >>>> >>
>> >>>> >> PGP: 0x0F52F982
>> >>>> >>
>> >>>> >> _______________________________________________
>> >>>> >> grass-dev mailing list
>> >>>> >> grass-dev at lists.osgeo.org
>> >>>> >> http://lists.osgeo.org/mailman/listinfo/grass-dev
>> >>>> >>
>> >>>>
>> >>>> --
>> >>>> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
>> >>>> Biology, UCT), Dipl. Phys. (Germany)
>> >>>>
>> >>>> Centre of Excellence for Invasion Biology
>> >>>> Stellenbosch University
>> >>>> South Africa
>> >>>>
>> >>>> Tel :       +33 - (0)9 53 10 27 44
>> >>>> Cell:       +33 - (0)6 85 62 59 98
>> >>>> Fax :       +33 - (0)9 58 10 27 44
>> >>>>
>> >>>> Fax (D):    +49 - (0)3 21 21 25 22 44
>> >>>>
>> >>>> email:      Rainer at krugs.de
>> >>>>
>> >>>> Skype:      RMkrug
>> >>>>
>> >>>> PGP: 0x0F52F982
>> >>>>
>> >>>> _______________________________________________
>> >>>> grass-dev mailing list
>> >>>> grass-dev at lists.osgeo.org
>> >>>> http://lists.osgeo.org/mailman/listinfo/grass-dev
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> Prof. Carlos Henrique Grohmann
>> >>> Institute of Energy and Environment - Univ. of São Paulo, Brazil
>> >>> - Digital Terrain Analysis | GIS | Remote Sensing -
>> >>>
>> >>> http://carlosgrohmann.com
>> >>> http://orcid.org/0000-0001-5073-5572
>> >>> ________________
>> >>> Can’t stop the signal.
>> >>>
>> >>
>> >>
>> >>
>> >> --
>> >> Prof. Carlos Henrique Grohmann
>> >> Institute of Energy and Environment - Univ. of São Paulo, Brazil
>> >> - Digital Terrain Analysis | GIS | Remote Sensing -
>> >>
>> >> http://carlosgrohmann.com
>> >> http://orcid.org/0000-0001-5073-5572
>> >> ________________
>> >> Can’t stop the signal.
>> >>
>> >> <02.make>
>> >>
>> >>
>>
>> --
>> Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation
>> Biology, UCT), Dipl. Phys. (Germany)
>>
>> Centre of Excellence for Invasion Biology
>> Stellenbosch University
>> South Africa
>>
>> Tel :       +33 - (0)9 53 10 27 44
>> Cell:       +33 - (0)6 85 62 59 98
>> Fax :       +33 - (0)9 58 10 27 44
>>
>> Fax (D):    +49 - (0)3 21 21 25 22 44
>>
>> email:      Rainer at krugs.de
>>
>> Skype:      RMkrug
>>
>> PGP: 0x0F52F982
>>
>
>
>
> --
> Prof. Carlos Henrique Grohmann
> Institute of Energy and Environment - Univ. of São Paulo, Brazil
> - Digital Terrain Analysis | GIS | Remote Sensing -
>
> http://carlosgrohmann.com
> http://orcid.org/0000-0001-5073-5572
> ________________
> Can’t stop the signal.
>



-- 
Prof. Carlos Henrique Grohmann
Institute of Energy and Environment - Univ. of São Paulo, Brazil
- Digital Terrain Analysis | GIS | Remote Sensing -

http://carlosgrohmann.com
http://orcid.org/0000-0001-5073-5572
________________
Can’t stop the signal.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20150805/9ab118f0/attachment-0001.html>


More information about the grass-dev mailing list