Skip to content
Discussion options

You must be logged in to vote

And solving my own problem...

For anyone's future reference, if this is picked up by search; then:

  • Create a custom file in /home/linuxbrew/.linuxbrew/etc/ld.so.conf.d specifying the 3rd party software's "nss" library
  • brew postinstall glibc

bash now resolves username correct in PS1 prompt.

The question about glibc linking was due to a misinterpretation of ldd; best to ensure homebrew's glibc/bin is on the path to ensure homebrew's ldd is used:

export PATH="/homebrew/linuxbrew/.linuxbrew/bin:$PATH"

Better looking ldd output now:

$ ldd `which bash`
	linux-vdso.so.1 (0x00007ffe8c9b3000)
	libreadline.so.8 => /home/linuxbrew/.linuxbrew/opt/readline/lib/libreadline.so.8 (0x00007f417f286000)
	…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jamesrtnz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Linux
Labels
None yet
1 participant