Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories

Correct .bash_profile in OSX

ok after some digging. I think I've figured this out

What is happening is that head command that Cordova needs which normally lives in /usr/bin/head on OSX, is being overshawdowed by a version supplied by XAMPP. So the path order needs to be adjusted. A which head when XAMPP is uncommented should probably give you /Applications/XAMPP/xamppfiles/bin/head as opposed to /usr/bin/head

That being said try making your path as follows.

export PATH=~/.composer/vendor/bin:$PATH

This should put the xampp version of head at the end of your path. But this might cause other name collisions that cause XAMPP not to work (I don't have either installed so cannot test) (also removed the the export PATH=${PATH}:/Users/chema/sdk-android/sdk/platform-tools:/Users/chema/sd$ which was adding what looked like redundant /wrong paths into your path)

IF this still doesn't work, your best bet might be to create a wrapper script to run cordova, something that sets the path to one you know works and then just passes the command line options along


on OSX path is built up by the path_helper which builds up the path from /etc/paths && /etc/manpaths This is run from you shells init code /etc/profile, /etc/zshenv, etc.. and sets up the base PATH

based on your comment of head still being the one in /Applications/XAMPP/xamppfiles/bin it appears that this line export PATH=$PATH:/Applications/XAMPP/xamppfiles/bin is either not being executed, or /Applications/XAMPP/xamppfiles/bin was already in the PATH from somewhere else (IE you keep sourcing your .bashrc, or the like as opposed to creating a new shell, etc.. )

So try this. put the following in

export PATH=
if [ -x /usr/libexec/path_helper ]; then
    eval `/usr/libexec/path_helper -s`
export PATH

what this will do is reset your path, execute path_helper to set the paths from the OS, and then tack on so we are starting fresh..

then in your shell do source ./

then try to run Cordova from that shell and see if it works.

Categories : Osx

Related to : Correct .bash_profile in OSX
change user profile of elevated installation to local profile for custom action run exe
I have several thoughts. The first is out of process EXE's are generally a bad idea because you lose the declarative, transactional nature of MSI. MSI can't undo, monitor, repair what it doesn't know about. The administrator can't see or transform what is being done by the EXE. The second is managing per-user data is a pain. However if you must do it, the best technique is to split the stuff th

Categories : C#
How to profile libraries?
You also need -prof. GHC Users's Guide says "There are a few other profiling-related compilation options. Use them in addition to -prof. These do not have to be used consistently for all modules in a program. "

Categories : Haskell
How to have a profile url like facebook. (
Take a look at your RouteConfig.cs file in your App_Start folder. The default route ( is set to your HomeController.Index() method. You can tell that by the "defaults" parameter. routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); In the example that you provide

Categories : C#
Bash syntax in /etc/profile
From the OPTIONS section of the manpage: -i If the -i option is present, the shell is interactive. From the Special Parameters section of the manpage: - Expands to the current option flags as specified upon invoca- tion, by the set builtin command, or those set by the shell itself (such as the -i option). From the Parameter Expansion section of the m

Categories : Linux
Get profile pic of Google plus account
You are getting image from server so you need to use AsyncTask.. Declare one global variable for Bitmap Bitmap resultBmp; private class GetProfileImage extends AsyncTask<String, Void, Bitmap> { protected Bitmap doInBackground(String... urls) { String urldisplay = urls[0]; Bitmap mIcon11 = null; try { InputStream in = new

Categories : Android
Recently Add
Problems installing Flagmatic
Applescript to Save File as Two Separate File Formats with Fixed Extensions
Using Grand Central Dispatch in Swift to parallelize and speed up “for" loops?
Jmeter is not starting in mac osx 10.10
jmeter is not downloading using brew in mac osx
OSX Terminal command to move all files in directory
Why is Vim able to defeat my file permissions? OS X
install g77 using fink
OSX UI emacs, git commit/rebase opens empty buffer
How slow is too slow for Macports selfupdate?
Error when installing FLTK 1.3.3 on mac OS X 10.10
how to make NSScollview scroll properly (Swift)
capture segfault with lldb on OS X
Is it possible to create a universally accessible symbolic link (symlink) in Mac?
How to remove suspicious Chrome extension in Mac OS
Terminal's "codesign" command trouble
MAC go get
Backup to external HDD with terminal commands
Why can't I cd into this directory?
How to run a command to use data from a txt file to execute them one by one smartly
automator take screenshots of website recursively
setenv in Apple Script does not work in Mac OS 10.10 (Yosemite)
Can I install Xcode 6 on Mavericks?
Meteor: unexpected mongo exit code 100 when using ssh client on OS X
How can I distribute a beta Mac App Store app using Xcode 6.1?
cx_freeze does not find python 3 path mac
Localization of OSX service menu entry does not work for Simplified Chinese
Cant log in to BeagleBone Black's SSH through my Mac?
Why ORSSerialPort receive delegate don't work in my Swift project
git: new blank line at EOF
© Copyright 2017 Publishing Limited. All rights reserved.