Checkinstall 无法制作 Ruby 1.9.2 包

发布于 2024-10-28 03:42:52 字数 1568 浏览 0 评论 0原文

Checkinstall 无法制作 Ruby 包,并出现以下错误。

# checkinstall -D --install=no --pakdir=/home/<username>/Рабочий\ стол/

<...>

installing binary commands:   /usr/local/bin
/home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:854:in `utime': No such file or directory - /usr/local/bin/ruby (Errno::ENOENT)
    from /home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:854:in `block in install'
    from /home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:1423:in `block in fu_each_src_dest'
    from /home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:1437:in `fu_each_src_dest0'
    from /home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:1421:in `fu_each_src_dest'
    from /home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:850:in `install'
    from ./tool/rbinstall.rb:154:in `install'
    from ./tool/rbinstall.rb:307:in `block in '
    from ./tool/rbinstall.rb:542:in `call'
    from ./tool/rbinstall.rb:542:in `block (2 levels) in '
    from ./tool/rbinstall.rb:539:in `each'
    from ./tool/rbinstall.rb:539:in `block in '
    from ./tool/rbinstall.rb:535:in `each'
    from ./tool/rbinstall.rb:535:in `'
make: *** [do-install-all] Ошибка 1

****  Установка неудачна. Отменяется создание пакета.

Очищается.../usr/bin/checkinstall: line 328: [: /home/<username>/Рабочий: ожидается использование бинарного оператора
OK

Удачи.

问题的原因是什么?我该如何解决?

谢谢。

Debian GNU/Linux 6.0.1;

红宝石 1.9.2;

检查安装 1.6.2。

Checkinstall fails to make a Ruby package with the following error.

# checkinstall -D --install=no --pakdir=/home/<username>/Рабочий\ стол/

<...>

installing binary commands:   /usr/local/bin
/home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:854:in `utime': No such file or directory - /usr/local/bin/ruby (Errno::ENOENT)
    from /home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:854:in `block in install'
    from /home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:1423:in `block in fu_each_src_dest'
    from /home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:1437:in `fu_each_src_dest0'
    from /home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:1421:in `fu_each_src_dest'
    from /home/<username>/Рабочий стол/ruby-1.9.2-p180/lib/fileutils.rb:850:in `install'
    from ./tool/rbinstall.rb:154:in `install'
    from ./tool/rbinstall.rb:307:in `block in '
    from ./tool/rbinstall.rb:542:in `call'
    from ./tool/rbinstall.rb:542:in `block (2 levels) in '
    from ./tool/rbinstall.rb:539:in `each'
    from ./tool/rbinstall.rb:539:in `block in '
    from ./tool/rbinstall.rb:535:in `each'
    from ./tool/rbinstall.rb:535:in `'
make: *** [do-install-all] Ошибка 1

****  Установка неудачна. Отменяется создание пакета.

Очищается.../usr/bin/checkinstall: line 328: [: /home/<username>/Рабочий: ожидается использование бинарного оператора
OK

Удачи.

What is the cause of the problem? How can I solve it?

Thanks.

Debian GNU/Linux 6.0.1;

Ruby 1.9.2;

Checkinstall 1.6.2.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

寒冷纷飞旳雪 2024-11-04 03:42:52

我使用 Ubuntu 11.04 遇到了同样的问题。

我相信这部分是由权限错误引起的(需要以 root 身份运行)。它似乎还受到 checkinstall fstrans 错误的影响:https://bugs.launchpad.net/ ubuntu/+source/checkinstall/+bug/78455

原始命令(失败):

sudo checkinstall --install=no -D make install

工作命令:

sudo checkinstall --fstrans=no -D make install

I ran into the same issue using Ubuntu 11.04.

I believe this is caused in part by a permissions error (need to run as root). It also appears to be affected by a checkinstall fstrans bug: https://bugs.launchpad.net/ubuntu/+source/checkinstall/+bug/78455

Original command (fails):

sudo checkinstall --install=no -D make install

Working command:

sudo checkinstall --fstrans=no -D make install

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文