MAC OS denies permission to DCMTK to mkdir in /usr

Compilation and installation of DCMTK

Moderator: Moderator Team

Post Reply
Message
Author
nedjoestut
Posts: 7
Joined: Fri, 2015-05-22, 15:51

MAC OS denies permission to DCMTK to mkdir in /usr

#1 Post by nedjoestut »

MAC OS 10.10.3 issues permission denied in "make all"

./mkinstalldirs /usr/local/share/doc/dcmtk
mkdir /usr/local/share/doc
mkdir: /usr/local/share/doc: Permission denied
mkdir /usr/local/share/doc/dcmtk
mkdir: /usr/local/share/doc: No such file or directory
make[1]: *** [docs-install] Error 1
make: *** [config-install] Error 2

any ideas other than I go in and make the directories my self....or is this indicative of other issues?

I went in and made the string of subdirectories to /usr and then ran "make all"
./mkinstalldirs /usr/local/share/doc/dcmtk
/usr/bin/install -c -m 644 docs/config.txt /usr/local/share/doc/dcmtk
install: /usr/local/share/doc/dcmtk/config.txt: Permission denied
make[1]: *** [docs-install] Error 71
make: *** [config-install] Error 2
Joels-Mac-mini:dcmtk-3.6.1 joelstutman$

ok, obviously, I'VE MADE THE INSTALL DIRRECTORIES MYSELF...I COULD GO ON WITH AN ATTEMPT TO CONTINUE WITH THE INSTALL IF I COULD REMOVE THE INSTRUCTION ./mkinstalldirs since that is now causing these two stop errors...I can't find a text macro file called "make all"..If could, I would comment out the ./makinstalldirs line..

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: MAC OS denies permission to DCMTK to mkdir in /usr

#2 Post by Jan Schlamelcher »

Perhaps try to change the install destination and then copy the results to where you need them. Alternatively run make as a privileged process.

nedjoestut
Posts: 7
Joined: Fri, 2015-05-22, 15:51

Re: MAC OS denies permission to DCMTK to mkdir in /usr

#3 Post by nedjoestut »

Ok, seems reasonable, I like
sudo make all

Will that work? i.e. will macos ask for my password before executing anything?

Should I delete all directories I made before?

Thanks Jan

I will beef up on my unix..

nedjoestut
Posts: 7
Joined: Fri, 2015-05-22, 15:51

Re: MAC OS denies permission to DCMTK to mkdir in /usr

#4 Post by nedjoestut »

sudo make all does not work... "all" is not recognized as having any meaning via the sudo route.

I am going to try a different makefile ... the config seems to have worked ok.

lets assume that "make all" doesn't work for MacOS 10.10.3 with XCODE 6.3.2 (sudo doesn't
work right) ..

I think ./configure worked

Please suggest a makefile which could be effective.

Thanks,

njs

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: MAC OS denies permission to DCMTK to mkdir in /usr

#5 Post by Jan Schlamelcher »

I'm not sure why it is not working, but perhaps simply try building with CMake instead, our nightly builds show that at least this is working. Alternatively, as already mentioned, try changing the install destination.

nedjoestut
Posts: 7
Joined: Fri, 2015-05-22, 15:51

Re: MAC OS denies permission to DCMTK to mkdir in /usr

#6 Post by nedjoestut »

I'll try CMake...Should I try deleting all the directories and contents from previous attempts? I will assume that CMake can :lol: take care of itself!

Tried CMake out of dcmtk, and all other variants .cmake in that folder... no action...Tell me what is missing...should I run ./configure again?

Joels-Mac-mini:~ joelstutman$ cd Downloads
Joels-Mac-mini:Downloads joelstutman$ cd dcmtk-3.6.1
Joels-Mac-mini:dcmtk-3.6.1 joelstutman$ cd CMake
Joels-Mac-mini:CMake joelstutman$ CheckCMakeCommandExists.cmake
-bash: CheckCMakeCommandExists.cmake: command not found
Joels-Mac-mini:CMake joelstutman$ CheckFunctionWithHeaderExists.cmake
-bash: CheckFunctionWithHeaderExists.cmake: command not found

Jan Schlamelcher
OFFIS DICOM Team
OFFIS DICOM Team
Posts: 318
Joined: Mon, 2014-03-03, 09:51
Location: Oldenburg, Germany

Re: MAC OS denies permission to DCMTK to mkdir in /usr

#7 Post by Jan Schlamelcher »

I think you are doing something wrong, please have a look at the CMake tutorial. Also ensure to run 'make distclean' prior to using CMake with your source-folder, because CMake will get crazy about some autconf files otherwise.

nedjoestut
Posts: 7
Joined: Fri, 2015-05-22, 15:51

Re: MAC OS denies permission to DCMTK to mkdir in /usr

#8 Post by nedjoestut »

ok jan i understand, and have reviewed your tutorials.
I have a Win XP system on a triple boot 2 TB Computer. I will attempt to build dcmtk
on that WinXP Drive and get a feeling of how the build process works in XP wherein you all
are most familiar (so am i).

Then I will build dcmtk on my Linux Drive (also shared Win 7) take serious notes on the build process there.

Then I will study the XCode (Version 6.3.2) Build process. By the way, Mac claims their Make
is GNU...I'll check that out because I will have gone thru the linux build first. I'll let you know what
build conclusions I have made. and how successful I have been with your modules. Of course,
I'll be in touch with you from time to time about problems, fixes and about bugs (yours or mine).

Thank you all for your help. I expect this process to take me through the whole summer, maybe longer, and I will
be in touch.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest