bazel 0.21.0 install from installer fails on ubuntu 18.04.1 - tensorflow

I want to install tensorflow-1.13.0-rc2.
But when I want to install bazel 0.21.0 on ubuntu 18.04.1, the steps I take don't work.
At the directory of my installer, I run:
$sudo apt-get install pkg-config zip g++ zlib1g-dev unzip
$chmod +x bazel-0.21.0-installer-linux-x86_64.sh
$./bazel-0.21.0-installer-linux-x86_64.sh --user
Then I edit the bashrc file by adding this:
export PATH="$PATH:$HOME/bin"
(Then I save the file and run the shell; afterwards, I restart the terminal of ubuntu.)
The above steps follow this link.
Finally when I run
bazel version
terminal gives me
Command 'bazel' not found, did you mean:
command 'babel' from deb openbabel
Try: sudo apt install
Please help, thanks.

After carefully watch the differences between my steps and official website....
I don't know why but I found that
$sudo apt-get install pkg-config zip g++ zlib1g-dev unzip
is wrong.
$sudo apt-get install pkg-config zip g++ zlib1g-dev unzip python
is the correct one.
Re-run those steps, and bazel 0.21.0 is indeed installed.

Related

package installation into singularity

I have singularity-ce version 3.10.2 on ubuntu 20.02. I am trying to install python package. It always says
Singularity> apt-get -y update
bash: apt-get: command not found
I already have python on my local computer. How can I resolve this?

Is Scrapy compatible with Python 3.8 on ubuntu?

While i am try to install scrapy on ubuntu mechine using
**pip install scrapy**
it's not going to workout.
can anyone suggest us?
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
In the documentation, it was mentioned that to install scrapy in a venv on ubuntu based os, we need to install these dependencies sudo apt-get install python3 python3-dev python3-pip libxml2-dev libxslt1-dev zlib1g-dev libffi-dev libssl-dev

Watchman installation error

I started installing all I need according to react-native Get Started guide.
I installed Watchman and according to there guide.
I got following error while running ./configure command.
arafath#dell-pc:~/watchman$ ./configure
bash: ./configure: No such file or directory
OS - UBUNTU 16.04
I have succeeded in installing following things.
sudo apt-get install -y autoconf automake build-essential python-dev libssl-dev libtool

Install error when bazel is built for syntaxnet

I am trying to run Syntaxnet on my computer but got stuck at the part of bazel installation.
When i executed "bazel test syntaxnet/... util/utf8/...", all test targets were skipped.
The error codes are as below.
Thanks.
Seems like zlib is missing. On Ubuntu just:
sudo apt-get install zlib1g-dev
and then retry installation.
It seems you missed a step for the bazel's installation; try this:
sudo apt-get install pkg-config zip g++ zlib1g-dev unzip

Phalcon install give error on ubuntu [duplicate]

I'm just finished installing Ubuntu 13.10.
I want try Phalcon, and when I build the source (phalcon.so), I have this error :
from /home/fabrice/Downloads/cphalcon/build/32bits/phalcon.c:204:
/usr/include/php5/ext/pcre/php_pcre.h:29:18: fatal error: pcre.h: No such file or directory
#include "pcre.h"
^
compilation terminated.
make: *** [phalcon.lo] Erreur 1
My installation of lamp is :
sudo apt-get install -y apache2 php5 mysql-server libapache2-mod-php5
php5-mysql php5-curl php5-imagick php5-mcrypt php5-memcache
php5-sqlite php5-xdebug php-apc php5-intl php-mongo php5-dev gcc
Can anybody help me ?
The latest version of Phalcon uses PCRE libraries.
You can install them like so:
sudo apt-get install libpcre3-dev
and then try and install Phalcon again
For CentOS you will need to use
sudo yum install pcre-devel
Credits: #xgretsch
For Mac you can use
brew install pcre
Credits #Brandon Romano
For Mac without brew
Go to https://www.pcre.org/ and download latest pcre:,
tar -xzvf pcre-8.42.tar.gz
cd pcre-8.42
./configure --prefix=/usr/local/pcre-8.42
make
make install
ln -s /usr/local/pcre-8.42 /usr/sbin/pcre
ln -s /usr/local/pcre-8.42/include/pcre.h /usr/include/pcre.h
Credits #user1377324
For mac osx maverick you can use
brew install pcre
if it gives you error, you can use
sudo ln -s /opt/local/include/pcre.h /usr/include/
sudo pecl install apc
I have installed pcre via homebrew in Big Sur, so linked as:
sudo ln -s /opt/homebrew/include/pcre2.h /usr/local/include/
To include pcre.h file, search the package archives for the pcre.h file.
To do this I use a command called apt-file (
apt-get install apt-file
and
apt-file update
if you don’t have it installed).
Then search for the pcre package:
apt-file search -x "/pcre.h$"
The -x informs the command that I want to use a regular expression as the pattern. apt-file provided me with three hits:
kannel-dev: /usr/include/kannel/gwlib/pcre.h
libajax6-dev: /usr/include/ajax/pcre.h
libpcre3-dev: /usr/include/pcre.h
The last one is the one I want:
apt-get install libpcre3-dev
This will solve the problem with pcre.h file compilation problem. Hope it will help others, who may come to find an answer to this thread.
For MacOS monterey amd64 (darwin), it is necessary to create a symlink.
First, locate where the pcre.h was installed by Brew:
$ brew list pcre | grep 'pcre\.h$'
/opt/homebrew/Cellar/pcre/8.45/include/pcre.h
Then, gets the directory that GCC is looking for header (.h) files:
$ cpp -v
...
#include <...> search starts here:
/Library/Developer/CommandLineTools/usr/lib/clang/13.0.0/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
/Library/Developer/CommandLineTools/usr/include # <---- we are going to use this one
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory)
Finally, create a symlink to the pcre.h file, so that GCC will find it in its search path:
ln -s /opt/homebrew/Cellar/pcre/8.45/include/pcre.h \
/Library/Developer/CommandLineTools/usr/include/pcre.h
To test if it worked, we can use the following C code:
#include <stdio.h>
#include <pcre.h>
int main() {
printf("lala popo");
return 0;
}
And run:
gcc test.c -o test
πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰πŸŽ‰
Using macOS Monterey 12.6 on an M1 Pro MacBook Pro, here are the steps necessary to install outh extension for PHP 8.1 using brew:
brew install pcre
brew install pcre2
sudo ln -s /opt/homebrew/include/pcre.h /usr/local/include/
sudo ln -s /opt/homebrew/include/pcre2.h /usr/local/include/
sudo pecl install oauth