I downloaded and installed basel following the guide from the page, installer link is https://github.com/bazelbuild/bazel/releases/download/0.2.0/bazel-0.2.0-installer-linux-x86_64.sh.

After install when I run basel, output is:

/usr/local/bin/bazel: line 86: /usr/local/lib/bazel/bin/bazel-real: No such file or directory

Line 86 of "/usr/local/bin/bazel" is:

exec -a "$0" "${BAZEL_REAL}" "$@"

But /usr/local/lib/bazel/bin/bazel-real exists:

ll /usr/local/lib/bazel/bin/bazel-real
-rwxr-xr-x 1 root root 103M Jan  1  1980 /usr/local/lib/bazel/bin/bazel-real

file /usr/local/lib/bazel/bin/bazel-real
/usr/local/lib/bazel/bin/bazel-real: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[md5/uuid]=51e0bd3d3319cc75ae66be80be63ac4e, not stripped


ldd /usr/local/lib/bazel/bin/bazel-real     
    not a dynamic executable

My linux version:

uname -r
  • output is "not a dynamic executable"
    – Tinyfool
    Mar 14, 2016 at 0:49
  • For anybody else who wants to take a crack at this, here's what I got: paste.ubuntu.com/15381599
    – muru
    Mar 14, 2016 at 1:21
  • I was testing on Arch Linux system, so the ldd output for Ubuntu would be different. Here's one from 14.04: paste.ubuntu.com/15381696 Sorry about the mixup.
    – muru
    Mar 14, 2016 at 1:37
  • which user are you running this program with and which rights has the '/usr/local/lib/bazel/bin/bazel-real' file?
    – syss
    Mar 16, 2016 at 15:38
  • @syss root, and -rwxr-xr-x 1 root root
    – Tinyfool
    Mar 17, 2016 at 12:26

1 Answer 1


As I cannot reproduce your problem on Trusty Tahr, and in fact I have installed bazel with absolutely no issue, I will give here the steps I took to produce a working copy. Hopefully in reading this you may see where you may have gone wrong...


bazel is officially supported on Trusty Tahr and Wily Werewolf only at the moment and prerequisites are slightly different for each:

  1. On Trusty Tahr OpenJDK 8 is not available and can be installed from this PPA:

    sudo add-apt-repository ppa:webupd8team/java
    sudo apt-get update
    sudo apt-get install oracle-java8-installer
  2. On Wily Werewolf you will need the following:

    sudo apt-get install openjdk-8-jdk pkg-config zip g++ zlib1g-dev unzip

Note that I have tested on Trusty Tahr only...


Then for either Ubuntu release create a build directory and download the install file to it:

mkdir $HOME/Desktop/bazel_build && cd $HOME/Desktop/bazel_build
wget https://github.com/bazelbuild/bazel/releases/download/0.2.0/bazel-0.2.0-installer-linux-x86_64.sh

Set the permissions and then install to the default /usr/local:

chmod +x bazel-0.2.0-installer-linux-x86_64.sh
sudo ./bazel-0.2.0-installer-linux-x86_64.sh


And then run bazel as follows:

andrew@corinth:~$ /usr/local/bin/bazel version
Build label: 0.2.0
Build target: bazel-out/local_linux-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Tue Feb 23 13:08:29 2016 (1456232909)
Build timestamp: 1456232909
Build timestamp as int: 1456232909

Hopefully you can see any shortcomings in your own build when observing this trouble free installation...


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .