@SPeak 手动删除后安装成功
maoapoot
-
xlings 安装失败 -
xlings 安装失败这是补充的系统信息
mao@mao-VMware-Virtual-Platform:~/zw/cpp/mcpp-standard$ uname -a
Linux mao-VMware-Virtual-Platform 6.14.0-36-generic #36~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Oct 15 15:45:17 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
mao@mao-VMware-Virtual-Platform:~/zw/cpp/mcpp-standard$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 24.04.2 LTS
Release: 24.04
Codename: noble
mao@mao-VMware-Virtual-Platform:~/zw/cpp/mcpp-standard$ cat /etc/os-release
PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
mao@mao-VMware-Virtual-Platform:~/zw/cpp/mcpp-standard$ hostnamectl
Static hostname: mao-VMware-Virtual-Platform
Icon name: computer-vm
Chassis: vm 🖴
Machine ID: f44942894d14493683730a03b5cb5866
Boot ID: 325f6f4bd14041089a761ddd1bac04a4
Virtualization: vmware
Operating System: Ubuntu 24.04.2 LTS
Kernel: Linux 6.14.0-36-generic
Architecture: x86-64
Hardware Vendor: VMware, Inc.
Hardware Model: VMware Virtual Platform
Firmware Version: 6.00
Firmware Date: Thu 2020-11-12
Firmware Age: 5y 2w 5d -
xlings 安装失败以下是安装的指令后的log
curl -fsSL https://d2learn.org/xlings-install.sh | bash
\ \ / / | | (_) pre-v0.0.4
\ V / | | _ _ __ __ _ ___< | | | || '_ \ / _ |/ |
/ . \ | || || | | || (| |_
// _\ ||||| || _, ||_/
/ |
|/repo: https://github.com/d2learn/xlings
forum: https://forum.d2learn.org
Testing network...
Latency for github.com : 95.962 ms
Latency for gitee.com : 18.969 ms
Downloading xlings...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 119k 0 119k 0 0 176k 0 --:--:-- --:--:-- --:--:-- 176k
Extracting files...
Running install.unix.sh...
[xlings]: start detect environment and try to auto config...
[xlings]: xmake installed
[xlings]: remove /home/xlings/.xlings - ok
-> delete local cache data?(y/n) [xlings]: keep local cache data: /home/xlings/.xlings_data
[xlings]: xlings uninstalled - ok
[xlings]: create xlings home dir /home/xlings
[sudo] mao 的密码:
[xlings]: install xlings to /home/xlings/.xlings
[xlings]: use local cache data - /home/xlings/.xlings_data
xmake v3.0.0+HEAD.0db4fe610, A cross-platform build utility based on Lua
Copyright (C) 2015-present Ruki Wang, tboox.org, xmake.io
_
__ ___ __ __ __ | | ______
\ / / | / |/ _ | |/ / __
> < | _/ | /| | < /
//__|| ||_ ||____|
by ruki, xmake.io
Manual: https://xmake.io/#/getting_started
Donate: https://xmake.io/#/sponsorUsage: $xmake [task] [options] [target]
Build targets if no given tasks.
Actions:
b, build Build targets if no given tasks.
c, clean Remove all binary and temporary files.
f, config Configure the project.
create Create a new project.
g, global Configure the global options for xmake.
i, install Package and install the target binary files.
p, package Package target.
q, require Install and update required packages.
r, run Run the project target.
service Start service for remote or distributed compilation and etc.
test Run the project tests.
u, uninstall Uninstall the project binary files.
update Update and uninstall the xmake program.Plugins:
check Check the project sourcecode and configuration.
doxygen Generate the doxygen document.
format Format the current project.
l, lua Run the lua script.
m, macro Run the given macro.
pack Pack binary installation packages.
plugin Manage plugins of xmake.
project Generate the project file.
repo Manage package repositories.
show Show the given project information.
watch Watch the project directories and run command.Common options:
-q, --quiet Quiet operation.
-y, --yes Input yes by default if need user confirm.
--confirm=CONFIRM Input the given result if need user confirm.
- yes
- no
- def
-v, --verbose Print lots of verbose information for users.
--root Allow to run xmake as root.
-D, --diagnosis Print lots of diagnosis information (backtrace, check info ..) only for developers.
And we can append -v to get more whole information.
e.g. $ xmake -vD
-h, --help Print this help message and exit.-F FILE, --file=FILE Read a given xmake.lua file. -P PROJECT, --project=PROJECT Change to the given project directory. Search priority: 1. The Given Command Argument 2. The Envirnoment Variable: XMAKE_PROJECT_DIR 3. The Current DirectoryCommand options (build):
--version Print the version number and exit.
-b, --build Build target. This is default building mode and optional.
-r, --rebuild Rebuild the target.
-a, --all Build all targets.
--shallow Only re-build the given targets without dependencies.
-g GROUP, --group=GROUP Build all targets of the given group. It support path pattern matching.
e.g.
xmake -g test
xmake -g test_*
xmake --group=benchmark/*
--dry-run Dry run to build target.-j JOBS, --jobs=JOBS Set the number of parallel compilation jobs. (default: 6) --linkjobs=LINKJOBS Set the number of parallel link jobs. -w, --warning Enable the warnings output. (deprecated) --linkonly Only link targets if object files have been compiled. --files=FILES Build the given source files. e.g. - xmake --files=src/main.c - xmake --files='src/*.c' [target] - xmake --files='src/**.c|excluded_file.c' - xmake --files='src/main.c:src/test.c' target The target name. It will build all default targets if this parameter is not specified.error: invalid task: xlings
[xlings]: xlings installedrun [ xlings help ] get more information after restart cmd/shell to refresh environment