我正在研究一些运行在覆盆子pi 2上的haskell项目和可以使用apt-get从raspbian(7.4.1)安装的ghc版本。它没有GHCi,它可以防止编译一些重要的软件包(如Vector)。我已经看到了一些有关能够将更高版本的ghc(带有ghci)放到pi上的传闻,但最近没有。 haskell wiki上的条目看起来已经过时了几年。有没有人有这样的运气?GHCi on raspberry pi 2?
回答
我对此有一些好运!
[email protected]:~$ ssh pi-loc
Linux raspberrypi 3.12.28+ #709 PREEMPT Mon Sep 8 15:28:00 BST 2014 armv6l
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Apr 1 00:24:44 2015 from sagemuej-aspire-5742g.localdomain
[email protected]:~$ ghci
GHCi, version 7.8.2: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Prelude> :m +Data.Vector
Prelude Data.Vector> fromList [1,2,3]
Loading package array-0.5.0.0 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package primitive-0.5.2.1 ... linking ... done.
Loading package vector-0.10.9.1 ... linking ... done.
fromList [1,2,3]
这不是很好吗?
它是一个完整的GHC 7.8。不过,我不得不从源码引导它。如果我正确记得–虽然花了很长时间才能建成(如周的一半),但通过正常的设置说明工作得很好。
主要问题是内存:对于一些较大的模块,编译器需要比π可以提供的更多,即使在没有X的情况下运行也是如此。我所做的只是简单地连接了一个USB硬盘并设置了一个交换分区在上面。当然,交换使一切变得更慢,但最终它会成功。至少对我而言。
- 1. Accurev on Raspberry PI?
- 2. openDDS on raspberry pi与raspbian
- 3. scikit-learn/python3 on raspberry pi
- 4. CMUcam5 Pixy on Raspberry 2
- 5. Raspberry Pi 2 GPSD未运行
- 6. Arch Linux ARM on Raspberry pi来自OSX
- 7. 写Raspberry Pi程序,没有Raspberry Pi
- 8. Raspberry PI AD8232
- 9. VisualGDB和Raspberry Pi
- 10. Raspberry Pi Python
- 11. Raspberry Pi Photobooth Printing
- 12. Arduino或Raspberry Pi
- 13. Alexa Raspberry Pi
- 14. NodeJS:Async/Await Raspberry Pi
- 15. Xamarin和Raspberry Pi
- 16. Azure,Android,Raspberry Pi
- 17. Gammu和Raspberry Pi
- 18. Raspberry pi 2 Hostapd获取用户列表
- 19. cmake不能在Raspberry Pi 2上工作
- 20. zImage安装在Raspberry PI上2
- 21. Raspberry Pi 2 - 困在apt-get(gnome-user-guide)
- 22. 两个RFID RC522 Raspberry PI 2 Windows IOT
- 23. GStreamer,Python和Raspberry Pi
- 24. Java + Raspberry Pi + SQlite = NoClassDefFoundError
- 25. 在Raspberry Pi上运行Raspberry Pi 1 OS 3
- 26. Raspberry Pi,处理Crontab
- 27. Raspberry Pi idigi http messaging
- 28. Raspberry Pi CPU温度
- 29. Raspberry Pi .bat等效
- 30. Raspberry pi 3 cpuinfo ARMv7
好消息!你会考虑让编译的二进制文件可用吗? – jhickner 2015-04-01 01:11:13
我想我应该,不是吗?我从来没有打包任何二进制文件,但我认为它不是那么难。我会考虑它的... – leftaroundabout 2015-04-01 09:16:35
你们都疯了!......我赞成。 – MathematicalOrchid 2015-04-01 10:24:10