Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Use mysql-simple (OS X and dymanic library trouble)
(Brandon Allbery)
2. Re: Use mysql-simple (OS X and dymanic library trouble)
(Christian Sperandio)
3. Re: Use mysql-simple (OS X and dymanic library trouble)
(Brandon Allbery)
4. Installation problems (Jeffrey Brown)
----------------------------------------------------------------------
Message: 1
Date: Sat, 25 Oct 2014 11:20:51 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Use mysql-simple (OS X and dymanic
library trouble)
Message-ID:
<cakfcl4v5grjkyu9jexe2grdnayz_k2wrf4wi51s85-pn+gw...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Sat, Oct 25, 2014 at 11:16 AM, Christian Sperandio <
[email protected]> wrote:
> Meanwhile, I have to do the ugly export DYLD_LIBRARY_PATH :/
>
Actually, don't --- that actually stands a good chance of breaking things
in bizarre ways. Use DYLD_FALLBACK_LIBRARY_PATH instead, it's less likely
to cause weird breakage.
The other problem is that Eclipse is generally launched from the GUI, and
getting DYLD_FALLBACK_LIBRARY_PATH visible to the GUI is painful: you need
to create ~/.launchd.conf and add something like
setenv DYLD_FALLBACK_LIBRARY_PATH /usr/local/
mysql-5.6.11-osx10.7-x86_64/lib
to it, then log out and back in so that the GUI is started with it. (This
does stand a certain chance of making things go haywire, because you're
really not supposed to set that --- but in this case I think you're stuck.)
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20141025/700b1412/attachment-0001.html>
------------------------------
Message: 2
Date: Sat, 25 Oct 2014 17:22:29 +0200
From: Christian Sperandio <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Use mysql-simple (OS X and dymanic
library trouble)
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
Thanks for the trick :)
The solution is perhaps to try another mysql library :/
Le 25 oct. 2014 ? 17:20, Brandon Allbery <[email protected]> a ?crit :
> On Sat, Oct 25, 2014 at 11:16 AM, Christian Sperandio
> <[email protected]> wrote:
> Meanwhile, I have to do the ugly export DYLD_LIBRARY_PATH :/
>
> Actually, don't --- that actually stands a good chance of breaking things in
> bizarre ways. Use DYLD_FALLBACK_LIBRARY_PATH instead, it's less likely to
> cause weird breakage.
>
> The other problem is that Eclipse is generally launched from the GUI, and
> getting DYLD_FALLBACK_LIBRARY_PATH visible to the GUI is painful: you need
> to create ~/.launchd.conf and add something like
>
> setenv DYLD_FALLBACK_LIBRARY_PATH
> /usr/local/mysql-5.6.11-osx10.7-x86_64/lib
>
> to it, then log out and back in so that the GUI is started with it. (This
> does stand a certain chance of making things go haywire, because you're
> really not supposed to set that --- but in this case I think you're stuck.)
>
> --
> brandon s allbery kf8nh sine nomine associates
> [email protected] [email protected]
> unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20141025/1560daeb/attachment-0001.html>
------------------------------
Message: 3
Date: Sat, 25 Oct 2014 11:30:11 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Use mysql-simple (OS X and dymanic
library trouble)
Message-ID:
<CAKFCL4VCqq8c7e+9yrCUfPuQ7xhEyD+y3g1Y+sQ=jhuuu0e...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
On Sat, Oct 25, 2014 at 11:22 AM, Christian Sperandio <
[email protected]> wrote:
> Thanks for the trick :)
>
> The solution is perhaps to try another mysql library :/
>
It's the nonstandard location that is the problem, really. The
--extra-lib-dirs thing should have caused the special location to be used,
but it relies on whoever wrote the bindings paying attention to
extra-lib-dirs.
On Linux, you have /etc/ld.so.conf as a list of directories to search for
shared objects and LD_LIBRARY_PATH to add extra directories to it. On OS X,
shared library paths are normally compiled into the things that use them
and DYLD_LIBRARY_PATH overrides this completely (which means setting it can
cause all programs to fail to find any shared libraries, oops!).
DYLD_FALLBACK_LIBRARY_PATH is tried if it can't find the shared library at
its normal location, which is risky but safer than DYLD_LIBRARY_PATH.
If that shared object /Users/batman/Library/Haskell/
ghc-7.8.3-x86_64/lib/mysql-0.1.1.7/libHSmysql-0.1.1.7-ghc7.8.3.dylib was
built with the right option (-headerpad_max_install_names, IIRC) then you
may be able to use install_name_tool to fix the shared object path in it.
You'll need to use otool -L to check what name is there and then
install_name_tool to replace it.
Alternately you can check with otool -L what pathname was stored in the
mysql shared library itself and maybe fix that with install_name_tool.
--
brandon s allbery kf8nh sine nomine associates
[email protected] [email protected]
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20141025/0f59b52e/attachment-0001.html>
------------------------------
Message: 4
Date: Sat, 25 Oct 2014 11:04:14 -0700
From: Jeffrey Brown <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] Installation problems
Message-ID:
<caec4ma1lhjxs-hqurmc_tvnkjgrrhh3upc-vbhjcpowg4r0...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi,
In trying to install Tidal, following something that worked for someone
else who was getting an error similar to one I got, I ran ghc-clang-wrapper
<https://gist.github.com/mzero/7245290#file-ghc-clang-wrapper>. I believe
it was after that that cabal install stopped working, and I lost a lot of
libraries that used to exist, such as Sound.MIDI:
GHCi, version 7.8.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> import Sound.MIDI
<no location info>:
Could not find module ?Sound.MIDI?
It is not a module in the current program, or in any known package.
Prelude>
When I try to reinstall a library that used to exist -- e.g. "hosc", below
-- via cabal install, I now get a giant slew of failures.
Any ideas?
Many thanks,
Jeff
sh-3.2# cabal install hosc
Resolving dependencies...
In order, the following will be installed:
binary-0.7.2.2 (new version)
data-binary-ieee754-0.4.4 (reinstall) changes: base-4.7.0.1 added,
binary-0.7.2.2 added
network-2.6.0.2 (new package)
text-1.2.0.0 (new package)
blaze-builder-0.3.3.4 (reinstall) changes: base-4.7.0.1 added,
bytestring-0.10.4.0 added, text-1.2.0.0 added
hosc-0.15 (new version)
Warning: Note that reinstalls are always dangerous. Continuing anyway...
Downloading binary-0.7.2.2...
Configuring network-2.6.0.2...
Configuring text-1.2.0.0...
Failed to install network-2.6.0.2
Build log ( /var/root/.cabal/logs/network-2.6.0.2.log ):
Failed to install text-1.2.0.0
Build log ( /var/root/.cabal/logs/text-1.2.0.0.log ):
Configuring binary-0.7.2.2...
Failed to install binary-0.7.2.2
Build log ( /var/root/.cabal/logs/binary-0.7.2.2.log ):
cabal: Error: some packages failed to install:
binary-0.7.2.2 failed during the configure step. The exception was:
user error (<command line>: cannot satisfy -package-id
Cabal-1.20.0.2-b862897337f86101d0e1a35135984eff:
Cabal-1.20.0.2-b862897337f86101d0e1a35135984eff is unusable due to
missing or
recursive dependencies:
base-4.7.0.1-df210ede1eb79477fef5662549c32927
bytestring-0.10.4.0-4aa78c8ca7b6b65993eefc131f7d94fa
containers-0.5.5.1-0d8db9193d3e3371e0142bcc8a4a0721
deepseq-1.3.0.2-8f63133c1b77f3b3190f04893cf340e4
directory-1.2.1.0-af5afa2b9b551d3fec1a32d6bfd8bd72
process-1.2.0.0-3a472e9c66165e506513ea8f145681a0
time-1.4.2-d6766dce59812a4b19375d9595549a8b
unix-2.7.0.1-8adde3f1f2079286da56b30898c2d703
(use -v for more information)
)
blaze-builder-0.3.3.4 depends on text-1.2.0.0 which failed to install.
data-binary-ieee754-0.4.4 depends on binary-0.7.2.2 which failed to
install.
hosc-0.15 depends on binary-0.7.2.2 which failed to install.
network-2.6.0.2 failed during the configure step. The exception was:
user error (<command line>: cannot satisfy -package-id
Cabal-1.20.0.2-b862897337f86101d0e1a35135984eff:
Cabal-1.20.0.2-b862897337f86101d0e1a35135984eff is unusable due to
missing or
recursive dependencies:
base-4.7.0.1-df210ede1eb79477fef5662549c32927
bytestring-0.10.4.0-4aa78c8ca7b6b65993eefc131f7d94fa
containers-0.5.5.1-0d8db9193d3e3371e0142bcc8a4a0721
deepseq-1.3.0.2-8f63133c1b77f3b3190f04893cf340e4
directory-1.2.1.0-af5afa2b9b551d3fec1a32d6bfd8bd72
process-1.2.0.0-3a472e9c66165e506513ea8f145681a0
time-1.4.2-d6766dce59812a4b19375d9595549a8b
unix-2.7.0.1-8adde3f1f2079286da56b30898c2d703
(use -v for more information)
)
text-1.2.0.0 failed during the configure step. The exception was:
user error (<command line>: cannot satisfy -package-id
Cabal-1.20.0.2-b862897337f86101d0e1a35135984eff:
Cabal-1.20.0.2-b862897337f86101d0e1a35135984eff is unusable due to
missing or
recursive dependencies:
base-4.7.0.1-df210ede1eb79477fef5662549c32927
bytestring-0.10.4.0-4aa78c8ca7b6b65993eefc131f7d94fa
containers-0.5.5.1-0d8db9193d3e3371e0142bcc8a4a0721
deepseq-1.3.0.2-8f63133c1b77f3b3190f04893cf340e4
directory-1.2.1.0-af5afa2b9b551d3fec1a32d6bfd8bd72
process-1.2.0.0-3a472e9c66165e506513ea8f145681a0
time-1.4.2-d6766dce59812a4b19375d9595549a8b
unix-2.7.0.1-8adde3f1f2079286da56b30898c2d703
(use -v for more information)
)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20141025/e0fecd23/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 76, Issue 23
*****************************************