Perl and ldapsearch errors when running codex inside mamba/conda environment
What version of Codex is running?
codex-cli 0.77.0
What subscription do you have?
chatgpt plus
Which model were you using?
gpt-5.2-codex
What platform is your computer?
Linux 4.18.0-553.33.1.el8_10.x86_64 x86_64 x86_64
What issue are you seeing?
When running codex inside an activated mamba/conda environment, I get Perl local::lib and ldapsearch errors on startup. The errors do NOT occur when running codex outside of the conda environment.
$ mamba activate base
(base) $ codex
Errors appear immediately
### Error Output
• You ran ls
└ Attempting to create directory /tools/perl5/modules
Unable to create /tools/perl5/modules/lib/perl5/5.32.1: No such file or directory at /work/user/ggong/miniforge3/lib/perl5/site_perl/local/lib.pm line 721.
BEGIN failed--compilation aborted.
ldapsearch: invalid option -- 'h'
ldapsearch: unrecognized option -h
usage: ldapsearch [options] [filter [attributes...]]
where:
filter RFC 4515 compliant LDAP search filter
attributes whitespace-separated list of attribute descriptions
which may include:
1.1 no attributes
- all user attributes
- all operational attributes
Search options:
-a deref one of never (default), always, search, or find
-A retrieve attribute names only (no values)
-b basedn base dn for search
-c continuous operation mode (do not stop on errors)
-E [!]<ext>[=<extparam>] search extensions (! indicates criticality)
[!]accountUsability (NetScape Account usability)
[!]domainScope (domain scope)
!dontUseCopy (Don't Use Copy)
[!]mv=<filter> (RFC 3876 matched values filter)
[!]pr=<size>[/prompt|noprompt] (RFC 2696 paged results/prompt)
… +352 lines
dlist
Documents
Downloads
What steps can reproduce the bug?
$ mamba activate base
(base) $ codex
!ls
What is the expected behavior?
_No response_
Additional information
_No response_