Send Beginners mailing list submissions to
        [email protected]

To subscribe or unsubscribe via the World Wide Web, visit
        http://mail.haskell.org/cgi-bin/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:  Error when running `cabal install    cabal-install`
      (Brandon Allbery)
   2. Re:  Error when running `cabal install    cabal-install`
      (Brandon Allbery)
   3. Re:  Error when running `cabal install    cabal-install`
      (Brandon Allbery)
   4. Re:  Error when running `cabal install    cabal-install` (Peng Yu)
   5. Re:  Error when running `cabal install    cabal-install` (Peng Yu)


----------------------------------------------------------------------

Message: 1
Date: Thu, 23 Apr 2015 17:39:34 -0400
From: Brandon Allbery <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Cc: macports-users <[email protected]>
Subject: Re: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <CAKFCL4URUideYMaWXHfA0LKmvKVJHcXFVQPzye=hsq27cxt...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Thu, Apr 23, 2015 at 5:12 PM, Peng Yu <[email protected]> wrote:

> I had problems with MacPorts for Python and Perl. The general
> suggestion is to stay way from MacPorts for managing packages offered
> by other language platforms.
>

Actually, the general suggestion there is stay away from *any* packaging
system for those languages --- because installing modules from both the
packaging system and the language's own package repository risks breaking
things with incompatible versions. I have had to help someone try to fix
their Debian install after they installed a Perl module that was
incompatible with dpkg; it's not just MacPorts, or even just Macs. (You can
screw up a Red Hat-ish system the same way by installing the wrong Python
module(s).) This is why Perl has perlbrew, Python has virtualenv, and Ruby
has rvm (and for ghc, both Cabal sandboxes and hsenv).

That said, a batteries-included setup like the Platform is usually an
exception because you want the compiler and the Platform packages to all
match, and you'll break things anyway if they don't: overriding modules
that comes with ghc or with the Platform (or Stackage if you use that) is
pretty much guaranteed "Cabal hell"). So get those all from the same place,
but other modules from wherever --- just don't try to upgrade or replace
those packages.

You can add a "constraint: <foo> installed" to ~/.cabal/config for each the
packages in the global package database to tell cabal-install not to touch
those libraries. Note that you will have to exclude the Cabal library
itself from that to install a newer cabal-install. This is actually
relatively safe, although there is the potential to break ghc-as-a-library
in obscure ways.

# # #

I think MP did end up skipping the latest Platform because the build system
changed in a way that's pretty much hostile to other package systems;
they've all had to come up with their own ways to build it instead, and our
Haskell maintainer did not have the time to work out how to adapt one of
them to a ports-based system or design his own alternative. The next
Platform release is backing off from that (it ended up being no easier than
the old way), so should be easier to update.

-- 
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://mail.haskell.org/pipermail/beginners/attachments/20150423/e2f0fce7/attachment-0001.html>

------------------------------

Message: 2
Date: Thu, 23 Apr 2015 17:59:36 -0400
From: Brandon Allbery <[email protected]>
To: Clemens Lang <[email protected]>
Cc: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>,
        macports-users <[email protected]>
Subject: Re: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <CAKFCL4VhmQYfo4adozAihshu=cijedkae6p+t4p3icjky0w...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Thu, Apr 23, 2015 at 5:56 PM, Clemens Lang <[email protected]> wrote:

> So if you get these link errors, the problem almost always is that you
> adjusted your library search path, but not the corresponding header
> search path and you're actually compiling against Apple's iconv.h but
> MacPorts libiconv.dylib (or vice-versa).
>

Those are coming from a library already built against Apple's libiconv, but
being linked against MacPorts' libiconv.

-- 
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://mail.haskell.org/pipermail/beginners/attachments/20150423/dbf164a1/attachment-0001.html>

------------------------------

Message: 3
Date: Thu, 23 Apr 2015 18:02:27 -0400
From: Brandon Allbery <[email protected]>
To: Clemens Lang <[email protected]>
Cc: macports-users <[email protected]>, The
        Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <cakfcl4xdv+0mcg4xmlvkgx889hcgsrvw3+f4rq0jkyltmok...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

On Thu, Apr 23, 2015 at 6:00 PM, Clemens Lang <[email protected]> wrote:

> From https://www.haskell.org/platform/
>
> it sounds like the latest platform release
> is 2014.2.0.0, and that's what's currently packaged in MacPorts. It took
> me a
> while to get it done, but it's there and all components of the platform
> should be
> included. I'd welcome a bug report if there's anything wrong with it.
>

Mrrr, I thought there was a 6.8.4-based release (with the bizarre new build
system). We're packaging 6.8.3 still.

-- 
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://mail.haskell.org/pipermail/beginners/attachments/20150423/5c8b4b98/attachment-0001.html>

------------------------------

Message: 4
Date: Thu, 23 Apr 2015 19:23:15 -0500
From: Peng Yu <[email protected]>
To: Clemens Lang <[email protected]>
Cc: macports-users <[email protected]>, The
        Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <cabrm6wm1v_jqp8rcpnb_eenq2qqzjpdtksccxzngkovecks...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

> Long story short: Try
>  $> cabal install --extra-include-dirs=/opt/local/include 
> --extra-lib-dirs=/opt/local/lib

I tried it but it still shows the error messages.

~$ cabal install --extra-include-dirs=/opt/local/include
--extra-lib-dirs=/opt/local/lib cabal-install

Resolving dependencies...
Configuring cabal-install-1.22.3.0...
Failed to install cabal-install-1.22.3.0
Build log ( /Users/py/.cabal/logs/cabal-install-1.22.3.0.log ):
cabal: Error: some packages failed to install:
cabal-install-1.22.3.0 failed during the configure step. The exception was:
user error ('/usr/bin/ghc' exited with an error:
Undefined symbols for architecture x86_64:
"_iconv", referenced from:
_hs_iconv in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_closure , _hs_iconv_open ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_closure , _hs_iconv_close ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding4_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding6_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding2_info ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding10_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding9_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding8_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncoding7_closure ,
_base_GHCziIOziEncodingziIconv_iconvEncodingzuloc1_info ,
_base_GHCziIOziEncodingziIconv_iconvEncoding3_closure )
"_iconv_close", referenced from:
_hs_iconv_close in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv_close)
"_iconv_open", referenced from:
_hs_iconv_open in libHSbase-4.7.0.1.a(iconv.o)
(maybe you meant: _hs_iconv_open)
"_locale_charset", referenced from:
_localeEncoding in libHSbase-4.7.0.1.a(PrelIOUtils.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
)


-- 
Regards,
Peng


------------------------------

Message: 5
Date: Thu, 23 Apr 2015 19:46:45 -0500
From: Peng Yu <[email protected]>
To: Ryan Schmidt <[email protected]>
Cc: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>,
        Clemens Lang <[email protected]>, MacPorts Users
        <[email protected]>
Subject: Re: [Haskell-beginners] Error when running `cabal install
        cabal-install`
Message-ID:
        <cabrm6wk-5tm87_ssesttoq-6kntdgkvnbc9hebqjlpygy0f...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Thu, Apr 23, 2015 at 7:39 PM, Ryan Schmidt <[email protected]> wrote:
>
>> On Apr 23, 2015, at 7:23 PM, Peng Yu <[email protected]> wrote:
>>
>>> Long story short: Try
>>> $> cabal install --extra-include-dirs=/opt/local/include 
>>> --extra-lib-dirs=/opt/local/lib
>>
>> I tried it but it still shows the error messages.
>>
>> ~$ cabal install --extra-include-dirs=/opt/local/include
>> --extra-lib-dirs=/opt/local/lib cabal-install
>>
>> Resolving dependencies...
>> Configuring cabal-install-1.22.3.0...
>> Failed to install cabal-install-1.22.3.0
>> Build log ( /Users/py/.cabal/logs/cabal-install-1.22.3.0.log ):
>> cabal: Error: some packages failed to install:
>> cabal-install-1.22.3.0 failed during the configure step. The exception was:
>> user error ('/usr/bin/ghc' exited with an error:
>
> You've installed ghc into /usr/bin? That's probably not a good idea. Prefix 
> /usr is only for the OS vendor to install software into.

This is what installed from the haskell installer. I agree this might
not be a good idea. But I have no control over it.

-- 
Regards,
Peng


------------------------------

Subject: Digest Footer

_______________________________________________
Beginners mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/beginners


------------------------------

End of Beginners Digest, Vol 82, Issue 33
*****************************************

Reply via email to