diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2021-05-26 23:58:29 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2021-05-26 23:58:29 +0530 |
commit | bfd3a825c2d73bd842769cdfaf11ad0319a3bd6e (patch) | |
tree | 7b2c052bdf539f433ed3ab6bd133b6d46c7ff7e5 /Content/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.md | |
parent | 2cb28c0dd749611e6edd4688955769bda3381453 (diff) |
added code and content
Diffstat (limited to 'Content/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.md')
-rw-r--r-- | Content/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.md | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Content/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.md b/Content/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.md new file mode 100644 index 0000000..c3599e2 --- /dev/null +++ b/Content/posts/2020-04-13-Fixing-X11-Error-AmberTools-macOS.md @@ -0,0 +1,38 @@ +--- +date: 2020-04-13 11:41 +description: Fixing Could not find the X11 libraries; you may need to edit config.h, AmberTools macOS Catalina +tags: Molecular-Dynamics, macOS +--- + +# Fixing X11 Error on macOS Catalina for AmberTools 18/19 + +I was trying to install AmberTools on my macOS Catalina Installation. Running `./configure -macAccelerate clang` gave me an error that it could not find X11 libraries, even though `locate libXt` showed that my installation was correct. + +Error: + +``` +Could not find the X11 libraries; you may need to edit config.h + to set the XHOME and XLIBS variables. +Error: The X11 libraries are not in the usual location ! + To search for them try the command: locate libXt + On new Fedora OS's install the libXt-devel libXext-devel + libX11-devel libICE-devel libSM-devel packages. + On old Fedora OS's install the xorg-x11-devel package. + On RedHat OS's install the XFree86-devel package. + On Ubuntu OS's install the xorg-dev and xserver-xorg packages. + + ...more info for various linuxes at ambermd.org/ubuntu.html + + To build Amber without XLEaP, re-run configure with '-noX11: + ./configure -noX11 --with-python /usr/local/bin/python3 -macAccelerate clang +Configure failed due to the errors above! +``` + + +I searched on Google for a solution. Sadly, there was not even a single thread which had a solution about this error. + +## The Fix + +Simply reinstalling XQuartz using homebrew fixed the error `brew cask reinstall xquartz` + +If you do not have XQuartz installed, you need to run `brew cask install xquartz` |