Montag, November 28, 2011

couchdb port installation trouble

Looking for a simple way to synchronise data from an Android phone I found a suggestion to use couchdb. Simply typing sudo port install couchdb didn't work. All suggestions found via google didn't help.

So I did, what I should have done at the beginning. I read the installing and error messages article on the couchdb wiki.

After this I did:
  • sudo port install erlang -universal

  • sudo port install couchdb-devel
and it worked fine.

[update 12.08.2012] Running sudo port upgrade outdated stopped with

Error: org.macports.configure for port couchdb-devel returned: command execution failed

So I removed couchdb and erlang, as it also was updated and redid the above steps. It failed again. Checking the log file it showed

this file was generated for autoconf 2.61.
You have another version of autoconf. If you want to use that,
you should regenerate the build system entirely.

This was not, what I wanted to do. I tried to install couchdb instead (no -devel) and it worked. Next time I will try to install erlang without -universal

I had to start the couchdb demon multiple times before I was abale to connect. Not sure why.

Samstag, August 06, 2011

change NTFS file owner

Changing the owner of a NTFS file with set-acl failed with the errro "Set-Acl : The security identifier is not allowed to be the owner of this object". Found the explanation here. The reason in my case was that I tried to set the user myself, but the owner was the admin.

I was able to do the change with the explorer. But this works only for a single file. If more than one file is selected the contect menue to change the security is not available.

There are some older tools like xcacl but this should only be used with older Windows version (2000 and before). There are also some newer tools for this, but not from Microsoft.

The solution for me was to add read access for all local user. I changed the ACL of one file with the explorer to the desired owns and used the following powershell command to set the ACL to all other files.

ls file[1234] | foreach { get-acl ..\fileWithGoodAcl | Set-Acl $_ }