Hello again.
Thank you all for your very helpful replies (below)
Here is the error I got when I tried to run my script :
Could not find module `Graphics.GD'
Locations searched:
Graphics/GD.hs
Graphics/GD.lhs
As with the previous errors, I went on Google, to find out which module and/or package I needed to install.
Apparently, I need something called "GD"
When I tried : cabal install gd
I got the following :
Resolving dependencies...
Configuring gd-3000.7.3...
cabal-1.16.0.2: Missing dependencies on foreign libraries:
* Missing (or bad) header file: gd.h
* Missing C libraries: gd, expat
Failed to install gd-3000.7.3
cabal-1.16.0.2: Error: some packages failed to install:
gd-3000.7.3 failed during the configure step. The exception was: ExitFailure 1
Upon further inquiries via google, I found somewhere the following :
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). 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.
I thought I did this already.
But, apparently, I did something wrong??
-----Original Message-----
From: beginners-request
To: beginners
Sent: Sat, Jan 18, 2014 11:35 pm
Subject: Beginners Digest, Vol 67, Issue 19
Message: 1
Date: Sat, 18 Jan 2014 12:25:01 -0500 (EST)
From: Pyro Crane
To: beginners@haskell.org
Subject: [Haskell-beginners] Just started working with Haskell. Need
some help
Message-ID: <8D0E2895A21535B-1058-8B60@webmail-d276.sysops.aol.com>
Content-Type: text/plain; charset="us-ascii"
Hi,
I just started working with Haskell
Running it on a RHEL linux operating system
I was able to download and install it, along with libraries and packages (or,
at least, what I thought were the libraries and packages)
But, when I try to run a simple script, I keep getting the error : "Could not
find module XXXXXX"..............
I understand what this error means ---- there is a package/library missing.
I tried using the "Cabal Update" command, but this did not solve the problem.
So, I am now fixing this problem the primitive way, as follows :
(a) I use Google to first find out what the missing module is
(b) then, based on what google says, I am able to determine the name of the
actual package that needs to be installed
(c) I use "Cabal Install" to install the package
(d) I try to run the script again
(e) I get the same error, but this time, it cannot find a different module
(f) I go back to Google to locate the missing module
etc, etc, etc, etc
Obviously, this is as slow as it is ridiculous...............
especially when one considers that there are probably hundreds of these
modules/packages
And, now, I've come up against a module/package, which I am unable to locate in
Google. It's missing from my installation, and Google does not know what it is,
or where I can find it
Is there any way to simply install ALL required packages??? I thought I
already did this, but obviously I missed something
Thanks