I have been trying to install a few packages for coursework and keep getting the same error codes. I have seen other threads and followed the advice, multiple reinstalls and updates later. Anyone have a resolution or suggestion?
Thanks in advance!!
Mac Air with M3 chip
macOS Sequoia 15.5
Warning in install.packages :
error in running command
sh: tar: command not found
Warning in install.packages :
'tar' returned non-zero exit code 127
rror in install.packages : file ‘/var/folders/w0/h2zqb0l13qq47y09qxfpwy_40000gn/T//RtmpPEoiYb/downloaded_packages/pkgconfig_2.0.3.tgz’ is not a macOS binary package
Seems like tar is not part of macOS any more? It is probably included in the XCode Command Line Tools, which you will need later anyway, so I would try installing that.
Hmm, I have a cleanly installed macOS 15.5 system (without any dev tools or anything else installed yet) and it has tar (/usr/bin/tar -> bsdtar) so it's odd that your system is missing this (or maybe the path is messed up?).
I dont understand what I could have done to have affected the programme - Thanks for your help!!
tar(bsdtar): manipulate archive files
First option must be a mode specifier:
-c Create -r Add/Replace -t List -u Update -x Extract
Common Options:
-b # Use # 512-byte records per I/O block
-f Location of archive
-v Verbose
-w Interactive
Create: tar -c [options] [ | | @ | -C ]
, add these items to archive
-z, -j, -J, --lzma Compress archive with gzip/bzip2/xz/lzma
--format {ustar|pax|cpio|shar} Select archive format
--exclude Skip files that match pattern
-C Change to before processing remaining files
@ Add entries from to output
List: tar -t [options] []
If specified, list only entries that match
Extract: tar -x [options] []
If specified, extract only entries that match
-k Keep (don't overwrite) existing files
-m Don't restore modification times
-O Write entries to stdout, don't restore to disk
-p Restore permissions (including ACLs, owner, file flags)
bsdtar 3.5.3 - libarchive 3.7.4 zlib/1.2.12 liblzma/5.4.3 bz2lib/1.0.8
x
I installed it directly from the website, nothing special. Followed the instructions and have been running into this issue since install. I have both of these files under /Users//.Renviron