标签: archlinux

如何将 aria2 与 pacman 一起使用?

我想为 zsh 创建一个别名,以便通过 aria2 下载软件包并通过 pacman 安装它们,我不想通过将 xfercommand 添加到 pacman.conf 来使用 aria2c,因为有两件事:

首先,我的互联网连接速度很慢,我不想让 pacman 锁定几个小时,

第二个xfercommand不支持多链接下载。

首先,我使用此命令通过 pacman 下载或升级和更新:

sudo pacman -Sp [Package] > ~/Documents/.install&& sudo aria2c -c -x16 -x16 -m16 -k1M -j10 -i ~/Documents/.install -d /var/cache/pacman/pkg
Run Code Online (Sandbox Code Playgroud)

但我不知道如何在 zsh 中使其成为别名?

shell zsh archlinux aria2

2
推荐指数
1
解决办法
2901
查看次数

使用 Systemd 时 /tmp 的内容在 PHP-FPM 中不可见

目录 /tmp 无法从作为 Systemd 服务运行的 PHP-FPM 访问。

重现步骤:

<?php
print_r(shell_exec('ls /tmp'));
?>
Run Code Online (Sandbox Code Playgroud)

php fedora archlinux systemd

2
推荐指数
1
解决办法
1568
查看次数

错误:在此范围内未声明“ calloc”

我正在使用g++中编译我的代码arch linux

编译时出现此错误。 .error: ‘calloc’ was not declared in this scope

我没有尝试编译此代码,ubuntu但我很确定它会通过,所以这是arch linux与我的代码有关的问题还是某些问题

这是我的代码:

#include <cstdio>
using namespace std;
class Graph
{
    private :

    unsigned int numNodes;
    class Connection
    {
        public :
        int to;
        int weight;

        Connection (int to,int weight)
        {
            this->to = to;
            this->weight = weight;
        }
        Connection (int to)
        {
            this->to = to;
        }


    };

    Connection **nodeList;

    public :

    Graph (unsigned int numNodes)
    {
        this->nodeList = calloc (sizeof (Connection*),numNodes);
        this->numNodes = …
Run Code Online (Sandbox Code Playgroud)

c++ malloc scope archlinux

2
推荐指数
1
解决办法
4255
查看次数

.vimrc为什么不执行?

当我尝试使用. .vimrc它给与错误:

bash: runtime! command not found
bash: syntax: command not found
bash: filetype: command not found
bash: filetype: command not found
Run Code Online (Sandbox Code Playgroud)

它只是无缘无故地随机停止工作,其他所有点文件似乎都可以正常工作。将.vimrc包含此:

runtime! archlinux.vim
set number
set noswapfile
set nobackup
syntax on
set autoindent
set smartindent
set smarttab
filetype plugin on
filetype indent on
set incsearch
set hlsearch
Run Code Online (Sandbox Code Playgroud)

当它出现在评论中时,它还会给出一个错误。

vim bash archlinux

2
推荐指数
2
解决办法
2637
查看次数

无法在 Arch Linux VM 中运行 tmux

所以我在 Arch 2016.06.01 安装了 tmux。我是通过 SSH 连接的。尝试运行该程序时,我收到以下响应:

tmux: 无效的 LC_ALL、LC、TYPE 或 LANG

其他程序在此 VM 上正常打开。谢谢!

ssh virtual-machine multiplexing archlinux tmux

2
推荐指数
1
解决办法
2023
查看次数

Certbot - 找不到合适的 TLS CA 证书包 [Archlinux]

我正在尝试通过 certbot(包版本 0.21.1.-1)从 Let's Encrypt It 生成证书,但出现错误。我正在使用 webroot 模块。

OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /etc/ssl/certs/ca-certificates.crt
Run Code Online (Sandbox Code Playgroud)

我没有这个文件名的文件。我应该生成它,下载吗?

ssl ssl-certificate archlinux lets-encrypt certbot

2
推荐指数
1
解决办法
9019
查看次数

在 arch linux 上安装 php5.6 时检查 freetype2 错误

我正在尝试使用命令从AUR安装 PHP 版本 5.6.37 makepkg -i,但是当它到达检查“freetype2”的时刻时,它会显示错误:

检查 freetype2...配置:错误:找不到 freetype-config。

我已经安装了 7.2,但我需要 5.6 用于较旧的项目,并且与 Ubuntu 一样,我打算同时安装这两个版本。

makepkg -i
==> Making package: php56 5.6.37-1 (Wed 12 Sep 2018 12:27:39 PM +08)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found php-5.6.37.tar.xz
  -> Found php-5.6.37.tar.xz.asc
  -> Found php.ini.patch
  -> Found apache.conf
  -> Found php-fpm.conf.in.patch
  -> Found logrotate.d.php-fpm
  -> Found php-fpm.service
  -> Found php-fpm.tmpfiles
  -> Found use-enchant2.patch
  -> Found php-freetype-2.9.1.patch
==> Validating source files with sha512sums...

[...] …
Run Code Online (Sandbox Code Playgroud)

freetype2 archlinux php-5.6

2
推荐指数
1
解决办法
2120
查看次数

python - 在 Arch Linux 上 pip 安装 mysqlclient

我需要在 Python 3.7 中使用MySQLdb :

import MySQLdb
Run Code Online (Sandbox Code Playgroud)

这应该通过命令安装pip install mysqlclient,但是在 Arch Linux 上却出现错误。似乎缺少先决条件。我发现在其他发行版上,比如 Ubuntu,可以通过以下命令安装:

sudo apt-get install python-dev default-libmysqlclient-dev
Run Code Online (Sandbox Code Playgroud)

解决方案适用于其他发行版,但我找不到适用于 Arch Linux 的解决方案。

python mysql-python archlinux

2
推荐指数
1
解决办法
5064
查看次数

Manjaro 更新错误:无法更新核心(无法锁定数据库)

我是 i5 桌面上的菜鸟。我无法更新我的系统。在我输入并输入“sudo pacman -Syu”后,终端显示如下

[sudo] password for user-name: ********
:: Synchronizing package databases...
error: failed to update core (unable to lock database)
error: failed to update extra (unable to lock database)
error: failed to update community (unable to lock database)
error: failed to update multilib (unable to lock database)
error: failed to synchronize all databases
Run Code Online (Sandbox Code Playgroud)

帮助!!

kde archlinux manjaro pacman-package-manager

2
推荐指数
1
解决办法
4720
查看次数

在 Archlinux 上使用 Vim 作为 Haskell 的 IDE 目前情况如何?

如果可行,我的目标是通过 YouCompleteMe 在 Vim 中完成 Haskell 的命令完成。在这方面,正如您在下面看到的,我还没有找到关于如何让它工作的共识。

YouCompleteMe上相关问题的最新评论并没有那么旧,因此我从AUR安装了haskell-ide-engine(GitHub上的repo是here

但是,由于它花了很长时间(花了 110 分钟!)我检查了PKGBUILD文件只是为了发现这一点:

# ...
# Supported are '8.4.2' '8.4.3' '8.4.4' '8.6.4' '8.6.5' '8.8.1' '8.8.2' '8.8.3'
# activated by default are the ones also used in a stackage snapshot. Removing
# versions you do not use will greatly reduce the compilation time of this
# package
_enabled_ghc_versions=('8.4.4' '8.6.4' '8.6.5' '8.8.2' '8.8.3')
# ...
Run Code Online (Sandbox Code Playgroud)

够公平,我的坏。所以我在#haskell IRC 频道上寻找帮助,一位用户发表了这样的评论:

然后你会发现几乎没有人haskell-ide-engine再使用但haskell-language-server. …

vim haskell archlinux youcompleteme

2
推荐指数
1
解决办法
563
查看次数