Page 1 of 1
GHC haskell problem
Posted: Wed Mar 27, 2024 1:13 pm
by rowhat1
Hi! I have recently installed ghc_8.8.4.2 and ghc-prof_8.8.4.2 but i cannot make them work on terminal. I have installed lot of other packages but nothings changed. I'm new on puppy and a want to program on haskell, Can someone help me?
when i white "ghci" on terminal this message appears:
"
# ghci
GHCi, version 8.8.4: https://www.haskell.org/ghc/ for help
ghc: there is no package.cache in /usr/lib/ghc/package.conf.d even though package database is not empty
"
Re: GHC haskell problem
Posted: Wed Mar 27, 2024 4:26 pm
by Keef
Hello and welcome rowhat1
Could you tell us which version of Puppy you are using, and how you installed GHC.
I downloaded this one: https://downloads.haskell.org/~ghc/9.8. ... nux.tar.xz and installed it successfully on Fatdog. Can't see why it wouldn't work on Puppy versions.
You could also try running
and see if that works. Got that from here: https://github.com/alces-software/packa ... issues/234
No idea if it will work though.
Re: GHC haskell problem
Posted: Wed Mar 27, 2024 4:33 pm
by rockedge
@rowhat1 Greetings and to the forum.
which version of Puppy Linux are you using? I have had haskell
working on a F96-CE_4 and could try to install it again! I would like to give it a whirl on a similar system you are using.
Re: GHC haskell problem
Posted: Fri Mar 29, 2024 3:40 am
by rowhat1
Wow! the "ghc-pkg recache" code did something on it! now terminal gives me another message! "# ghc-pkg recache
# ghci
GHCi, version 8.8.4: https://www.haskell.org/ghc/ for help
ghc: could not execute: i686-linux-gnu-gcc "
I am using 22.04 - JammyPup32 and i have installed it from the package manager typing "gch" and choosing ghc-prof_8.8.4-2 and ghc_.8.8.4-2
Now back to the terminal message... Has that any solution now?
Re: GHC haskell problem
Posted: Fri Mar 29, 2024 3:45 am
by rowhat1
rockedge wrote: Wed Mar 27, 2024 4:33 pm
@rowhat1 Greetings and to the forum.
which version of Puppy Linux are you using? I have had haskell
working on a F96-CE_4 and could try to install it again! I would like to give it a whirl on a similar system you are using.
Hi! thanks you!
I am currently using 22.04 - JammyPup32. But i applied a code that changed something but dont know if it has any solution now.
"# ghc-pkg recache
ghci
GHCi, version 8.8.4: https://www.haskell.org/ghc/ for help
ghc: could not execute: i686-linux-gnu-gcc "
Re: GHC haskell problem
Posted: Fri Mar 29, 2024 4:53 am
by rockedge
@rowhat1 .
Do you have the Devx SFS loaded for Jammy32? You will need the Devx SFS package for the gcc compiler
Re: GHC haskell problem
Posted: Fri Mar 29, 2024 2:13 pm
by rowhat1
rockedge wrote: Fri Mar 29, 2024 4:53 am
@rowhat1 .
Do you have the Devx SFS loaded for Jammy32? You will need the Devx SFS package for the gcc compiler
Oh... so thats what I need! How can I install it on Puppy?
Re: GHC haskell problem
Posted: Fri Mar 29, 2024 11:43 pm
by rockedge
@rowhat1,
Download it from here -> https://sourceforge.net/projects/pb-gh- ... s/download
Place the SFS file in the /mnt/home
directory or outside of the install directory. Use Menu->Setup->SFS-Load to load the SFS and you should be good to go.
You might be able to click on the SFS once it's in the correct place and the system will query if it should be installed. This uses the same utility as the previous method.
Re: GHC haskell problem
Posted: Sat Mar 30, 2024 2:00 am
by rowhat1
rockedge wrote: Fri Mar 29, 2024 11:43 pm
@rowhat1,
Download it from here -> https://sourceforge.net/projects/pb-gh- ... s/download
Place the SFS file in the /mnt/home
directory or outside of the install directory. Use Menu->Setup->SFS-Load to load the SFS and you should be good to go.
You might be able to click on the SFS once it's in the correct place and the system will query if it should be installed. This uses the same utility as the previous method.
Thanks!! but I did everything you told me and sadly ghci gives me the same message. I did restart my machine and also put the recache code to see some changes but no. Any other idea?
Re: GHC haskell problem
Posted: Sat Mar 30, 2024 3:53 pm
by rockedge
@rowhat1
This morning I have been experimenting with GHC on F96-CE_4 and suddenly after seeing the same error messages as you have, it all started to work!
- Screenshot(51).jpg (61.54 KiB) Viewed 969 times
Now to track down what I just did....which was just a few things...so I will re-install it on a fresh install to be able to tell you exactly what I did.
This is the result of ghci -v
- Screenshot(52).jpg (130.91 KiB) Viewed 966 times
Re: GHC haskell problem
Posted: Sat Mar 30, 2024 4:37 pm
by rockedge
@rowhat1
It was straightforward setting up Haskell on a F96-CE_4.
Started with using the PPM (Puppy Package Manager) with Menu->Setup->Package Manager (Legacy)
Updated the repo's package list.
searched for ghc
and installed ghc_8.8.1+dfsg1+is+8.6.5+dfsg1-3
opened a terminal and typed the command: ghc-pkg recache
and then next typed ghc --version
- Screenshot(1).jpg (23.88 KiB) Viewed 960 times