Skip to content

invalid $HOME dir used on OSX? #54

@ClausKlein

Description

@ClausKlein
bash-3.2$ wget "https://github.com/aminya/setup-cpp/releases/download/v0.13.0/setup_cpp_mac"
--2022-04-24 18:26:41--  https://github.com/aminya/setup-cpp/releases/download/v0.13.0/setup_cpp_mac
Auflösen des Hostnamens github.com (github.com)… 140.82.121.4
Verbindungsaufbau zu github.com (github.com)|140.82.121.4|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 302 Found
Platz: https://objects.githubusercontent.com/github-production-release-asset-2e65be/406308261/bfdce48f-687f-480a-b19f-89ac66d15973?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220424%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220424T162641Z&X-Amz-Expires=300&X-Amz-Signature=52c1a545655cdff667b66f3669de059dfa95df4fea31f69aeb4f524b6e177e81&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=406308261&response-content-disposition=attachment%3B%20filename%3Dsetup_cpp_mac&response-content-type=application%2Foctet-stream [folgend]
--2022-04-24 18:26:41--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/406308261/bfdce48f-687f-480a-b19f-89ac66d15973?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220424%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220424T162641Z&X-Amz-Expires=300&X-Amz-Signature=52c1a545655cdff667b66f3669de059dfa95df4fea31f69aeb4f524b6e177e81&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=406308261&response-content-disposition=attachment%3B%20filename%3Dsetup_cpp_mac&response-content-type=application%2Foctet-stream
Auflösen des Hostnamens objects.githubusercontent.com (objects.githubusercontent.com)… 185.199.108.133, 185.199.109.133, 185.199.110.133, ...
Verbindungsaufbau zu objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443 … verbunden.
HTTP-Anforderung gesendet, auf Antwort wird gewartet … 200 OK
Länge: 29593873 (28M) [application/octet-stream]
Wird in »setup_cpp_mac« gespeichert.

setup_cpp_mac                                  100%[=================================================================================================>]  28,22M  6,30MB/s    in 4,7s    

2022-04-24 18:26:47 (6,05 MB/s) - »setup_cpp_mac« gespeichert [29593873/29593873]

bash-3.2$ chmod +x setup_cpp_mac 
bash-3.2$ sudo ./setup_cpp_mac --compiler llvm-14.0.0
Password:
::group::Installing llvm 14.0.0
Installing llvm 14.0.0 x64 via direct downloading

::set-output name=version::14.0.0
Download and extract llvm 14.0.0
::debug::Downloading https://github.com/llvm/llvm-project/releases/download/llvmorg-14.0.0/clang+llvm-14.0.0-x86_64-apple-darwin.tar.xz
::debug::Destination /tmp/347b2dd2-f1ba-4a58-8494-c6be266b67a7
::debug::download complete
tar: could not chdir to '/home/clausklein/llvm'

Add /home/clausklein/llvm/bin to PATH
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Failed to add /home/clausklein/llvm/bin to the percistent PATH. You should add it manually.
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Failed to export environment variable LLVM_PATH=/home/clausklein/llvm. You should add it manually.
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Failed to export environment variable LD_LIBRARY_PATH=/home/clausklein/llvm/lib:. You should add it manually.
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Failed to export environment variable DYLD_LIBRARY_PATH=/home/clausklein/llvm/lib:. You should add it manually.
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Failed to export environment variable LDFLAGS=-L/home/clausklein/llvm/lib. You should add it manually.
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Failed to export environment variable CPPFLAGS=-I/home/clausklein/llvm/include. You should add it manually.
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Failed to export environment variable CC=/home/clausklein/llvm/bin/clang. You should add it manually.
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Failed to export environment variable CXX=/home/clausklein/llvm/bin/clang++. You should add it manually.
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Failed to export environment variable LIBRARY_PATH=/home/clausklein/llvm/lib. You should add it manually.
[command]/usr/bin/xcrun --sdk macosx --show-sdk-path
2022-04-24 18:30:48.649 xcodebuild[22971:13218588] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-04-24 18:30:48.649 xcodebuild[22971:13218588] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-04-24 18:30:52.989 xcodebuild[22973:13218640] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-04-24 18:30:52.989 xcodebuild[22973:13218640] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Error: ENOENT: no such file or directory, open '/home/clausklein/.cpprc'
Failed to export environment variable SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.3.sdk. You should add it manually.
::endgroup::
took 1 minute, 40 seconds
✅ llvm was installed successfully:
- The installation directory is /home/clausklein/llvm
- The binary directory is /home/clausklein/llvm/bin
setup_cpp finished
Run `source ~/.cpprc` or restart your shell to update the environment.
bash-3.2$ echo $HOME
/Users/clausklein
bash-3.2$ 

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions