Whenever I try to run screen under a Zsh shell that I compiled under my home directory, I get the following error:
> screen
Cannot exec '/my/path/to/zsh/bin/zsh'
The Z shell is perfectly functional, and I have verified that I can run screen if I invoke it using a system shell (e.g. csh). I usually get into zsh with: exec zsh. Here is some additional info about my system:
> echo $SHELL
/my/path/to/zsh/bin/zsh
> echo $ZSH_VERSION
5.0.0
> which screen
/usr/bin/screen
> screen --version
Screen version 4.00.03 (FAU) 23-Oct
My .screenrc just has two lines in it:
escape ^A^A
bind o other
In case it matters: /my/path/to/zsh/ refers figuratively to a path under my home directory.
Update
Output of calling
file:> file /my/path/to/zsh/bin/zsh > /~/sw/zsh/bin/zsh: ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for > GNU/Linux 2.6.9, dynamically linked (uses shared libs), > for GNU/Linux 2.6.9, strippedBut I can successfully run
/my/path/to/zsh/bin/zshand enterzshfrom mycshshell. I usually switch to zsh withexec /my/path/to/zsh/bin/zshBelow are the
lsdetails on/my/path/to/zsh/bin/zsh-rwxr-xr-x 2 YYYY ZZZZ 651K Jan 3 11:58 zsh*Mi
.loginis empty (it only has comments on it)- I don't have a
.profilefile cat/etc/*-release:Scientific Linux SL release 5.1 (Boron)
Any thoughts on what may be causing this and how to get screen to work with my local installation of zsh?
/my/path/to/zsh/bin/zshotherwise (with full path)? Is/my/path/to/zsh/bin/zshby any chance a wrapper script with no she-bang line or an invalid she-bang line? – Stephane Chazelas Feb 20 at 23:27file /my/path/to/zsh/bin/zshandls -l /my/path/to/zsh/bin/zsh /usr/bin/screen. Are you settingLD_LIBRARY_PATHanywhere? Is this a 32-bit or 64-bit installation, or mixed? – Gilles Feb 21 at 1:41my/path/to/zsh/bin/zshin your home, it has to be/home/you-the-user/my/path/to/zsh/bin/zsh. If you give a path to a file starting with/that starts at/, always. If it doesn't start with/, it starts at the current directory (~expands to the home of the user, so an alternative could be~/my/path/to/zsh/bin/zsh. – vonbrand Feb 21 at 3:09file /my/path/to/zsh/bin/zshandls -l /my/path/to/zsh/bin/zshare inconsistent. Please copy-paste the real session transcripts, and provide more information about your environment: processor type, unix variant, distribution, anything peculiar about your installation; also how you configured and installed zsh, and anything relevant in your.login,.profile,.cshrc,.zshrc(if in doubt, post everything). – Gilles Feb 21 at 19:41