[Haskell-beginners] wxHaskell path
henry.lockyer at ntlworld.com
Thu Jun 7 02:17:23 CEST 2012
As you say, the pre-loaded mac os version is older than 2.9 (mine is 2.8).
I was not very clear - it was not really 'removing' the old one that I meant to ask about, but how did you
perform the instruction (at http://www.haskell.org/haskellwiki/WxHaskell/MacOS_X which says:
"3. Check your path to make sure you are using your wxWidgets and not the default Mac one"
I have installed and built wxWidgets 2.9 but not made any changes to path variables (whichever may be involved).
If I type command "wx-config --release" it tells me the widgets version is 2.8.
If I type command "wx-config --prefix it tells me it is in "/usr"
If I type command "wx-config --static it says there is no config to match this.
So I conclude (if I interpret it right...) that I have a dll version of widgets 2.8 in my path at /usr
Does homebrew take care of this somehow when it loads 2.9?
I am not sure if anything else is using this 2.8 dll, and/or how to best set the path up so I can use 2.9
Sounds like I should definitely take a look at homebrew, so thanks for the recommendation.
I'd also be interested to know what you get in response to wx-config (with parameters as above) if you have not
made any manual changes to path variables etc. yourself.
I also just saw this posted by Gregory Guthrie in another wxHaskell thread ("wxHaskell install errors"):
"If the libraries are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are."
This makes me think that the 'instruction 3' in the wxHaskell macosx instructions I quoted above is perhaps not
necessary, or at least there is an alternative when it comes to the cabal step. This may solve one of my
problems/questions at least, but needs more investigation.
On 6 Jun 2012, at 22:18, Miguel Negrao wrote:
> Hi Henry,
> A 06/06/2012, às 12:31, Henry Lockyer escreveu:
>> Thanks a lot Miguel. I recently discovered your posts about 'reactive banana' and wxHaskell and started looking through them.
>> Unfortunately I am a c/c++ compilation/make/etc. and general unix newbie, or oldbie in my case, (amongst many other areas of deep ignorance ;-)
>> so I am finding some of the information/instructions a little hard to follow.
> Well, that’s exactly why I use homebrew and you should too . :-) It’s designed to make installing stuff easier, it will also download and install for you any dependencies of what you are trying to install. It’s quite easy to install homebrew just type in the terminal:
> /usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)”
> Don’t use sudo. If you can’t install to /usr/local then make sure you own that directory, since homebrew wants to make sure you don’t need to sudo to install stuff.
>> How did you establish that your wxWidgets was installed and working as expected,
> Well, when I had wxHaskell working I compiled a wxHaskell program and it worked but I didn’t test wxWidgets independently.
>> and can I ask how you removed the pre-loaded mac os version of widgets (if you had this) ?
> No need for that, the pre-installed ones are older versions.
> Beginners mailing list
> Beginners at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Beginners