Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re^4: Installing Pugs via CPAN shell (How to call specific ghc version)

by neversaint (Deacon)
on Oct 19, 2006 at 00:53 UTC ( [id://579247]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Installing Pugs via CPAN shell (How to call specific ghc version)
in thread Installing Pugs via CPAN shell (How to call specific ghc version)

Dear shmem,
Look for hsc2hs in ~/.ghc/bin and make a symlink to it as hsc2hs-6.4.1
What's the command with symlink to do that? Sorry, I'm not experienced with symlink.
Or undefine the environment variable GHC and prepend your haskell directory to your path: PATH=~/.ghc/bin:$PATH so that the right haskell compiler is found (and the plain hsc2hs).
I already have that in my .bash_profile:
export PATH=$PATH:$HOME/.octave/bin:$HOME/.ghc/bin:
And my ~/.ghc/bin directory has this:
[neversaint@voyager bin]$ pwd /home/neversaint/.ghc/bin [neversaint@voyager bin]$ ll -h total 700K lrwxrwxrwx 1 neversaint neversaint 9 Oct 18 17:28 ghc -> ghc-6.4.1 -rwxr-xr-x 1 neversaint neversaint 334 Oct 18 17:28 ghc-6.4.1 lrwxrwxrwx 1 neversaint neversaint 10 Oct 18 17:28 ghci -> ghci-6.4 +.1 -rwxr-xr-x 1 neversaint neversaint 349 Oct 18 17:28 ghci-6.4.1 lrwxrwxrwx 1 neversaint neversaint 13 Oct 18 17:28 ghc-pkg -> ghc-p +kg-6.4.1 -rwxr-xr-x 1 neversaint neversaint 373 Oct 18 17:28 ghc-pkg-6.4.1 -rwxr-xr-x 1 neversaint neversaint 7.2K Oct 18 17:28 ghcprof -rwxr-xr-x 1 neversaint neversaint 33K Oct 18 17:28 hp2ps -rwxr-xr-x 1 neversaint neversaint 583 Oct 18 17:28 hsc2hs -rwxr-xr-x 1 neversaint neversaint 313K Oct 18 17:28 runghc -rwxr-xr-x 1 neversaint neversaint 313K Oct 18 17:28 runhaskell


---
neversaint and everlastingly indebted.......

Replies are listed 'Best First'.
Re^5: Installing Pugs via CPAN shell (How to call specific ghc version)
by mhacker (Sexton) on Oct 19, 2006 at 07:18 UTC
    No, you don't have ~/.ghc/bin prepended to your $PATH. You have it appended instead, which is your original problem. When the systems looks for the "ghc" binary it will find the older install since it comes first in your path. Try this instead:
    export PATH=$HOME/.ghc/bin:$PATH
    and then try again (without exporting the GHC variable, since it should now find the correct version through the PATH variable).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://579247]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2024-04-19 04:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found