Fail to build trino in Ubuntu 20.04 - presto

When I used this command./mvnw clean install -DskipTests,
result
Then I used this command./mvnw -pl '!trino-docs' clean install -DskipTests,
result

Related

How to install google-cloud-bigquery on python-alpine based docker?

I'm trying to build a docker with python 3 and google-cloud-bigquery with the following docker file:
FROM python:3.10-alpine
RUN pip3 install google-cloud-bigquery
WORKDIR /home
COPY *.py /home/
ENTRYPOINT ["python3", "-u", "myscript.py"]
But getting errors on the pip3 install google-cloud-bigquery (too long for here)..
What's missing for installing this on python-alpine?
Looks like an incompatibility issue with the latest version of google-cloud-bigquery (>3) and numpy:
ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
Try specifying a previous version, this works for me:
RUN pip3 install google-cloud-bigquery==2.34.4
Actually it seems like not a problem with numpy, which builds smoothly with all the dependency libs install, but rather with pyarrow, which does not support alpine+pip build. I've found a workaround by using alpine pre-built version of pyarrow. It is much easier than building pyarrow from source. This build works for me just fine:
FROM python:3.10.6-alpine3.16
RUN apk add --no-cache build-base linux-headers \
py3-apache-arrow=8.0.0-r0
# Copying pyarrow to site-package of actual python path. Alpine python path
# and python's docker hub path are different.
RUN mv /usr/lib/python3.10/site-packages/* \
/usr/local/lib/python3.10/site-packages/
RUN rm -rf /usr/lib/python3.10
RUN --mount=type=cache,target=/root/.cache/pip \
pip install google-cloud-bigquery==3.3.2
Update python version, alpine version and py3-apache-arrow version to install later versions. This is the latest one on the time of writing.
And make sure to remove build dependencies (build-base, linux-headers) for your release docker. I prefer multistage dockers for this.

Cypress Test Issue in debian

I have installed Cypress in Debian. When I am trying to check its version or I am trying to execute any test cases then I am getting this error:
Command 'cypress' not found, did you mean:
command 'cmpress' from deb infernal (1.1.4-1)
Try: sudo apt install <deb name>
downgrade the cypress by running npm install cypress#7.6.0

"g++: error: unrecognized command line option ‘-std=gnu++14’" with gcc version 9.3.0

I have the CentOS Linux release 7.9.2009 (Core) running in the VirtualBox, which was build by the Vagrant 2.2.19 and the Ansible 2.9.25 installed all the depedencies. On the machine there are installed:
gcc 9.3.0
python 3.6.8
node.js 16.13.1
npm 8.1.2
When the ansible executes the npm install I get errored with the g++: error: unrecognized command line option ‘-std=gnu++14’. I saw many questions here on the Stackoverflow, where the answers told me to upgrade the gcc to version >= 4.9. But I already have that and I'm still getting an error.
However, there is a workaround, which allows me to run the npm install:
sudo yum install -y centos-release-scl
sudo yum install -y devtoolset-9-gcc*
scl enable devtoolset-9 bash
npm install
but I have to run this manually, after I'm logged into the CentOS by the vagrant ssh. I'm not satisfied with this workaround because it is manual and the npm istall must be run programatically, hence it doesn't solve my problem.
I have tried to execute the npm install inside the scl from the ansible playbook.yml:
- name: Install centos-release-scl
shell: yum install -y centos-release-scl
become: yes
- name: Install devtoolset-9
shell: yum install -y devtoolset-9-gcc*
become: yes
- name: install packages based on package.json
shell: |
scl enable devtoolset-9 bash
npm install
become: yes
but it didn't work.
Is there a way how can I run the npm install programatically by the ansible without getting error?
You can stick with gcc 4.8.5 but downgrading to NodeJS 14 (as pointed out in https://github.com/systemd/node-sd-notify/issues/29#issuecomment-1040909033).
Note: You can download NodeJS 14 at https://github.com/nodesource/distributions/blob/master/README.md#enterprise-linux-based-distributions
For CentOS run this.
yum install gcc-c++
Then Install cmake.
yum install cmake
Then run.
yum install centos-release-scl
Install devtoolset.
yum install devtoolset-8-gcc devtoolset-8-gcc-c++
Enable devtoolset.
scl enable devtoolset-8 -- bash

libcouchbase not instaling on Red Hat Enterprise Linux Server release 6.6

Following the documentation for RHEL/CentOS, this is how I try to install libcouchbase:
wget http://packages.couchbase.com/releases/couchbase-release/couchbase-release-1.0-6-x86_64.rpm
sudo rpm -iv couchbase-release-1.0-6-x86_64.rpm
sudo yum install libcouchbase-devel libcouchbase2-bin gcc gcc-c++
However libcouchbase-devel and libcouchbase2-bin fail with:
Running rpm_check_debug
Running Transaction Test
Transaction Check Error:
file /usr/lib64/libcouchbase.so.2.0.65 conflicts between attempted installs of libcouchbase-2.10.3-1.el6.remi.x86_64 and libcouchbase2-core-2.10.3-1.el6.x86_64
Error Summary
-------------
I tried installing those packages one at a time but, if I install libcouchbase-devel first it succeeds and libcouchbase2-bin fail. If I remove what I installed and do libcouchbase2-bin first it succeeds, but thenlibcouchbase-devel` fails.
This clearly points to a conflict somewhere, but I am unsure what this conflict is exactly
I removed all packages that have couchbase in their name: yum remove packagename
Then, yum install libcouchbase libcouchbase-devel

How to install libvips with mozjpeg and libimagequant on Debian/Ubuntu?

I want to build a server for treat all images of a website.
I have a script in Nodejs using Sharp and I would like to setup the server with the best libs to use maximum power of libvips.
I would like to get help to install it.
I can install libvips-dev using:
apt-get install libvips-dev
But it don't have mozjpeg and libimagequant.
To install libimagequant through apt you should have debian (Buster, Bullseye or Sid).
On Ubuntu the package is available only for Ubuntu disco 19.04 and eoan 19.10.
sudo apt install libimagequant-dev
The package mozjpeg is available on this git repository, the build instruction and requirement : building.md

Resources