Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swiftly installed for bash although I'm using fish #145

Open
MahdiBM opened this issue Jul 26, 2024 · 12 comments
Open

Swiftly installed for bash although I'm using fish #145

MahdiBM opened this issue Jul 26, 2024 · 12 comments

Comments

@MahdiBM
Copy link
Contributor

MahdiBM commented Jul 26, 2024

Output:

root@dev ~ [127]# curl -L https://swiftlang.github.io/swiftly/swiftly-install.sh | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 21413  100 21413    0     0  96500      0 --:--:-- --:--:-- --:--:-- 96891
This script will install swiftly, a Swift toolchain installer and manager.

Current installation options:

    Data and configuration files directory: $HOME/.local/share/swiftly
        Executables installation directory: $HOME/.local/bin
      Modify login config ($HOME/.profile): true
               Install system dependencies: true

Select one of the following:
1) Proceed with the installation (default)
2) Customize the installation
3) Cancel
> 1
Downloading swiftly from https://github.com/swift-server/swiftly/releases/latest/download/swiftly-x86_64-unknown-linux-gnu...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 57.6M  100 57.6M    0     0  21.2M      0  0:00:02  0:00:02 --:--:-- 30.8M

Installing Swift's system dependencies via apt-get (note: this may require root access)...
Reading package lists...
Building dependency tree...
Reading state information...
libedit2 is already the newest version (3.1-20210910-1build1).
libedit2 set to manually installed.
git is already the newest version (1:2.34.1-1ubuntu1.11).
git set to manually installed.
gpg is already the newest version (2.2.27-3ubuntu2.1).
gpg set to manually installed.
libsqlite3-0 is already the newest version (3.37.2-2ubuntu0.3).
libsqlite3-0 set to manually installed.
tzdata is already the newest version (2024a-0ubuntu0.22.04.1).
gnupg2 is already the newest version (2.2.27-3ubuntu2.1).
The following additional packages will be installed:
  binutils-common binutils-x86-64-linux-gnu bzip2 fontconfig-config fonts-dejavu-core gcc-11-base icu-devtools libasan6 libatomic1 libbinutils libc-dev-bin libc-devtools libcrypt-dev libctf-nobfd0 libctf0
  libdeflate0 libdpkg-perl libexpat1-dev libfile-fcntllock-perl libfontconfig1 libgd3 libgomp1 libicu-dev libitm1 libjbig0 libjpeg-turbo8 libjpeg8 liblsan0 libnsl-dev libpython3.10-dev libquadmath0 libtiff5
  libtirpc-dev libtsan0 libubsan1 libwebp7 libxpm4 libz3-4 linux-libc-dev manpages-dev rpcsvc-proto unzip
Suggested packages:
  binutils-doc bzip2-doc glibc-doc libcurl4-doc libidn11-dev libkrb5-dev libldap2-dev librtmp-dev libssh2-1-dev libssl-dev debian-keyring gcc | c-compiler bzr libgd-tools icu-doc libstdc++-11-doc dpkg-dev
The following NEW packages will be installed:
  binutils binutils-common binutils-x86-64-linux-gnu bzip2 fontconfig-config fonts-dejavu-core gcc-11-base icu-devtools libasan6 libatomic1 libbinutils libc-dev-bin libc-devtools libc6-dev libcrypt-dev
  libctf-nobfd0 libctf0 libcurl4-openssl-dev libdeflate0 libdpkg-perl libexpat1-dev libfile-fcntllock-perl libfontconfig1 libgcc-11-dev libgd3 libgomp1 libicu-dev libitm1 libjbig0 libjpeg-turbo8 libjpeg8
  liblsan0 libnsl-dev libpython3-dev libpython3.10-dev libquadmath0 libstdc++-11-dev libtiff5 libtirpc-dev libtsan0 libubsan1 libwebp7 libxml2-dev libxpm4 libz3-4 libz3-dev linux-libc-dev manpages-dev pkg-config
  rpcsvc-proto unzip zip zlib1g-dev
0 upgraded, 53 newly installed, 0 to remove and 2 not upgraded.
Need to get 47.8 MB of archives.
After this operation, 199 MB of additional disk space will be used.
Get:1 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 binutils-common amd64 2.38-4ubuntu2.6 [222 kB]
Get:2 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libbinutils amd64 2.38-4ubuntu2.6 [662 kB]
Get:3 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libctf-nobfd0 amd64 2.38-4ubuntu2.6 [108 kB]
Get:4 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libctf0 amd64 2.38-4ubuntu2.6 [103 kB]
Get:5 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 binutils-x86-64-linux-gnu amd64 2.38-4ubuntu2.6 [2,326 kB]
Get:6 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 binutils amd64 2.38-4ubuntu2.6 [3,200 B]
Get:7 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 bzip2 amd64 1.0.8-5build1 [34.8 kB]
Get:8 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 fonts-dejavu-core all 2.37-2build1 [1,041 kB]
Get:9 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 fontconfig-config all 2.13.1-4.2ubuntu5 [29.1 kB]
Get:10 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 gcc-11-base amd64 11.4.0-1ubuntu1~22.04 [20.2 kB]
Get:11 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 icu-devtools amd64 70.1-2 [197 kB]
Get:12 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libasan6 amd64 11.4.0-1ubuntu1~22.04 [2,282 kB]
Get:13 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libatomic1 amd64 12.3.0-1ubuntu1~22.04 [10.4 kB]
Get:14 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libc-dev-bin amd64 2.35-0ubuntu3.8 [20.3 kB]
Get:15 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 libfontconfig1 amd64 2.13.1-4.2ubuntu5 [131 kB]
Get:16 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 libjpeg-turbo8 amd64 2.1.2-0ubuntu1 [134 kB]
Get:17 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 libjpeg8 amd64 8c-2ubuntu10 [2,264 B]
Get:18 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 libdeflate0 amd64 1.10-2 [70.9 kB]
Get:19 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libjbig0 amd64 2.1-3.1ubuntu0.22.04.1 [29.2 kB]
Get:20 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libwebp7 amd64 1.2.2-2ubuntu0.22.04.2 [206 kB]
Get:21 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libtiff5 amd64 4.3.0-6ubuntu0.9 [185 kB]
Get:22 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libxpm4 amd64 1:3.5.12-1ubuntu0.22.04.2 [36.7 kB]
Get:23 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 libgd3 amd64 2.3.0-2ubuntu2 [129 kB]
Get:24 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libc-devtools amd64 2.35-0ubuntu3.8 [28.9 kB]
Get:25 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 linux-libc-dev amd64 5.15.0-117.127 [1,338 kB]
Get:26 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 libcrypt-dev amd64 1:4.4.27-1 [112 kB]
Get:27 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 rpcsvc-proto amd64 1.4.2-0ubuntu6 [68.5 kB]
Get:28 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libtirpc-dev amd64 1.3.2-2ubuntu0.1 [192 kB]
Get:29 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 libnsl-dev amd64 1.3.0-2build2 [71.3 kB]
Get:30 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libc6-dev amd64 2.35-0ubuntu3.8 [2,100 kB]
Get:31 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libcurl4-openssl-dev amd64 7.81.0-1ubuntu1.16 [386 kB]
Get:32 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libdpkg-perl all 1.21.1ubuntu2.3 [237 kB]
Get:33 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libexpat1-dev amd64 2.4.7-1ubuntu0.3 [147 kB]
Get:34 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 libfile-fcntllock-perl amd64 0.22-3build7 [33.9 kB]
Get:35 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libgomp1 amd64 12.3.0-1ubuntu1~22.04 [126 kB]
Get:36 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libitm1 amd64 12.3.0-1ubuntu1~22.04 [30.2 kB]
Get:37 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 liblsan0 amd64 12.3.0-1ubuntu1~22.04 [1,069 kB]
Get:38 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libtsan0 amd64 11.4.0-1ubuntu1~22.04 [2,260 kB]
Get:39 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libubsan1 amd64 12.3.0-1ubuntu1~22.04 [976 kB]
Get:40 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libquadmath0 amd64 12.3.0-1ubuntu1~22.04 [154 kB]
Get:41 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libgcc-11-dev amd64 11.4.0-1ubuntu1~22.04 [2,517 kB]
Get:42 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 libicu-dev amd64 70.1-2 [11.6 MB]
Get:43 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 zlib1g-dev amd64 1:1.2.11.dfsg-2ubuntu9.2 [164 kB]
Get:44 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libpython3.10-dev amd64 3.10.12-1~22.04.4 [4,763 kB]
Get:45 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libpython3-dev amd64 3.10.6-1~22.04 [7,166 B]
Get:46 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libstdc++-11-dev amd64 11.4.0-1ubuntu1~22.04 [2,101 kB]
Get:47 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 libxml2-dev amd64 2.9.13+dfsg-1ubuntu0.4 [804 kB]
Get:48 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 manpages-dev all 5.10-1ubuntu1 [2,309 kB]
Get:49 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 pkg-config amd64 0.29.2-1ubuntu3 [48.2 kB]
Get:50 https://mirror.hetzner.com/ubuntu/packages jammy-updates/main amd64 unzip amd64 6.0-26ubuntu3.2 [175 kB]
Get:51 https://mirror.hetzner.com/ubuntu/packages jammy/main amd64 zip amd64 3.0-12build2 [176 kB]
Get:52 https://mirror.hetzner.com/ubuntu/packages jammy/universe amd64 libz3-4 amd64 4.8.12-1 [5,766 kB]
Get:53 https://mirror.hetzner.com/ubuntu/packages jammy/universe amd64 libz3-dev amd64 4.8.12-1 [72.2 kB]
Fetched 47.8 MB in 1s (57.7 MB/s)
Extracting templates from packages: 100%
Selecting previously unselected package binutils-common:amd64.
(Reading database ... 37780 files and directories currently installed.)
Preparing to unpack .../00-binutils-common_2.38-4ubuntu2.6_amd64.deb ...
Unpacking binutils-common:amd64 (2.38-4ubuntu2.6) ...
Selecting previously unselected package libbinutils:amd64.
Preparing to unpack .../01-libbinutils_2.38-4ubuntu2.6_amd64.deb ...
Unpacking libbinutils:amd64 (2.38-4ubuntu2.6) ...
Selecting previously unselected package libctf-nobfd0:amd64.
Preparing to unpack .../02-libctf-nobfd0_2.38-4ubuntu2.6_amd64.deb ...
Unpacking libctf-nobfd0:amd64 (2.38-4ubuntu2.6) ...
Selecting previously unselected package libctf0:amd64.
Preparing to unpack .../03-libctf0_2.38-4ubuntu2.6_amd64.deb ...
Unpacking libctf0:amd64 (2.38-4ubuntu2.6) ...
Selecting previously unselected package binutils-x86-64-linux-gnu.
Preparing to unpack .../04-binutils-x86-64-linux-gnu_2.38-4ubuntu2.6_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.38-4ubuntu2.6) ...
Selecting previously unselected package binutils.
Preparing to unpack .../05-binutils_2.38-4ubuntu2.6_amd64.deb ...
Unpacking binutils (2.38-4ubuntu2.6) ...
Selecting previously unselected package bzip2.
Preparing to unpack .../06-bzip2_1.0.8-5build1_amd64.deb ...
Unpacking bzip2 (1.0.8-5build1) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../07-fonts-dejavu-core_2.37-2build1_all.deb ...
Unpacking fonts-dejavu-core (2.37-2build1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../08-fontconfig-config_2.13.1-4.2ubuntu5_all.deb ...
Unpacking fontconfig-config (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package gcc-11-base:amd64.
Preparing to unpack .../09-gcc-11-base_11.4.0-1ubuntu1~22.04_amd64.deb ...
Unpacking gcc-11-base:amd64 (11.4.0-1ubuntu1~22.04) ...
Selecting previously unselected package icu-devtools.
Preparing to unpack .../10-icu-devtools_70.1-2_amd64.deb ...
Unpacking icu-devtools (70.1-2) ...
Selecting previously unselected package libasan6:amd64.
Preparing to unpack .../11-libasan6_11.4.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libasan6:amd64 (11.4.0-1ubuntu1~22.04) ...
Selecting previously unselected package libatomic1:amd64.
Preparing to unpack .../12-libatomic1_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libatomic1:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libc-dev-bin.
Preparing to unpack .../13-libc-dev-bin_2.35-0ubuntu3.8_amd64.deb ...
Unpacking libc-dev-bin (2.35-0ubuntu3.8) ...
Selecting previously unselected package libfontconfig1:amd64.
Preparing to unpack .../14-libfontconfig1_2.13.1-4.2ubuntu5_amd64.deb ...
Unpacking libfontconfig1:amd64 (2.13.1-4.2ubuntu5) ...
Selecting previously unselected package libjpeg-turbo8:amd64.
Preparing to unpack .../15-libjpeg-turbo8_2.1.2-0ubuntu1_amd64.deb ...
Unpacking libjpeg-turbo8:amd64 (2.1.2-0ubuntu1) ...
Selecting previously unselected package libjpeg8:amd64.
Preparing to unpack .../16-libjpeg8_8c-2ubuntu10_amd64.deb ...
Unpacking libjpeg8:amd64 (8c-2ubuntu10) ...
Selecting previously unselected package libdeflate0:amd64.
Preparing to unpack .../17-libdeflate0_1.10-2_amd64.deb ...
Unpacking libdeflate0:amd64 (1.10-2) ...
Selecting previously unselected package libjbig0:amd64.
Preparing to unpack .../18-libjbig0_2.1-3.1ubuntu0.22.04.1_amd64.deb ...
Unpacking libjbig0:amd64 (2.1-3.1ubuntu0.22.04.1) ...
Selecting previously unselected package libwebp7:amd64.
Preparing to unpack .../19-libwebp7_1.2.2-2ubuntu0.22.04.2_amd64.deb ...
Unpacking libwebp7:amd64 (1.2.2-2ubuntu0.22.04.2) ...
Selecting previously unselected package libtiff5:amd64.
Preparing to unpack .../20-libtiff5_4.3.0-6ubuntu0.9_amd64.deb ...
Unpacking libtiff5:amd64 (4.3.0-6ubuntu0.9) ...
Selecting previously unselected package libxpm4:amd64.
Preparing to unpack .../21-libxpm4_1%3a3.5.12-1ubuntu0.22.04.2_amd64.deb ...
Unpacking libxpm4:amd64 (1:3.5.12-1ubuntu0.22.04.2) ...
Selecting previously unselected package libgd3:amd64.
Preparing to unpack .../22-libgd3_2.3.0-2ubuntu2_amd64.deb ...
Unpacking libgd3:amd64 (2.3.0-2ubuntu2) ...
Selecting previously unselected package libc-devtools.
Preparing to unpack .../23-libc-devtools_2.35-0ubuntu3.8_amd64.deb ...
Unpacking libc-devtools (2.35-0ubuntu3.8) ...
Selecting previously unselected package linux-libc-dev:amd64.
Preparing to unpack .../24-linux-libc-dev_5.15.0-117.127_amd64.deb ...
Unpacking linux-libc-dev:amd64 (5.15.0-117.127) ...
Selecting previously unselected package libcrypt-dev:amd64.
Preparing to unpack .../25-libcrypt-dev_1%3a4.4.27-1_amd64.deb ...
Unpacking libcrypt-dev:amd64 (1:4.4.27-1) ...
Selecting previously unselected package rpcsvc-proto.
Preparing to unpack .../26-rpcsvc-proto_1.4.2-0ubuntu6_amd64.deb ...
Unpacking rpcsvc-proto (1.4.2-0ubuntu6) ...
Selecting previously unselected package libtirpc-dev:amd64.
Preparing to unpack .../27-libtirpc-dev_1.3.2-2ubuntu0.1_amd64.deb ...
Unpacking libtirpc-dev:amd64 (1.3.2-2ubuntu0.1) ...
Selecting previously unselected package libnsl-dev:amd64.
Preparing to unpack .../28-libnsl-dev_1.3.0-2build2_amd64.deb ...
Unpacking libnsl-dev:amd64 (1.3.0-2build2) ...
Selecting previously unselected package libc6-dev:amd64.
Preparing to unpack .../29-libc6-dev_2.35-0ubuntu3.8_amd64.deb ...
Unpacking libc6-dev:amd64 (2.35-0ubuntu3.8) ...
Selecting previously unselected package libcurl4-openssl-dev:amd64.
Preparing to unpack .../30-libcurl4-openssl-dev_7.81.0-1ubuntu1.16_amd64.deb ...
Unpacking libcurl4-openssl-dev:amd64 (7.81.0-1ubuntu1.16) ...
Selecting previously unselected package libdpkg-perl.
Preparing to unpack .../31-libdpkg-perl_1.21.1ubuntu2.3_all.deb ...
Unpacking libdpkg-perl (1.21.1ubuntu2.3) ...
Selecting previously unselected package libexpat1-dev:amd64.
Preparing to unpack .../32-libexpat1-dev_2.4.7-1ubuntu0.3_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.4.7-1ubuntu0.3) ...
Selecting previously unselected package libfile-fcntllock-perl.
Preparing to unpack .../33-libfile-fcntllock-perl_0.22-3build7_amd64.deb ...
Unpacking libfile-fcntllock-perl (0.22-3build7) ...
Selecting previously unselected package libgomp1:amd64.
Preparing to unpack .../34-libgomp1_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libgomp1:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libitm1:amd64.
Preparing to unpack .../35-libitm1_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libitm1:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package liblsan0:amd64.
Preparing to unpack .../36-liblsan0_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking liblsan0:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libtsan0:amd64.
Preparing to unpack .../37-libtsan0_11.4.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libtsan0:amd64 (11.4.0-1ubuntu1~22.04) ...
Selecting previously unselected package libubsan1:amd64.
Preparing to unpack .../38-libubsan1_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libubsan1:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libquadmath0:amd64.
Preparing to unpack .../39-libquadmath0_12.3.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libquadmath0:amd64 (12.3.0-1ubuntu1~22.04) ...
Selecting previously unselected package libgcc-11-dev:amd64.
Preparing to unpack .../40-libgcc-11-dev_11.4.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libgcc-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ...
Selecting previously unselected package libicu-dev:amd64.
Preparing to unpack .../41-libicu-dev_70.1-2_amd64.deb ...
Unpacking libicu-dev:amd64 (70.1-2) ...
Selecting previously unselected package zlib1g-dev:amd64.
Preparing to unpack .../42-zlib1g-dev_1%3a1.2.11.dfsg-2ubuntu9.2_amd64.deb ...
Unpacking zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Selecting previously unselected package libpython3.10-dev:amd64.
Preparing to unpack .../43-libpython3.10-dev_3.10.12-1~22.04.4_amd64.deb ...
Unpacking libpython3.10-dev:amd64 (3.10.12-1~22.04.4) ...
Selecting previously unselected package libpython3-dev:amd64.
Preparing to unpack .../44-libpython3-dev_3.10.6-1~22.04_amd64.deb ...
Unpacking libpython3-dev:amd64 (3.10.6-1~22.04) ...
Selecting previously unselected package libstdc++-11-dev:amd64.
Preparing to unpack .../45-libstdc++-11-dev_11.4.0-1ubuntu1~22.04_amd64.deb ...
Unpacking libstdc++-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ...
Selecting previously unselected package libxml2-dev:amd64.
Preparing to unpack .../46-libxml2-dev_2.9.13+dfsg-1ubuntu0.4_amd64.deb ...
Unpacking libxml2-dev:amd64 (2.9.13+dfsg-1ubuntu0.4) ...
Selecting previously unselected package manpages-dev.
Preparing to unpack .../47-manpages-dev_5.10-1ubuntu1_all.deb ...
Unpacking manpages-dev (5.10-1ubuntu1) ...
Selecting previously unselected package pkg-config.
Preparing to unpack .../48-pkg-config_0.29.2-1ubuntu3_amd64.deb ...
Unpacking pkg-config (0.29.2-1ubuntu3) ...
Selecting previously unselected package unzip.
Preparing to unpack .../49-unzip_6.0-26ubuntu3.2_amd64.deb ...
Unpacking unzip (6.0-26ubuntu3.2) ...
Selecting previously unselected package zip.
Preparing to unpack .../50-zip_3.0-12build2_amd64.deb ...
Unpacking zip (3.0-12build2) ...
Selecting previously unselected package libz3-4:amd64.
Preparing to unpack .../51-libz3-4_4.8.12-1_amd64.deb ...
Unpacking libz3-4:amd64 (4.8.12-1) ...
Selecting previously unselected package libz3-dev:amd64.
Preparing to unpack .../52-libz3-dev_4.8.12-1_amd64.deb ...
Unpacking libz3-dev:amd64 (4.8.12-1) ...
Setting up gcc-11-base:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up manpages-dev (5.10-1ubuntu1) ...
Setting up libxpm4:amd64 (1:3.5.12-1ubuntu0.22.04.2) ...
Setting up libfile-fcntllock-perl (0.22-3build7) ...
Setting up unzip (6.0-26ubuntu3.2) ...
Setting up binutils-common:amd64 (2.38-4ubuntu2.6) ...
Setting up libdeflate0:amd64 (1.10-2) ...
Setting up linux-libc-dev:amd64 (5.15.0-117.127) ...
Setting up libctf-nobfd0:amd64 (2.38-4ubuntu2.6) ...
Setting up libgomp1:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up bzip2 (1.0.8-5build1) ...
Setting up libjbig0:amd64 (2.1-3.1ubuntu0.22.04.1) ...
Setting up libasan6:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up zip (3.0-12build2) ...
Setting up libz3-4:amd64 (4.8.12-1) ...
Setting up libtirpc-dev:amd64 (1.3.2-2ubuntu0.1) ...
Setting up rpcsvc-proto (1.4.2-0ubuntu6) ...
Setting up libcurl4-openssl-dev:amd64 (7.81.0-1ubuntu1.16) ...
Setting up libquadmath0:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up libatomic1:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up icu-devtools (70.1-2) ...
Setting up fonts-dejavu-core (2.37-2build1) ...
Setting up libjpeg-turbo8:amd64 (2.1.2-0ubuntu1) ...
Setting up libdpkg-perl (1.21.1ubuntu2.3) ...
Setting up libwebp7:amd64 (1.2.2-2ubuntu0.22.04.2) ...
Setting up libubsan1:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up libnsl-dev:amd64 (1.3.0-2build2) ...
Setting up libcrypt-dev:amd64 (1:4.4.27-1) ...
Setting up libbinutils:amd64 (2.38-4ubuntu2.6) ...
Setting up libc-dev-bin (2.35-0ubuntu3.8) ...
Setting up liblsan0:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up libitm1:amd64 (12.3.0-1ubuntu1~22.04) ...
Setting up libtsan0:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up libctf0:amd64 (2.38-4ubuntu2.6) ...
Setting up libjpeg8:amd64 (8c-2ubuntu10) ...
Setting up libz3-dev:amd64 (4.8.12-1) ...
Setting up fontconfig-config (2.13.1-4.2ubuntu5) ...
Setting up pkg-config (0.29.2-1ubuntu3) ...
Setting up libgcc-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up libc6-dev:amd64 (2.35-0ubuntu3.8) ...
Setting up libtiff5:amd64 (4.3.0-6ubuntu0.9) ...
Setting up libfontconfig1:amd64 (2.13.1-4.2ubuntu5) ...
Setting up libicu-dev:amd64 (70.1-2) ...
Setting up binutils-x86-64-linux-gnu (2.38-4ubuntu2.6) ...
Setting up binutils (2.38-4ubuntu2.6) ...
Setting up libxml2-dev:amd64 (2.9.13+dfsg-1ubuntu0.4) ...
Setting up libexpat1-dev:amd64 (2.4.7-1ubuntu0.3) ...
Setting up libgd3:amd64 (2.3.0-2ubuntu2) ...
Setting up libstdc++-11-dev:amd64 (11.4.0-1ubuntu1~22.04) ...
Setting up zlib1g-dev:amd64 (1:1.2.11.dfsg-2ubuntu9.2) ...
Setting up libc-devtools (2.35-0ubuntu3.8) ...
Setting up libpython3.10-dev:amd64 (3.10.12-1~22.04.4) ...
Setting up libpython3-dev:amd64 (3.10.6-1~22.04) ...
Processing triggers for man-db (2.10.2-1) ...
Processing triggers for libc-bin (2.35-0ubuntu3.8) ...

Importing Swift's PGP keys...
gpg: directory '/root/.gnupg' created
gpg: keybox '/root/.gnupg/pubring.kbx' created
gpg: /root/.gnupg/trustdb.gpg: trustdb created
gpg: key D441C977412B37AD: public key "Swift Automatic Signing Key #1 <swift-infrastructure@swift.org>" imported
gpg: key 9F597F4D21A56D5F: public key "Swift 2.2 Release Signing Key <swift-infrastructure@swift.org>" imported
gpg: key 63BC1CFE91D306C6: public key "Swift 3.x Release Signing Key <swift-infrastructure@swift.org>" imported
gpg: key EF5430F071E1B235: public key "Swift 4.x Release Signing Key <swift-infrastructure@swift.org>" imported
gpg: key 7638F1FB2B2B08C4: public key "Swift Automatic Signing Key #2 <swift-infrastructure@swift.org>" imported
gpg: key 925CC1CCED3D1561: public key "Swift 5.x Release Signing Key <swift-infrastructure@swift.org>" imported
gpg: key FAF6989E1BC16FEA: public key "Swift Automatic Signing Key #3 <swift-infrastructure@swift.org>" imported
gpg: key 925CC1CCED3D1561: "Swift 5.x Release Signing Key <swift-infrastructure@swift.org>" 1 new signature
gpg: key F167DF1ACF9CE069: public key "Swift Automatic Signing Key #4 <swift-infrastructure@forums.swift.org>" imported
gpg: key 925CC1CCED3D1561: "Swift 5.x Release Signing Key <swift-infrastructure@swift.org>" 1 new signature
gpg: key F167DF1ACF9CE069: "Swift Automatic Signing Key #4 <swift-infrastructure@forums.swift.org>" 1 new signature
gpg: Total number processed: 11
gpg:               imported: 8
gpg:         new signatures: 3

swiftly has been successfully installed!

Once you log in again, swiftly should be accessible from your PATH.
To begin using swiftly from your current shell, first run the following command:

    . $HOME/.local/share/swiftly/env.sh

Then to install the latest version of Swift, run 'swiftly install latest'
root@dev ~# . $HOME/.local/share/swiftly/env.sh
~/.local/share/swiftly/env.sh (line 3): Missing end to balance this if statement
if [[ ":$PATH:" != *":$SWIFTLY_BIN_DIR:"* ]]; then
^^
from sourcing file ~/.local/share/swiftly/env.sh
.: Error while reading file '/root/.local/share/swiftly/env.sh'
root@dev ~ [1]# swiftly
swiftly: command not found

I solved this by manually constructing a env.fish based on what the installer would do, and then executing that.
This is on a Ubuntu 22.04 VPS, where i installed fish using apt and set fish as the default shell:

~ cat /etc/passwd | head -n 1
root:x:0:0:root:/root:/usr/bin/fish
@adam-fowler
Copy link
Contributor

Did you restart your shell between setting your default shell to fish and running swiftly?

@MahdiBM
Copy link
Contributor Author

MahdiBM commented Jul 26, 2024

I'm fairly sure that would be a yes.

@MahdiBM
Copy link
Contributor Author

MahdiBM commented Jul 26, 2024

even then, it shouldn't matter? I'm invoking the installation from fish. The installer should install things for fish I would expect.

@adam-fowler
Copy link
Contributor

If your current shell is fish it should provide setup for fish.

@MahdiBM
Copy link
Contributor Author

MahdiBM commented Jul 26, 2024

Yes my current shell was indeed fish.

@MahdiBM
Copy link
Contributor Author

MahdiBM commented Jul 26, 2024

I'm not 100% up to date with the situation. Is this script supposed to be rewritten in some way?

Otherwise I can try and debug.

@patrickfreed
Copy link
Contributor

swiftly-install.sh uses the $SHELL variable to determine whether to produce a file compatible with fish or not, so if that is unset or doesn't contain "fish" for some reason, the installation will default to bash. You may need to log in again (e.g. something like fish --login) before running the install script to ensure that gets populated properly.

This all will shortly be moving to swiftly itself (see #127), so it probably isn't worth debugging too much.

@cmcgee1024
Copy link
Member

@MahdiBM the new install mechanism through the swiftly init subcommand uses the login shell instead of the current shell. Does this address the original problem?

@MahdiBM
Copy link
Contributor Author

MahdiBM commented Nov 25, 2024

@cmcgee1024 are these changes tagged / released? How can I test the new swiftly init?

@cmcgee1024
Copy link
Member

@MahdiBM we're working towards a new release, but it hasn't happened quite yet. Best way to give swiftly a try right now is to use an environment where you have swift 6.x installed and run the following on this repo at the main branch:

swift run build-swiftly-release --skip 999.0.0

This will print out the location of the final tar/pkg file that you can use to install swiftly somewhere else. In either case, you'll run the swiftly init after extracting the package to perform an installation.

@MahdiBM
Copy link
Contributor Author

MahdiBM commented Nov 25, 2024

@cmcgee1024 thank you for the notice, currently not in the mood to go through the installation steps, even though i've done similar things a couple dozen times and it's likely not going to take much time 😅 just being honest.

I'll see if i can find the mood and time sometime soon.
Otherwise I'll definitely recheck the issue's status when the changes are released.

Let me know if you think this is urgent or something and i can skip my mood and just do it 😅.

@cmcgee1024
Copy link
Member

cmcgee1024 commented Nov 25, 2024

@MahdiBM there's nothing urgent. Just going through old issues to see if some of these are resolved with the changes I've been making. We've got some fish testing coverage in this PR #188

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants