当前位置: 首页 > 工具软件 > GNU M4 > 使用案例 >

linux怎样安装gnu m4 (version 1.4),在Ubuntu上的Windows 10 bash上,GNU m4安装失败(GNU m4 installation fails on Wind...

公良文彬
2023-12-01

在Ubuntu上的Windows 10 bash上,GNU m4安装失败(GNU m4 installation fails on Windows 10 bash on Ubuntu)

我写了这些:

wget ftp://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz

tar xvzf m4-1.4.17.tar.gz

cd m4-1.4.17

./configure --prefix=/usr/local/m4

但是,配置过程在此阶段停止:

checking whether rename honors trailing slash on source...

我等了8个多小时没有进展。 我试图重启我的电脑并重复类似的步骤,但问题仍然存在。

我在这里发现了一个类似的问题,但我想解释一下我自己的麻烦。

我将不胜感激任何建议。 谢谢。

I am trying to install GNU m4 package on Bash on Ubuntu on Windows 10, but always fail at configuration stage.

I wrote these:

wget ftp://ftp.gnu.org/gnu/m4/m4-1.4.17.tar.gz

tar xvzf m4-1.4.17.tar.gz

cd m4-1.4.17

./configure --prefix=/usr/local/m4

However, the configuration process stopped at this stage:

checking whether rename honors trailing slash on source...

I had waited for more than 8 hours with no progress. I tried to restart my PC and repeated similar steps, but the trouble remains.

I found a similar question here, but I want to explain a bit more details about my own trouble.

I would appreciate any suggestion. Thanks.

原文:https://stackoverflow.com/questions/39421851

更新时间:2019-11-13 05:46

最满意答案

这是由Windows上的Bash中的错误引起的。 作为一种解决方法,尝试从Linux目录而不是Windows目录构建m4 (即,在/home/$USER/构建它而不是/mnt/c的子目录)。

This is caused by a bug in Bash on Windows. As a workaround, try building m4 from a Linux directory instead of a Windows one (i.e., build it in /home/$USER/ instead of a subdirectory of /mnt/c).

2016-09-14

相关问答

好消息是,现在可以在Windows 10上安装USB媒体(包括FAT格式化)和drvfs网络共享: 安装可移动媒体:(例如D :) $ sudo mkdir /mnt/d

$ sudo mount -t drvfs D: /mnt/d

安全地卸载 $ sudo umount /mnt/d

您也可以在不使用smbfs的情况下安装网络共享: $ sudo mount -t drvfs '\\server\share' /mnt/share

您至少需要Build 16176,因此您可能必须选择加入

...

这是由Windows上的Bash中的错误引起的。 作为一种解决方法,尝试从Linux目录而不是Windows目录构建m4 (即,在/home/$USER/构建它而不是/mnt/c的子目录)。 This is caused by a bug in Bash on Windows. As a workaround, try building m4 from a Linux directory instead of a Windows one (i.e., build it in /home/$USER

...

另一个解决方案是启用“快速编辑模式”,然后您可以通过右键单击终端来进行粘贴。 要启用快速编辑模式,请右键单击工具栏(或只需单击左上角的图标),选择属性,然后在选项选项卡中,单击快速编辑模式旁边的复选框。 启用此模式后,您还可以通过单击并拖动来复制终端中的文本。 一旦进行选择,您可以按Enter键或右键单击复制。 Update 2019/04/16: It seems copy/paste is now officially supported in Windows build >= 17643.

...

Thx到@ jgr208和@Benjamin W.我找到了完整的解决方案: 要禁用bash的哔声,您需要在/etc/inputrc文件中取消注释/添加 set bell-style none 要禁止像vim这样的程序的哔声(我已经测试过),你需要创建 - 如果还没有 - .bash_profile并添加setterm -blength 0 To disable the beep of the bash you need to uncomment (add if not already there)

...

首先,Windows子系统Linux(WSL)不是一个成熟的Linux发行版。 很多东西都不起作用,除非你正在测试软件或做一些非常简单的事情,否则最好不要使用它。 接下来,要在您的计算机上运行虚拟化,您很可能必须禁用WSL并重新启动计算机。 要启用硬件虚拟化(64位客户机的要求),您必须在BIOS中启用它。 根据您的处理器类型,它被标记为VT-x或AMD-V。 启用此选项,保存BIOS配置,然后重新启动计算机。 接下来,从virtualbox.org下载virtualbox并安装它; 确保您也检查

...

根据这篇文章,您运行的是Linux的一种版本。 文章说它是Linux的Windows子系统,就像Wine的对立面。 因此,您可能会尝试从bash shell(包括Android Studio)安装所有Linux版本,从而获得更多成功。 这样,您将不会混合和匹配两个系统环境,而不是已有的系统环境。 According to this article you are running a kind-of version of Linux. The article says it is a Windows

...

我认为这是Windows Bash shell的一个问题,但我在Ubuntu VM上确认了同样的问题,并进行了一些挖掘。 以超级用户身份全局安装使其正常工作: sudo npm install i -g --save-dev webpack webpack-dev-server

I thought this was an issue with the Windows Bash shell, but I confirmed the same problem on an Ubuntu VM and

...

可能你的apt缓存已经过时了。 尝试先运行apt-get update 。 您试图安装的版本不再在repos中。 Probably your apt cache is outdated. Try running apt-get update first. The version you tried to install is no longer in the repos anymore.

在服务器上启用基本身份验证 ,然后重试。 如果您使用的是TFS2015 Update3,还可以配置使用SSH进行身份验证。 Enable Basic Authentication on your server and then try again. And if you are using TFS2015 Update3, you can also configure to use SSH for authentication.

首先阅读William Pursell对你帖子的评论(上图)。 如果你还需要安装autotools ...... 通过键入以下内容来检查您可能已安装的自动工具(如果有): m4 --version和autoconf --version以及automake --version 。 您应该使用HP-UX的软件包管理器。 它被称为软件分销商(SD)。 http://en.wikipedia.org/wiki/Software_Distributor HP-UX的FAQ 5.9解释了如何使用depothe

...

 类似资料: