Skip to main content
Question

Packing Mono Framework as .dmg

  • December 6, 2013
  • 6 replies
  • 42 views

Forum|alt.badge.img+7

If I want to pack the Mono Framework as a .dmg File (after a normal Snapshot) the Composer crashes with

"Error creating DMG package
There was an error creating the packagae. Please make sure that the location you are saving to is writable and try again

Command failed with errorcode (1): '/usr/bin/hdiutil'"

I tried saving it to the Desktop. I tried saving it to an external drive and I tried saving it to a network volume. all didnt work.

Does anyone have the same effect and/or do you know how to get around it?
Keepass for example needs Mono.

bofh

6 replies

Forum|alt.badge.img+11
  • Contributor
  • December 9, 2013

I'm not sure why you're having issues saving a snapshot of the Mono Framework.

However, it is already distributed as a flat .pkg installer which you can utilize directly for installation on client machines. I just downloaded it, uploaded it into my test environment, and deployed it to a test machine without ever opening Composer.

Is this an option for you?


Forum|alt.badge.img+7
  • Author
  • Contributor
  • December 10, 2013

I'll give it a try and report back :)


Forum|alt.badge.img+13
  • Valued Contributor
  • February 24, 2016

As an aside, I'm trying to get a mono script to run at login and logout..

It erros when running as a policy..

'mono' not found..

It runs ok from a terminal locally: mono --runtime=v4.0.30319 [path to .exe]

Any ideas?


mpermann
Forum|alt.badge.img+22
  • Valued Contributor
  • February 24, 2016

@kerouak maybe you need to put the full path to the mono binary. I know I've read in some other threads about certain commands not working without the full path. Give that a shot.


Forum|alt.badge.img+13
  • Valued Contributor
  • February 25, 2016

Thanks mate, It was indeed required....

I did it this way, if anyone else needs this in future:

export PATH=/Library/Frameworks/Mono.framework/Versions/Current/bin/:${PATH}
mono --runtime=v4.0.30319 /Library/Application Support/notinuse.exe

All good!


donmontalvo
Forum|alt.badge.img+36
  • Hall of Fame
  • October 24, 2017

If your $PATH doesn't include the parent directory to the tool, you'll need to use the entire path in command:

$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Users can add paths to their ~/.bashrc or ~/.bash_profile, admins usually tuck paths for all users in /etc/paths.d.