directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (DIRSERVER-2154) ApacheDS install fails on Mac OS X El Capitan due to SIP
Date Sun, 31 Jul 2016 06:25:20 GMT

    [ https://issues.apache.org/jira/browse/DIRSERVER-2154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15400992#comment-15400992
] 

Emmanuel Lecharny commented on DIRSERVER-2154:
----------------------------------------------

Sometime, I really wonder if Apple is not even worse than Microsoft !!!

Ok so SIP forbid any program that is not from Apple to install *ANYTHING* on /usr/bin, unless
they are Apple signed package. Which is *REALLY* a pain in the ass.

One workaround : disable SIP (from http://www.macworld.com/article/2986118/security/how-to-modify-system-integrity-protection-in-el-capitan.html)


* Restart your Mac.
* Before OS X starts up, hold down Command-R and keep it held down until you see an Apple
icon and a progress bar. Release. This boots you into Recovery.
* From the Utilities menu, select Terminal.
* At the prompt type exactly the following and then press Return: csrutil disable
* Terminal should display a message that SIP was disabled.
* From the  menu, select Restart.

One other solution would be to modify the {{/System/Library/Sandbox/rootless.conf}} file to
exclude the {{/usr/bin}} directory (it will require to disable SIP, change the file, and reenable
SIP).
Otherwise, we could also change the installer to have it install the server in {{/usr/local/bin}}
instead, probably the only way to go in the future...

APPLE, YOU SUCK !

> ApacheDS install fails on Mac OS X El Capitan due to SIP
> --------------------------------------------------------
>
>                 Key: DIRSERVER-2154
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-2154
>             Project: Directory ApacheDS
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M19, 2.0.0-M20, 2.0.0-M21
>         Environment: OS X El Capitan 10.11.5 (15F34)
>            Reporter: Brad Curfman
>
> I've tried to install the 64 bit version of ApacheDS on El Capitan and the installation
always fails. I've tried builds M19, M20, and M21 and get the same result for each. 
> When I get to the installation step in the installer, I get the following warning message

> "This package is incompatible with this version of OS X and may fail to install."
> If I continue, the installation does fail. The Apple install log suggests that the issue
is due to the installer attempting to write to /usr/bin/apacheds which is not writeable due
to SIP.
> {noformat}
> Jun 13 10:55:21 macbookpro Installer[35094]: Package Authoring Warning: Package will
fail to install with System Integrity Protection feature enabled.
> Jun 13 10:55:21 macbookpro Installer[35094]: Package Authoring Error: Package contains
system content, and installation is expected to fail: Error Domain=IFInstallErrorDomain Code=-5000
"This package is incompatible with this version of OS X and may fail to install." UserInfo={NSLocalizedRecoveryOptions=(
> 	    "Cancel Installation",
> 	    "Install Anyway"
> 	), NSLocalizedRecoverySuggestion=Installing this package may damage your system, and
the installation may fail. To stop the program and the installation, click “Cancel Installation”.,
IFSystemPathsKey=(
> 	    "usr/bin/apacheds"
> 	), NSLocalizedDescription=This package is incompatible with this version of OS X and
may fail to install.}
> Jun 13 10:55:23 macbookpro installd[339]: PackageKit: ----- Begin install -----
> Jun 13 10:55:23 macbookpro shove[35103]: [source=file] failed _RelinkFile(/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/D8AD5173-038A-453D-8F06-28DB6A549FAB.activeSandbox/Root/usr/bin/apacheds,
/usr/bin/apacheds): No such file or directory
> Jun 13 10:55:23 macbookpro shove[35103]: srcPath = /var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/D8AD5173-038A-453D-8F06-28DB6A549FAB.activeSandbox/Root/usr/bin/apacheds
NSFileOwnerAccountID=0 NSFileHFSTypeCode=0 NSFileSystemFileNumber=5657763 NSFileExtensionHidden=0
NSFileSystemNumber=16777220 NSFileSize=858 NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=root
NSFileCreationDate=2015-12-18 14:30:47 +0000 NSFilePosixPermissions=509 NSFileHFSCreatorCode=0
NSFileType=NSFileTypeRegular NSFileGroupOwnerAccountName=wheel NSFileReferenceCount=1 NSFileModificationDate=2015-12-18
14:30:47 +0000
> Jun 13 10:55:23 macbookpro shove[35103]: dstPath = /usr/bin/apacheds does not exist
> Jun 13 10:55:23 macbookpro shove[35103]: dstParentPath = /usr/bin NSFileOwnerAccountID=0
NSFileSystemFileNumber=404726 NSFileExtensionHidden=0 NSFileSystemNumber=16777220 NSFileSize=35836
NSFileGroupOwnerAccountID=0 NSFileOwnerAccountName=root NSFileCreationDate=2015-10-17 23:47:11
+0000 NSFilePosixPermissions=493 NSFileType=NSFileTypeDirectory NSFileGroupOwnerAccountName=wheel
NSFileReferenceCount=1054 NSFileModificationDate=2016-05-19 13:59:37 +0000
> Jun 13 10:55:24 macbookpro installd[339]: PackageKit: Install Failed: Error Domain=PKInstallErrorDomain
Code=120 "An unexpected error occurred while moving files to the final destination." UserInfo={NSUnderlyingError=0x7ffc0fd15120
{Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"}, NSLocalizedDescription=An
unexpected error occurred while moving files to the final destination., arguments=(
> 	    "-f",
> 	    "-s",
> 	    "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/D8AD5173-038A-453D-8F06-28DB6A549FAB.activeSandbox/Root",
> 	    "/"
> 	)} {
> 	    NSLocalizedDescription = "An unexpected error occurred while moving files to the
final destination.";
> 	    NSUnderlyingError = "Error Domain=NSPOSIXErrorDomain Code=2 \"No such file or directory\"";
> 	    arguments =     (
> 	        "-f",
> 	        "-s",
> 	        "/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/C/PKInstallSandboxManager/D8AD5173-038A-453D-8F06-28DB6A549FAB.activeSandbox/Root",
> 	        "/"
> 	    );
> 	}
> Jun 13 10:55:24 macbookpro Installer[35094]: Install failed: The Installer encountered
an error that caused the installation to fail. Contact the software manufacturer for assistance.
> Jun 13 10:55:24 macbookpro Installer[35094]: Displaying 'Install Failed' UI.
> Jun 13 10:55:24 macbookpro Installer[35094]: 'Install Failed' UI displayed message:'The
Installer encountered an error that caused the installation to fail. Contact the software
manufacturer for assistance.'.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message