Regex lib doesn't load

Hi Haskellers. I'm trying to read a text file using GHCi on Haskell Platform 2010.2.0.0. The import line in my program is "import Text.Regex". When I run :main it says "unknown symbol `_regerror'" and "unable to load package `regex-posix-0.94.2'". Any clues on how fix this problem? Please let me know if there's a better place to ask about it. --Dan Bensen

On 1 November 2010 23:36, Dan Bensen
Hi Haskellers. I'm trying to read a text file using GHCi on Haskell Platform 2010.2.0.0. The import line in my program is "import Text.Regex". When I run :main it says "unknown symbol `_regerror'" and "unable to load package `regex-posix-0.94.2'". Any clues on how fix this problem? Please let me know if there's a better place to ask about it.
I'm going to randomly guess that you're using Windows, and that these previous reports of similar behaviour have the same problem as you do: http://www.mail-archive.com/haskell-cafe@haskell.org/msg51707.html http://www.mail-archive.com/haskell-platform@projects.haskell.org/msg01153.h... -- Ivan Lazar Miljenovic Ivan.Miljenovic@gmail.com IvanMiljenovic.wordpress.com

See this conclusion of this thread - installing the latest version from Hackage seems to be the solution: http://www.haskell.org/pipermail/haskell-cafe/2010-August/082141.html Note that although regex-posix is a binding to a C library, because the library and headers are delivered with the Platform you should be able to upgrade without needing MinGW (MinGW is otherwise usually needed for C library bindings on Windows).
participants (3)
-
Dan Bensen
-
Ivan Lazar Miljenovic
-
Stephen Tetley