NCO, Library not loaded - path

I am trying to run the NCO executable ncks in the terminal window. I found that I needed to create a .bashrc file to initially get started in addition to installing NCO from MacPorts. Now when I run ncks I get this error.
dhcp-v219-194:~ mlaf$ ncks
dyld: Library not loaded: #rpath/libssh2.1.dylib
Referenced from: /Users/matthewlaffin/anaconda/bin/ncks
Reason: image not found
Trace/BPT trap: 5
I am new to terminal and NCO but I have read that there could be an error in the path name which results in NCO not being able to find the Library. Does anyone have any insight into how to fix this?

The error message is from (ana)conda, not from MacPorts, because the ncks executable /Users/matthewlaffin/anaconda/bin/ncks is in your (ana)conda directory, and it is trying to find an (ana)conda library that apparently not installed. Not sure why. See this issue for a possible solution.
If you did not have (ana)conda installed, then presumably your default NCO would be from MacPorts, and the MacPorts installation works so long as your PATH and LD_LIBRARY_PATH are correctly set.

Related

Installed GLIB on MacOS using Homebrew but "... GLIB could not be found"

I tried to update my glib as part of flex, both installed using Homebrew on 10.14. However, when I config/make my flex project, I get:
*** The glib-config script installed by GLIB could not be found
*** If GLIB was installed in PREFIX, make sure PREFIX/bin is in
*** your path, or set the GLIB_CONFIG environment variable to the
*** full path to glib-config.
I assume the problem is that last bit, so I did...
export GLIB_CONFIG=/usr/local/lib/glib-2.0/include
And get the same error. I also tried adding /glibconfig.h to the end, but that does the same.
Looking in config.log I see a different issue:
configure:1696:10: fatal error: 'glib.h' file not found
I assume the two are related of course, but I'm thinking the root issue is the later. Does anyone know where this file is and what envar it might be using to find it?

Phonegap: ./create error

I am new with Phonegap, and am using the Terminal to try and develop it with. I am trying to make it so the project is accessible in Xcode.
I'm stuck at creating the project. I type in:
./create ~/Desktop/ProjectFolderName com.myName.hello projectNameForXCodeRefferal
And I am getting the error:
-bash: ./create: No such file or directory
I managed to zone to a bin from using:
~/.cordova
I have been stuck on this for days. I am finding similar errors online, but I have referred to documentation and other StackOverflow topics without success. Is someone willing to give a hand here?
EDIT:
My entire command is this:
/Users/Evee/.cordova/lib/npm_cache/codova-ios/3.8.0/package/bin/create
~/Desktop com.myName.myProj myProj
I get this error now:
-bash: /Users/Evee/.cordova/lib/npm_cache/codova-ios/3.8.0/package/bin/create:
No such file or directory
Any advice?
Nevermind. I am unsure of how I was able to resolve it, but I "SUDO" (aka, root/superuser/elevated admin) commanded to uninstall cordova, and manually entered cordova 2.8.0 as the installation. Following this resource on Github.
https://ccoenraets.github.io/cordova-tutorial/create-cordova-project.html

scons invocation error building AllJoyn for iOS

I'm trying to build AllJoyn for IOS using Xcode (5.1.1) on OSX Mavericks (10.9.3). I have followed all the steps posted here to the letter but keep getting a "Shell script invocation error", error: can't exec 'scons' (No such file or directory) on the last step in the instructions and cannot figure out how to resolve it, I have installed scons with homebrew and tried donloading and installing it manually but for some reason it can't find it. Any help would be much appreciated.
I found a solution. Brady's comment was right, Xcode could not find scons.
In order to fix it, I changed the field for "Build Tool" under Target -> info, it originally had only "scons" as its value so I did a search for it in a terminal (which scons), and put the full path in the setting (in my case "/usr/local/bin/scons").
In addition to this issue, I had an issue with openssl not being found even after executing the command launchctl setenv OPENSSL_ROOT <path to top level folder of openssl> so under Build Settings I added a user-defined setting with the key "OPENSSL_ROOT" with the value of the full path to the openssl top level folder.

Typed in "ruby -version" in terminal and got an error after switching bootdisk from HD to SSD. How do I resolve this?

Installed a 2nd HD(SSD) on my MBP 15" and cloned all my files into it except the "User" folder. Deleted all the files I cloned from my original HD and left the users there and booted up my computer using SSD. Everything works, except when I check my ruby version, I get the following spilling out:
$ ruby -version
dyld: Library not loaded: /Users/jb/.rvm/rubies/ruby-2.1.0/lib/libruby.2.1.0.dylib
Referenced from: /Volumes/HardDrive/Users/jb/.rvm/rubies/ruby-2.1.0/bin/ruby
Reason: image not found
Trace/BPT trap: 5
What's going on here and how would I go about solving this?
On OS X binaries (such as ruby) contain the full path of the shared libraries they use, so when you run ruby it's trying to load libruby from that path - it doesn't know that the entire volume has been mounted at a different path
The easiest thing is probably to reinstall ruby - rvm reinstall ruby-2.1.0 should do it
In theory you should be able to use install_name_tool to rewrite the shared library paths in the binaries but it is almost certainly more trouble than it's worth.

How do I make Cucumber and RMagick play nice on Snow Leopard?

I installed Snow Leopard and things have been going great, after a few re-installs. But now when I go to run cucumber, I get the error below, and I can't find anything conclusive through Google searches. Has anyone run into this, or maybe have some troubleshooting steps to try?
$ cucumber features
dyld: NSLinkModule() error
dyld: Library not loaded: /opt/local/lib/libfreetype.6.dylib
Referenced from: /usr/local/lib/ruby/gems/1.8/gems/rmagick-2.10.0/lib/RMagick2.bundle
Reason: no suitable image found. Did find:
/opt/local/lib/libfreetype.6.dylib: can't map
/usr/local/lib/libfreetype.6.dylib: mach-o, but wrong architecture
Trace/BPT trap
You should check if rmagick is the correct version and compiled correctly for your new osx.
It resulted that the .dylib file was in /usr/X11/lib/libfreetype.6.dylib
so it was just matter of copying it from there, or make a symbolic link:
cd /opt/local/lib/
ln -s /usr/X11/lib/libfreetype.6.dylib

Resources