LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-19-2012, 01:45 AM   #1
daletroN3030
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Rep: Reputation: Disabled
Need help installing Haskell for Linux Mint


so I tried going to the Software Manager and typing Haskell, and a bunch of stuff comes up, but I don't think the actual program is in there? Oh, i tried searching haskell-platform and nothing shows up neither.

So I went to the official Haskell download site for Linux here:
http://community.linuxmint.com/software ... l-platform
then clicked Install, then a window named "Launch Application" opens that says "This link needs to be opened by an application" and the default is "apturl". So I click OK, but then it just says

"Could not find package 'haskell-platform'."

Help please!
 
Old 01-19-2012, 02:01 AM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Linux Mint is a Debian based distro, right?

Haskell should be in the repositories. It's in mine (Debian Squeeze 6.0.3). "haskell-platform" appears to be the correct name of the package.

If you can, open a terminal and type the following commands (as root -- you may need to add "sudo" -- depending on how Linux Mint handles root):
Code:
apt-get update
apt-get install haskell-platform
If you get an error that the package is not found, then post the contents of the /etc/apt/sources.list. For instance:
Code:
cat /etc/apt/sources.list
EDIT:
Just to add, I haven't done any Haskell programming. So, I'm certainly no expert, but you might actually be looking for the 'ghc' package instead of haskell-platform. I say that because ghc -> "glasgow haskell compilation system" versus haskell-platform -> "standard haskell libraries and tools". Like I said, I haven't done any Haskell programming. So I don't know if the glasgow compiler is a non-standard compiler, if haskell-platform includes a compiler as part of its "tools" or what.

Last edited by Dark_Helmet; 01-19-2012 at 02:12 AM.
 
Old 01-19-2012, 02:44 AM   #3
daletroN3030
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
mmmm no idea if this is based on debian.. i'm a huge linux newb =[

did the apt-get update and apt-get install haskell-platform but yup, says package not found.

this is the results of the cat /etc/apt/sources.list

cat /etc/apt/sources.list
deb http://packages.linuxmint.com/ isadora main upstream import
deb http://archive.ubuntu.com/ubuntu/ lucid main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ lucid-updates main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu/ lucid-security main restricted universe multiverse
deb http://archive.canonical.com/ubuntu/ lucid partner
deb http://packages.medibuntu.org/ lucid free non-free

# deb http://archive.getdeb.net/ubuntu lucid-getdeb apps
# deb http://archive.getdeb.net/ubuntu lucid-getdeb games


thx for helping
 
Old 01-19-2012, 02:46 AM   #4
daletroN3030
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
i duno.. i wouldn't mind the package either if that's all i need?... i just need Haskell on here.. =[ i got it on my windows pc... bleh

edit: sigh, might end up going back to windows if i can't get this to work.. can't seem to find a solution here or on the mint forums which really sucks =[ but i really need this for school

i'm using linux mint 9 if it matters/helps

Last edited by daletroN3030; 01-19-2012 at 02:58 AM.
 
Old 01-19-2012, 03:41 AM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Heh... Mint is an Ubuntu derivative, and Ubuntu is a Debian derivative. Not that important beyond the fact that Mint uses deb packages.

My guess is that your sources list does not include the right repository for the package. I'll do some searching to see if I can find out which repository it's in...

EDIT:
Well, it seems I couldn't find a straight answer. The packages website for Linux Mint is woeful in the list of packages for manual download. That tells me that anything not listed is probably direct from the Ubuntu repositories. On top of that, this page says that there is currently a bug for unmet dependencies with haskell-platform. I do not know whether that bug affects your version of Mint though. But, according to that page, a user seems to have some success installing the haskell compiler from source.

You can download the source starting at this page. DO NOT click the Mint link because it will take you back to the crap-tastic package website that didn't work for you earlier.

Scroll down and download the "haskell-platform-2011.4.0.0.tar.gz" AND as the page indicates, you need to also install the glasgow haskell compiler (first link below the haskell-platform link).

There are instructions for compiling haskell-platform on that page. But in brief, you need to open a terminal, extract the tarball, configure, make, and make install. For instance, assuming (1) you installed the glasgow haskell compiler first and (2) you downloaded the haskell-platform file to the Downloads directory in your home folder:
Code:
tar xvzf ~/Downloads/haskell-platform-2011.4.0.0.tar.gz
cd haskell-platform-2011.4.0.0
./configure
make
sudo make install

Last edited by Dark_Helmet; 01-19-2012 at 03:56 AM.
 
Old 01-19-2012, 03:48 AM   #6
daletroN3030
LQ Newbie
 
Registered: Dec 2011
Posts: 9

Original Poster
Rep: Reputation: Disabled
thanks appreciate it! if i can't find a solution.. redling windows as we speak =[ really want to like linux.. but bleh, this is the 2nd problem that i haven't been able to find a solution for.
 
Old 01-19-2012, 12:36 PM   #7
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
It looks like your reply was made while I was in the process of editing my response. Because adding an edit won't send you a notification, you may not have seen the new stuff I added yet. So, hopefully this reply will send the notification, you'll see the new stuff, and hopefully get a working compiler
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Linux Mint 12 over Linux Mint 11 rick1959 Linux - Software 2 01-03-2012 09:22 PM
installing software on linux mint Upendra Pratap Singh Linux - General 2 05-10-2011 08:58 PM
[SOLVED] Please help me in installing gcc on linux mint badriinvenkat Linux Mint 13 07-30-2010 10:05 AM
installing linux mint smiffyuk Linux - Newbie 10 08-19-2008 06:18 AM
re installation of grub in Linux mint after installing xp over mint sampad.sarangi General 1 01-15-2008 06:37 PM


All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration