不使用互联网连接,使用cabal安装Haskell软件包 [英] Install Haskell packages using cabal without internet connection

查看:280
本文介绍了不使用互联网连接,使用cabal安装Haskell软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一台根本无法访问互联网的机器。

我使用通过pendrive从另一台机器获得的安装程序在其上安装了Haskell Platform。



现在我想在我的家中没有互联网接入的机器上安装包装 repa 。我应该怎么做?



我的家用机器运行的是Linux(Debian),而我的办公机器是Windows 7。 h2_lin>解决方案

从一台机器可以访问互联网,您可以:


  • 运行 cabal get pkg-name 其中 pkg-name 是您想要的软件包。

  • 转到 Hackage 上的包页面,并在下载部分找到 .tar.gz


获得后,将它传输到其他机器上,一个沙箱,如果你只想在沙箱中)。然后从该目录(其中有一个 .cabal 文件)运行 cabal install


I have a machine that doesn't have internet access at all.
I installed the Haskell Platform on it using the installer which I got from another machine through a pendrive.

Now I want to install the package repa on my home machine which has no internet access. How should I do that?

My home machine is running Linux (Debian) and my office machine is Windows 7.

解决方案

From a machine you can access the internet you can either:

  • Run cabal get pkg-name where pkg-name is the package you want.
  • Go to the package's page on Hackage and on the Downloads section there's a .tar.gz file you can download.

After you get it, transfer it to your other machine, extract it anywhere you'd like (a sandbox if you want it just in a sandbox). Then from that directory (where there's a .cabal file) run cabal install.

这篇关于不使用互联网连接,使用cabal安装Haskell软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆