Skip to content

OpenBSD: install fails, tar: unknown option -- J #2660

@kapitaali

Description

@kapitaali

Operating system and version: OpenBSD 6.9

nvm debug output:

-bash-5.1$ nvm debug
nvm --version: v0.39.0
$SHELL: /usr/local/bin/bash
$SHLVL: 1
whoami: 'th'
${HOME}: /home/th
${NVM_DIR}: '${HOME}/.nvm'
${PATH}: ${HOME}/.rvm/gems/ruby-3.0.0/bin:${HOME}/.rvm/gems/ruby-3.0.0@global/bin:${HOME}/.rvm/rubies/ruby-3.0.0/bin:${HOME}/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:/usr/games:${HOME}/.rvm/bin:${HOME}/.local/bin
$PREFIX: ''
${NPM_CONFIG_PREFIX}: ''
$NVM_NODEJS_ORG_MIRROR: ''
$NVM_IOJS_ORG_MIRROR: ''
shell version: 'GNU bash, version 5.1.4(1)-release (x86_64-unknown-openbsd6.9)'
uname -a: 'OpenBSD 6.9 GENERIC.MP#1 amd64'
checksum binary: 'sha256'
curl: /usr/local/bin/curl, curl 7.79.0 (x86_64-unknown-openbsd6.9) libcurl/7.79.0 LibreSSL/3.3.2 zlib/1.2.3 nghttp2/1.43.0
wget: /usr/local/bin/wget, GNU Wget 1.20.3 built on openbsd6.9.
git: /usr/local/bin/git, git version 2.31.1
grep: /usr/bin/grep, grep version 0.9
awk: /usr/bin/awk, awk: unknown option --version ignored
sed: /usr/bin/sed, sed: unknown option -- -
cut: /usr/bin/cut, cut: unknown option -- -
basename: /usr/bin/basename, basename: unknown option -- -
rm: /bin/rm, rm: unknown option -- -
mkdir: /bin/mkdir, mkdir: unknown option -- -
xargs: /usr/bin/xargs, xargs: unknown option -- -
nvm current: none
which node: which: node: Command not found.
which iojs: which: iojs: Command not found.
which npm: which: npm: Command not found.
npm config get prefix: -bash: npm: command not found
npm root -g: -bash: npm: command not found

nvm ls output:

-bash-5.1$ nvm ls
               
         system
iojs -> N/A (default)
node -> stable (-> N/A) (default)
unstable -> N/A (default)
lts/* -> lts/gallium (-> N/A)
lts/argon -> v4.9.1 (-> N/A)
lts/boron -> v6.17.1 (-> N/A)
lts/carbon -> v8.17.0 (-> N/A)
lts/dubnium -> v10.24.1 (-> N/A)
lts/erbium -> v12.22.7 (-> N/A)
lts/fermium -> v14.18.1 (-> N/A)
lts/gallium -> v16.13.0 (-> N/A)

How did you install nvm?

git clone from repository, git checkout v0.39.0, . ./nvm.sh

What steps did you perform?

after installing: nvm install node

What happened?

-bash-5.1$ nvm install node
Downloading and installing node v17.1.0...
Downloading https://nodejs.org/dist/v17.1.0/node-v17.1.0-openbsd-x64.tar.xz...
curl: (22) The requested URL returned error: 404

Binary download from https://nodejs.org/dist/v17.1.0/node-v17.1.0-openbsd-x64.tar.xz failed, trying source.
grep: /home/th/.nvm/.cache/bin/node-v17.1.0-openbsd-x64/node-v17.1.0-openbsd-x64.tar.xz: No such file or directory
Provided file to checksum does not exist.
Binary download failed, trying source.
Detected that you have 4 CPU core(s)
Running with 3 threads to speed up the build
Clang v3.5+ detected! CC or CXX not specified, will use Clang as C/C++ compiler!
Downloading https://nodejs.org/dist/v17.1.0/node-v17.1.0.tar.xz...
############################################################################################# 100.0%
Computing checksum with sha256 -q
Checksums matched!
tar: unknown option -- J
usage: tar {crtux}[014578befHhjLmNOoPpqsvwXZz]
[blocking-factor | archive | replstr] [-C directory] [-I file]
[file ...]
tar {-crtux} [-014578eHhjLmNOoPpqvwXZz] [-b blocking-factor]
[-C directory] [-f archive] [-I file] [-s replstr] [file ...]
nvm: install v17.1.0 failed!

What did you expect to happen?

I expected tar to recognize the j option, but apparently OpenBSD does not support capital J but only lower case j

Is there anything in any of your profile files that modifies the PATH?

no

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions