Discussion:
[CMake] My previous message
Osman Zakir
2018-11-04 07:22:12 UTC
Permalink
Did no one see my previous message here? About the CMake errors in the Docker image. I really don't know how to fix this so some help would really be appreciated. It really is mainly about CMake right now, not Docker itself. Both the Dockerfile and the part of the build output with errors from CMake are attached to this message.

I don't know what I could try either, or else I really would've tried something before sending a message here.
Craig Scott
2018-11-04 07:49:53 UTC
Permalink
You are using sudo for your git operations and to make directories, then
trying to run cmake inside those directories without sudo. CMake won't be
able to write to directories created (and therefore owned) by root in most
cases (unless you have a very permissive umask set). I'd recommend not
using sudo to do the git clone or directory creation. Running cmake under
sudo would not be recommended.

On Sun, Nov 4, 2018 at 6:22 PM Osman Zakir <***@hotmail.com> wrote:

> Did no one see my previous message here? About the CMake errors in the
> Docker image. I really don't know how to fix this so some help would
> really be appreciated. It really is mainly about CMake right now, not
> Docker itself. Both the Dockerfile and the part of the build output with
> errors from CMake are attached to this message.
>
> I don't know what I could try either, or else I really would've tried
> something before sending a message here.
> --
>
> Powered by www.kitware.com
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Kitware offers various services to support the CMake community. For more
> information on each offering, please visit:
>
> CMake Support: http://cmake.org/cmake/help/support.html
> CMake Consulting: http://cmake.org/cmake/help/consulting.html
> CMake Training Courses: http://cmake.org/cmake/help/training.html
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Follow this link to subscribe/unsubscribe:
> https://cmake.org/mailman/listinfo/cmake
>


--
Craig Scott
Melbourne, Australia
https://crascit.com

New book released: Professional CMake: A Practical Guide
<https://crascit.com/professional-cmake/>
Osman Zakir
2018-11-04 08:01:44 UTC
Permalink
I tried to do it before, but it won't let me clone the repository without sudo for some reason.
________________________________
From: Craig Scott <***@crascit.com>
Sent: Sunday, November 4, 2018 12:49 PM
To: ***@hotmail.com
Cc: CMake
Subject: Re: [CMake] My previous message

You are using sudo for your git operations and to make directories, then trying to run cmake inside those directories without sudo. CMake won't be able to write to directories created (and therefore owned) by root in most cases (unless you have a very permissive umask set). I'd recommend not using sudo to do the git clone or directory creation. Running cmake under sudo would not be recommended.

On Sun, Nov 4, 2018 at 6:22 PM Osman Zakir <***@hotmail.com<mailto:***@hotmail.com>> wrote:
Did no one see my previous message here? About the CMake errors in the Docker image. I really don't know how to fix this so some help would really be appreciated. It really is mainly about CMake right now, not Docker itself. Both the Dockerfile and the part of the build output with errors from CMake are attached to this message.

I don't know what I could try either, or else I really would've tried something before sending a message here.
--

Powered by www.kitware.com<http://www.kitware.com>

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


--
Craig Scott
Melbourne, Australia
https://crascit.com

New book released: Professional CMake: A Practical Guide<https://crascit.com/professional-cmake/>
Raymond Wan
2018-11-04 10:34:21 UTC
Permalink
On 4/11/2018 4:01 PM, Osman Zakir wrote:
> I tried to do it before, but it won't let me clone the
> repository without sudo for some reason.


I have little experience with Docker -- actually, none. But
as several people have hinted to you already, this doesn't
seem like a CMake issue.

For example, from this statement above, it sounds like you
have a problem with why you have to use sudo to clone the
repository. You got around this problem by using sudo, but
that has opened up other problems that make you believe it
is an issue with CMake.

Personally, I have never cloned a repository using sudo.
"sudo" is really a last resort, and every time one has to
use it, one should ask if there is a better way. At most, I
would clone it with my own account and then perform the
installation step (i.e., "make install" using sudo). Of
course, if you have to use "sudo" to compile, then that's
also an issue but not related to CMake.

Anyway, in case no one else can give you better advice than
this, I suggest you take a step back and look at why you
have to use sudo to clone. This might mean that you should
ask a Docker mailing list for help.

Ray

PS: Apologies if something I said here is incorrect.
Honestly, I haven't followed your problem from the very
beginning.


--

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake
Loading...