[Mesa-users] Question-Mesa-installation-permission-issue

Rob Farmer robert.j.farmer37 at gmail.com
Thu Aug 5 13:27:59 UTC 2021


Please keep replies on the mesa-users list

> N.B. I am using Linux/ ubuntu on windows 10.

I assume this is with WSL2?

> GNU Fortran (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0

What that shows the SDK was not initialized as its showing the wrong
version of gfortran

What is the output of the following commands?

uname -s
uname -m
uname -r

Rob


On Thu, 5 Aug 2021 at 15:19, Nancy Kain <nancy.kain8890 at gmail.com> wrote:

> Thank you for your reply!
> Well, I removed the old directories, repeated the process without any
> sudo.
>
> It still not initializing SDK properly, having a problem with the
> mesasdk_init.sh, finding the error ' source $MESASDK_ROOT/bin/mesasdk_init.sh
> '' (unsupported architecture),
>
> *At the End, after ./install i got of course an error :*
> ../../utils/makefile_header:28: *** The MESASDK has not been initialized.
> Stop.
> /home/NaNiK/MESA58/mesa-r15140/const/make FAILED
>
> *Same issue after downloading the older version mesa-r12778 and SDK from
> 20/03/25:*
>
> /home/NaNiK/MESA58old/mesa-r12778/const
> building const package.
> ../../utils/makefile_header:30: *** The MESASDK has not been initialized.
> Stop.
> /home/NaNiK/MESA58old/mesa-r12778/const/make
> FAILED
> /home/NaNiK/MESA58old/mesa-r12778/const
> ./build_and_test FAILED
>
> Maybe there is an issue of incompatibility somewhere, some linux-related
> tool/ code i needed to have...
> N.B. I am using Linux/ ubuntu on windows 10.
> N.B. I am working in a directory ~/MESA58old equivalent to
> /home/NaNiK/MESAold/ where i downloaded SDK and extracted mesa (which i
> downloaded in my normal C driver /mnt/c/users/Anwender/mesaNC then unzip in
> ~/MESA58old.
> NaNiK is my non root user.
>
> So how do i proceed to solve the problem?
>
> I just want to add a notice that a check via 'gfortran --version' gives
> me:
>
> GNU Fortran (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
> Copyright (C) 2019 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> as if SDK is properly installed.
>
> best. Nancy
>
> Le jeu. 5 août 2021 à 12:10, Nancy Kain <nancy.kain8890 at gmail.com> a
> écrit :
>
>> Hi,
>> that's true, I was installing mesa using root. I'm new to linux / Ubuntu.
>> Now I added a new non root user, even defined sudo user and used 'chmod
>> u+rwx' and switched to it. I prepared mesasdk and mesa-r15140 in a
>> directory inside my home directory.
>>
>> I still have 2 issues related to setting the environmental variables for
>> SDK.
>> The first one appears after I use ' source $MESASDK_ROOT/bin/mesasdk_init.sh
>> '' (unsupported architecture),
>> The second one  after ./install, As if i didn't install SDK, it's telling
>> me to set the environmental variables even though i did that, probably
>> related to the first error (unsupported architecture, mesa_init.sh)
>>
>> I even tried the svn tool and got the latest version of mesa, It even
>> started the ./install but then stopped after a while with an error like
>> '/home/NaNiNaNa/MESA48t/mesa-15140/utils
>> ./build_and_test FAILED'
>> A previous try gave similar error with another mesa dir than utils.
>>
>> I want to try a previous version of mesa (mesa-r12778 and
>> mesasdk-x86_64-linux-20.3.2) but i do not think that would solve the
>> problem since the initialization of SDK is facing the Checking architecture
>> error already!
>>
>> I'll be thankful for any help!
>>
>> Best, Nancy
>>
>> On Tue, Aug 3, 2021 at 1:10 PM Rob Farmer <robert.j.farmer37 at gmail.com>
>> wrote:
>>
>>> Hi,
>>> You do not need to (and should not) install MESA with root privileges.
>>> Simply calling ./install is sufficient. As you have both mesa and the sdk
>>> in your home directory you can keep them there.
>>>
>>> Note MESA does not move files outside of MESA_DIR during installation
>>> which is why it does not need to use root.
>>>
>>> Rob
>>>
>>> On Tue, 3 Aug 2021 at 12:10, Nancy Kain via Mesa-users <
>>> mesa-users at lists.mesastar.org> wrote:
>>>
>>>> Hello,
>>>>
>>>> I am installing the latest version of MESA (mesa-r15140), using Ubuntu
>>>> / Linux on my windows 10, so far I have prepared & extracted in my home
>>>> directory the mesasdk-x86_64-linux-21.4.1, & mesa-r15140. As administrator.
>>>> In a final step, in the $MESA_DIR, typing './install' gives me an error:
>>>> ''Mesa should not be installed using root privileges, sudo is a bad
>>>> idea to solve the problem. *Contact the mesa-users mailing-list if you
>>>> have permission issues.* Or change the ./install file to avoid this
>>>> check''
>>>>
>>>> So for ex. ''sudo apt-get install'' ...is not helping. & i don't know
>>>> how to change the ./install file to allow the installation on a root
>>>> location. So I should probably change some permissions settings to let the
>>>> mesa install but what/ where exactly?
>>>>
>>>> I hope this is the right address for this question,
>>>> Thank You in advance,
>>>> NK
>>>> _______________________________________________
>>>> mesa-users at lists.mesastar.org
>>>> https://lists.mesastar.org/mailman/listinfo/mesa-users
>>>>
>>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20210805/3b5766ac/attachment.htm>


More information about the Mesa-users mailing list