I have llvm-6.0 and i=I don't know how to download and install llvm-7.0 on Ubuntu 18.04? Can I install it from terminal or I download from a site?
There are basically two ways to install LLVM on your Ubuntu 18.04 machine:
Source
Binary
Considering your question, it seems you would like to have a binary version of LLVM. Therefore you can install LLVM from your Ubuntu 18.04 terminal as following:
First of all, you should update packages as following:
sudo apt-get update
However, for custom LLVM i.e. in your case LLVM 7:
sudo apt-get install -y llvm-7
sudo apt-get install -y llvm-7 llvm-7-dev llvm-7-tools clang-7
Do you want some LLVM-7 examples?
sudo apt-get -y install llvm-7-examples
Do you want to remove LLVM-6?
sudo apt-get purge llvm-6.0 clang-6.0
sudo add-apt-repository --remove ppa:kxstudio-team/builds
For default LLVM installation you should run following (not for your case):
sudo apt install llvm
For detail packages please check LLVM Ubuntu nightly packages
However, currently the last version of LLVM is LLVM 13.0. 1. It is better to install the latest version.
i need pypy compatible to python3(for django2.0) on centos 7
Portable version and ubuntu version not work, centos have only 2.7 pypy
question is how to get python3 compatible result?
I got 2.7-compatible tree when i get source like this
hg clone http://bitbucket.org/pypy/pypy pypy
pypy get-pip.py
/usr/lib64/pypy-5.0.1/bin/pip install virtualenv
pypy -m virtualenv /tmp/pypy27_venv/
source /tmp/pypy27_venv/bin/activate
pip install -r pypy/requirements.txt
cd /usr/src/pypy/pypy/goal
pypy ../../rpython/bin/rpython --opt=jit
After build compleate i get
/tmp/usession-default-19/build/pypy-3-centos7/bin/pypy
Python 2.7.13 (0873ec79aa36, Jan 19 2019, 13:33:23) [PyPy 6.1.0-alpha0 with GCC
4.8.5 20150623 (Red Hat 4.8.5-36)] on linux2
Okay, found.
Docs not say, but for python3 compatible tree need get pypy3-v6.0.0-src.tar.bz2 from
https://bitbucket.org/pypy/pypy/downloads/
cd /usr/src/
wget -c https://bitbucket.org/pypy/pypy/downloads/pypy3-v6.0.0-src.tar.bz2
tar -xjf pypy3-v6.0.0-src.tar.bz2
pypy=/usr/src/pypy3-v6.0.0-src/
yum -y install gcc make libffi-devel pkgconfig zlib-devel bzip2-devel \
sqlite-devel ncurses-devel expat-devel openssl-devel tk-devel \
gdbm-devel python-cffi\
xz-devel
yum install pypy -y
pypy get-pip.py
/usr/lib64/pypy-5.0.1/bin/pip install virtualenv
pypy -m virtualenv /tmp/pypy27_venv/
source /tmp/pypy27_venv/bin/activate
pip install -r ${pypy}/requirements.txt
cd ${pypy}/pypy/goal
pypy ../../rpython/bin/rpython --opt=jit
I have installed the latest clang-6.0 using the instructions from here:
install latest clang (6.0) on Ubuntu 16.04 (xenial) / WSL. Basically, these are the steps:
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add -
sudo apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main"
sudo apt-get update
sudo apt-get install -y clang-6.0
It was successful but while checking for the version I'm getting the following error
❯ clang --version
⏎
zsh: permission denied: clang
What's the issue here and how to resolve this?
The way you are installing, the clang binary is being installed at /usr/bin/clang-6.0. However, you are trying to run clang --version. This is likely to avoid clobbering in case you have multiple versions of clang installed.
You have 2 options:
Install clang without the version, apt-get install clang, which should still install clang 6 since it is in your package list.
Use the binary by the correct name, clang-6.0 --version
I tested this out using the following Dockerfile:
FROM ubuntu:16.04
# Install software we need to test
RUN apt-get update && apt-get install -y \
software-properties-common \
wget \
zsh
# Get clang-6.0 package
RUN wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
apt-add-repository "deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main"
# Install clang-6.0 package
RUN apt-get update && apt-get install -y \
clang-6.0
# Default to shell
ENTRYPOINT ["zsh"]
I get the output:
# which clang
clang not found
# which clang-6.0
/usr/bin/clang-6.0
Using zypper, is there some way to install a version using the a wildcard or something similar?
# zypper install A=0.13.*
Loading repository data...
Reading installed packages...
'A=0.13.*' not found in package names. Trying capabilities.
No provider of 'A=0.13.*' found.
Resolving package dependencies...
Nothing to do.
Or is there a way to search on the version and have it piped into a zypper install (without writing a shell script)?
# zypper se A=0.13
Loading repository data...
Reading installed packages...
No packages found.
# zypper se 'A=0.13*'
Loading repository data...
Reading installed packages...
No packages found.
Yum supports "yum install A=0.13.*". It seems that zypper should be able to too.
(SUSE Linux Enterprise Server 12, zypper 1.11.14)
Search for YaST packages (quote the string to prevent the shell
from expanding the wildcard):
$ zypper se 'yast*'
you just have to use quotes =)
I've installed the boost libraries on Linux Mint 12 using the command sudo apt-get install libboost-dev libboost-doc, which installs the default version available in the repositories. However, the project I have to do needs the 1.44 version of boost. How do I uninstall the default (current) version 1.46 and install 1.44?
I couldn't find the documentation on the boost website to install boost from the .tar.gz package.
Boost can installed by two ways
Deb package
wget and install manually
In some case we might have installed by both type which can cause version error. Lets see how to uninstall both.
sudo apt-get update
# to uninstall deb version
sudo apt-get -y --purge remove libboost-all-dev libboost-doc libboost-dev
# to uninstall the version which we installed from source
sudo rm -f /usr/lib/libboost_*
Then we need to install other dependencies if they are not met
sudo apt-get -y install build-essential g++ python-dev autotools-dev libicu-dev libbz2-dev
Lets download the boost version which we need from the link. I am downloading the 1.54 version. Then untar and install it.
# go to home folder
cd
wget http://downloads.sourceforge.net/project/boost/boost/1.54.0/boost_1_54_0.tar.gz
tar -zxvf boost_1_54_0.tar.gz
cd boost_1_54_0
# get the no of cpucores to make faster
cpuCores=`cat /proc/cpuinfo | grep "cpu cores" | uniq | awk '{print $NF}'`
echo "Available CPU cores: "$cpuCores
./bootstrap.sh # this will generate ./b2
sudo ./b2 --with=all -j $cpuCores install
Now let's check the installed version
cat /usr/local/include/boost/version.hpp | grep "BOOST_LIB_VERSION"
You will see something like below
// BOOST_LIB_VERSION must be defined to be the same as BOOST_VERSION
#define BOOST_LIB_VERSION "1_54"
Version 1.54 of boost is installed
That's it, it worked for me. Let me know if you face any issues.
You can uninstall with
apt-get --purge remove libboost-dev libboost-doc
Download the package you need from boost website, extract and follow "getting started" instructions found inside index.html in the extracted directory.
Tested working Ubuntu 20.04 Use my script to uninstall your older version of boost in ubuntu 20.04 and follow rams instructions above
#!/bin/bash
sudo apt-get -y --purge remove libboost-all-dev libboost-doc libboost-dev
echo "clear boost dir"
sudo rm -r /usr/local/lib/libboost*
sudo rm -r /usr/local/include/boost
sudo rm -r /usr/local/lib/cmake/*
sudo rm -f /usr/lib/libboost_*
sudo rm -r /usr/include/boost
Downgrade your boost version. I'm not familiar with Mint, but assuming it is deb-based, you can do:
apt-cache show libboost-dev
to see all installable version and install a specific version with
sudo apt-get install libboost-dev=1.42.0.1
There are also convenience packages for the major boost versions:
sudo apt-get install libboost1.44-dev
As #savamane wrote you can uninstall it with
apt-get --purge remove libboost-dev libboost-doc
Another suggestion to install the .deb packages as suggested here. (Download the one fitted for your architecture though).
For still supported distros, you can simply search for the package at the distributions at http://packages.ubuntu.com/. For example libboost-system1.46.1 can be found in under the precise -> Libraries tab.
For unsupported distros, there is still a chance to find them at
http://archive.ubuntu.com/. For example can libboost-all-dev_1.40.0.1_amd64.deb be found in
http://archive.ubuntu.com/ubuntu/pool/universe/b/boost-defaults/.
This is how you install a specific Boost version:
cd boost_1_54_0/
./bootstrap.sh --with-libraries=atomic,date_time,exception,filesystem,iostreams,locale,program_options,regex,signals,system,test,thread,timer,log
sudo ./b2 install