Category Archives: Apple

“WARNING: soft rlimits too low” in MongoDB with Mac OS X

If you get this warning when you connect to mongo shell in Mac OX X:

** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000

You can increase that limit by just running this on the Mac OS X shell:

launchctl limit maxfiles 1024 1024

This other command has the same effect but it will only last until the next system reboot:

ulimit -n 1024

Restart mongod and it shouldn’t complain any more.

Solve “mongodb cannot be built while v8 is active” in MacPorts

While updating all the ports of macports I got this error:

--->  Configuring mongodb
Error: mongodb cannot be built while v8 is active.
Error: Please deactivate v8 and try again.
Error: You can reactivate v8 again later.
Error: org.macports.configure for port mongodb returned: v8 is active

To deactivate v8 run:

sudo port -f deactivate v8

Run the update process again:

sudo port upgrade outdated

And finally activate v8 again:

sudo port activate v8

Ref: http://widgetbook.blogspot.com.es/2013/08/mongodb-and-macports-and-v8.html

Avoid Android File Transfer starting automatically in Mac OS X after Android device plugin to USB port

“Android File Transfer” application starts automatically in Mac OS X when you plug your Android device to the USB port. Even if you only want to charge it.

Adroid File Transfer

This are the steps you have to take to avoid this (annoying) behaviour:

  1. Open the “Activity Monitor” and kill the “Android File Transfer Agent” process.
  2. Open “System Preferences” > “Accounts”. Go to the “Login Items” tab of your user. Remove the “Android File Transfer Agent” (I didn’t have this item anyway).
  3. Find your “Android File Transfer.app” file (usually in /Applications):

    • Right click (or ctrl+click) on it and select “Show package contents”.
    • Go to Contents/Resources.
    • Rename “Android File Transfer Agent.app” to e.g. “Android File Transfer Agent_DISABLED.app“.
  4. Go to /Users/username/Library/Application Support/Google/Android File Transfer (you can open Library folder from the terminal running “open ~/Library”) and rename “Android File Transfer Agent.app” to e.g. “Android File Transfer Agent_DISABLED.app“.

Now “Android File Transfer” won’t auto-start when you plug your phone on the USB port, but if you open it manually everything will work just fine.

Ref:

Fix “macports checking for Tcl configuration… configure: error: Can’t find Tcl configuration definitions” when selfupdating Macports in Mac OS X 10.9 Mavericks

Solucionar "macports checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions" al actualizar Macports en Mac OS X 10.9 Mavericks">

I’ve just upgraded my Mac OS X to Mavericks 10.9. When I tried to update Macports I got an error and when I used the verbose mode of selfupdate (sudo port -v selfupdate) it came out this:

macports checking for Tcl configuration... configure: error: Can't find Tcl configuration definitions

I fixed the problem after reinstalling the Command Line Tools of Xcode and accepting the license from the command line:

sudo xcode-select --install
sudo xcodebuild -license

Then the selfupdate worked just fine:

sudo port selfupdate

Install PHPUnit in Mac OS X with pear

sudo pear channel-discover pear.phpunit.de
sudo pear install phpunit/PHPUnit

  • Page 1 of 6
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • >