简体   繁体   English

如何在arch linux中安装smlnj?

[英]How to install smlnj in arch linux?

Earlier I was in Ubuntu & it was easy to install smlnj using apt-get install smlnj but now I shifted to Arch & I'm finding it difficult to install smlnj. 早些时候我在Ubuntu并且使用apt-get install smlnjapt-get install smlnj但现在我转移到Arch并且我发现很难安装smlnj。

I tried to find smlnj package through yaourt but I didn't found any. 我试图通过yaourt找到smlnj包,但我没有找到任何。 Then I tried to install it by steps given in official site by downloading tar file. 然后我尝试通过下载tar文件在官方网站上给出的步骤安装它。 I followed given steps and extracted tar file in /usr/local/sml & then compiled by running command config/install.sh . 我按照给定的步骤在/usr/local/sml提取tar文件,然后通过运行命令config/install.sh进行编译。

After doing all this I tried to run sml but was not successful. 完成所有这些后,我尝试运行sml但没有成功。 I tried setting environment variable but again was not successful. 我尝试设置环境变量,但又没有成功。

Please tell me whether I'm missing any steps or doing it wrong way. 请告诉我,我是否缺少任何步骤或做错了方法。 What is correct way to install smlnj in Arch Linux? 在Arch Linux中安装smlnj的正确方法是什么?

Update: As Alexander (xyproto) points out, pacman -S smlnj should work again now that SML/NJ is in the [multilib] repository. 更新:正如Alexander(xyproto)所指出的, pacman -S smlnj应该再次工作,因为SML / NJ在[multilib]存储库中。 The solution below would still work, but credit for making installation more convenient should go to him. 下面的解决方案仍然可以使用,但是为了使安装更方便应该归功于他。 :-) :-)

Before: It seems that the package became unavailable for x86_64 in Feb 2017, but it doesn't look like it should have happened. 之前:看起来2017年2月该软件包无法用于x86_64,但它看起来不应该发生。 I've asked Alexander who maintains the package in [community]. 我问亚历山大谁在[社区]维护包裹。

The AUR doesn't contain an smlnj package because it's against AUR policy to overlap with official packages, unless the AUR package is compiled with some tweak that is clearly visible in the package name. AUR不包含smlnj包,因为它违反AUR策略与官方包重叠,除非AUR包使用包名中清晰可见的一些调整进行编译。

You can still build an Arch package and install that by finding the PKGBUILD and accompanying files at: https://git.archlinux.org/svntogit/community.git/tree/trunk?h=packages/smlnj (or by cloning the git repo below with those four files in it): 您仍然可以构建一个Arch包并通过在以下位置找到PKGBUILD和附带的文件来安装它: https ://git.archlinux.org/svntogit/community.git/tree/trunk?h = package / smnnj(或通过克隆git)下面有这四个文件的repo):

~ $ git clone https://github.com/sshine/smlnj-arch.git
~ $ cd smlnj-arch
~/smlnj-arch $ makepkg
~/smlnj-arch $ sudo pacman -U smlnj-110.80-3-x86_64.pkg.tar.xz

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM