update meson package on ubuntu

Asked by muhammad abu saleh

Hi everybody,

I want to ask, If there is a way to install meson with version >0.59 on ubuntu20 by using apt install?

In other words, can we update the current package for meson to have latest version?

Thanks,
Muhammad.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu meson Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

Manfred Hampl suggests this article as an answer to your question:
FAQ #3037: “no rolling release”.

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

Ubuntu 22.04 (to be published in April next year) will have meson version 0.60.1 (or higher).

There are PPAs with updated versions for older releases like Ubuntu 20.04, e.g. https://launchpad.net/~ubuntu-support-team/+archive/ubuntu/meson
This may help as a workaround. (Standard disclaimer for PPAs applies of course.)

Revision history for this message
muhammad abu saleh (muhammadas17) said :
#3

actually we need new meson version because meson with version >= 0.59 is recognize cuda compiler only, others fail to build.

for now if I want to update package for ubuntu20/18, we have to use the PPAs right?

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#4

No, packages are updated if they fall out of support or have issues that upgrading would take them to the next version.

the LTS releases are stable, meaning that the package versions rarely change and minor updates are applied if necessary. You can add PPAs if you want a newer version or even build your own from source.

Revision history for this message
muhammad abu saleh (muhammadas17) said :
#5

Thanks at first, I want to ask do you knew before about cuda issues with meson version?

Revision history for this message
Manfred Hampl (m-hampl) said :
#6

According to https://mesonbuild.com/Dependencies.html#cuda CUDA support has been added in version 0.53.0

Revision history for this message
muhammad abu saleh (muhammadas17) said :
#7

right I saw that, but we encounter that meson with version greater than 0.59 is identify successfully cuda compiler nvcc..!

Revision history for this message
Manfred Hampl (m-hampl) said :
#8

Which problem do you have with neson and cuda?

Revision history for this message
muhammad abu saleh (muhammadas17) said (last edit ):
#9

when I run meson with version 0.53.2 appears an error as below:

 ERROR: Could not find suitable CUDA compiler: "nvcc"

when I run meson with version >= 0.59 (meson.py),the run success.
for that I need to update meson version on current package.

Revision history for this message
Manfred Hampl (m-hampl) said :
#10

/usr/bin/nvcc is contained in the nvidia-cuda-toolkit. I do not see any relationship to the meson version.

Revision history for this message
muhammad abu saleh (muhammadas17) said (last edit ):
#11

but then why when we run with meson version 0.59 this error don't show?!

Revision history for this message
Manfred Hampl (m-hampl) said :
#12

"with meson version 0.59 this error don't show"

If you already can use meson version 0.59, what exactly do you need now?

Revision history for this message
muhammad abu saleh (muhammadas17) said (last edit ):
#13

I run meson file with 0.59 version from tar directory; "/path_to_directory/meson.py build" and we don't want run meson in this way.

we want run by "meson build", because is more comfortable and not require from the client to download the dir and run like this manually. so to do that we need packages for meson with version >= 0.59

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#14

If you add the folder with the script in it to your path variable then you can do this. I also suggest making a hard link to the python file with the same name but without the file extension. It will then work exactly how you state

Revision history for this message
Manfred Hampl (m-hampl) said :
#15

There are three possibilities:

1. Request an upgrade of the meson package for Ubuntu 20.04 by creating a bug report to request a SRU or backport. It is rather unlikely that this will be accepted, see FAQ #3037
2. Upgrade to a higher Ubuntu release (for meson 0.60.* you need to upgrade to the development release, which is not recommended)
3. Install the desired version by building it yourself from source or by using a PPA (already written in comment #2)

Revision history for this message
ewwink (ewwink) said :
#16

I use this to use latest meson

sudo apt-get purge meson -y
pip3 install meson
which meson
meson --version

# /usr/local/bin/meson
# 1.4.0

Can you help with this problem?

Provide an answer of your own, or ask muhammad abu saleh for more information if necessary.

To post a message you must log in.