Packing Mono Framework as .dmg

bofh
New Contributor III

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 6

Josh_S
Contributor III

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?

bofh
New Contributor III

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

kerouak
Valued Contributor

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
Valued Contributor II

@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.

kerouak
Valued Contributor

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
Esteemed Contributor III

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.

--
https://donmontalvo.com