You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Twan van der Schoot (JIRA)" <ji...@apache.org> on 2019/07/07 11:51:00 UTC

[jira] [Commented] (DIRSERVER-2154) ApacheDS install fails on Mac OS X El Capitan due to SIP

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

Twan van der Schoot commented on DIRSERVER-2154:
------------------------------------------------

As Ari Maniatis noted, what is wrong with `/usr/local/bin`?

Even though MacOS looks like *nix, Apple seems to be on a route to deviate from it significantly in the (near) future anyway. So applying *nix notions without any regard to MacOS peculiarities leaves MacOS users out in the cold. I'm afraid SIP on MacOS is part of reality now and here to stay. Please do repackage for '/usr/local/bin' instead of '/usr/bin'

To be honest, thinking about it this is something I also like to see for operational installations on Linux servers as a policy: anything not belonging to "core" linux distribution goes there! Much easier to manage security.

Oh, well, its open source. I'll have to burn my own time to get this done.

> 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
>          Components: installer
>    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
>            Priority: Major
>
> 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
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org