kingToolbox / kingToolbox/WindTerm

Strange Error on Apple M2

Open
#1,600 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
32.3k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

The terminal worked, but failed to load my shell startup configuration.

The error message is as below:
```
ERROR: dlopen(/opt/homebrew/Cellar/modules/5.2.0/lib/libtclenvmodules.dylib, 0x000A): tried: '/opt/homebrew/Cellar/modules/5.2.0/lib/libtclenvmodules.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/modules/5.2.0/lib/libtclenvmodules.dylib' (no such file), '/opt/homebrew/Cellar/modules/5.2.0/lib/libtclenvmodules.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
while executing
"load [file normalize [getConf tcl_ext_lib]] Envmodules"
:...skipping...
ERROR: dlopen(/opt/homebrew/Cellar/modules/5.2.0/lib/libtclenvmodules.dylib, 0x000A): tried: '/opt/homebrew/Cellar/modules/5.2.0/lib/libtclenvmodules.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/opt/homebrew/Cellar/modules/5.2.0/lib/libtclenvmodules.dylib' (no such file), '/opt/homebrew/Cellar/modules/5.2.0/lib/libtclenvmodules.dylib' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
while executing
"load [file normalize [getConf tcl_ext_lib]] Envmodules"
Please report this issue at https://github.com/cea-hpc/modules/issues
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure on an Apple M2 system and inspect how the terminal loads the shell startup configuration and the reported libtclenvmodules.dylib. Done means the startup configuration loads without the incompatible arm64/x86_64 library error.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, shell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.