Installing Chisel - ios

I'm trying to install Chisel.
I ran the following commands in command line.
brew update
brew install chisel
the final step is to follow the instructions that Homebrew displays to add chisel to your ~/.lldbinit.
I cannot find .lldbinit file. Any ideas?

I figured it out. Simply create .lldbinit in your home directory. I used sublime and added the following text to the file.
# ~/.lldbinit
...
command script import /path/to/fblldb.py
make sure you update the 'path' portion with your actual path. This can be obtained from command line when you do 'brew install chisel'
Save, restart Xcode. Done!

.lldbinit file is not required for lldb to work so it is not created by default. If you don't have it already just create new empty file and add all necessary lines to it.

Related

Brew install nvm. nvm: command not found

After installing nvm with brew, and running nvm, it says nvm: command not found
How can I get the command to execute?
There are two steps to installing nvm with brew.
First use brew to install the application:
brew install nvm
Then take a look at the brew info "caveats" section, to see what else you have to do:
brew info nvm
You might see something like (this can change!):
You should create NVM's working directory if it doesn't exist:
mkdir ~/.nvm
Add the following to ~/.bash_profile or your desired shell
configuration file:
export NVM_DIR="$HOME/.nvm"
. "/usr/local/opt/nvm/nvm.sh"
If you do not have a ~/.bash_profile file, then you can simply create one.
Make sure to restart your terminal before trying to run the nvm command again.
I followed #user3207874's answer, but it still wasn't working for me. I had to run this command after those steps:
source $(brew --prefix nvm)/nvm.sh
From the docs:
Your system may not have a [.bash_profile file] where the command is
set up. Simply create one with touch ~/.bash_profile and run the
install script again
you might need to restart your terminal instance. Try opening a new
tab/window in your terminal and retry.
Restarting worked for me...Why can't all bugs be so easy?!!
Just adding some explanation for Aaditya's answer to explain why it works. I can't replay because I don't have enough reputation.
Basically there are 2 important steps to follow
Export NVM_DIR location. You need to create this folder if it doesn't exist first.
export NVM_DIR="$HOME/.nvm"
Second you need to source nvm's script. It is usually like this
. "/usr/local/opt/nvm/nvm.sh"
If the path on the second step does work it may be because the path is different in your device. One easy way to find its path is with the command
brew --prefix nvm
The output will be the path for the nvm installation directory in which the nvm.sh file resides. Setting the command inside $() will create a subshell to get that path. We can use it to source the nvm.sh script wherever it is located like this:
. $(brew --prefix nvm)/nvm.sh
Using that command is a replacement for . "/usr/local/opt/nvm/nvm.sh" in your .bash_profile.
please run this command
source ~/.nvm/nvm.sh
I had the same problem after running npm install
The following solution worked for me:
Run brew doctor to find broken symlinks for NPM
Run brew cleanup to clean them up
Just adding some new info.
The docs for nvm have this note:
Homebrew installation is not supported. If you have issues with homebrew-installed nvm, please brew uninstall it, and install it using the instructions below, before filing an issue.
So for anyone coming here, potentially uninstall via brew and install as per recommendation : https://github.com/nvm-sh/nvm

building OpenCV cannot provide cv2.so - fresh ubuntu installation

I made the following steps:
1- Installed Anaconda and added link to anaconda bin in the .bashrc
2- Made an new env called py27 and activated it
3- Installed numpy in this env
4- Now I am trying to build opencv but it does not generate the cv2.so file. In the cmake step, it does not show numpy version either. I installed the dev headers but still did not had any impact
I found the issue.
While trying to fix my issues, I used make clean instead of removing the folder build. Removing instead cleared the cache (the reason of my issue most probably) so the right commands provided the right outputs!

CMake installation

I installed CMake (on ios), and it seemed like the installation was completed.
However, when I type
cmake -version
I get
-bash: cmake: command not found
Is there a need to set up CMake before using it?
Assuming you're talking about OS X, not iOS: CMake is installed, but not in the PATH in your shell. You can add it via something like:
PATH=$PATH:/Appications/CMake.app/Contents/bin
Then the cmake command will work on the command line.
You can edit the file ~/.bashrc to set your PATH this way every time you open the command line, instead of needing to do it manually each time.
https://en.wikipedia.org/wiki/PATH_(variable)
you can open CMake with GUI in Launchpad, and click the "tools" - > "How to Install For Command Line Use" menu, you'll find ways to solve it
The previous answer pointing to /Applications/CMake.app/Contents/bin is correct but you can go one step further.
If you run
/Applications/CMake.app/Contents/bin/cmake-gui --install
Then it will link the executables into /usr/local/bin.

Why does second terminal tab prompt bundle install

If I run rails s in the terminal, it works. If I open a new terminal window or tab and run rails c, I get the following error: Run bundle install to install missing gems. If I type cd .. and then cd back into the directory and run rails c again, it works. My question is what would be causing this to occur?
I was facing some problems but didn't find the perfect solution.
An alternate working solution for the same is below which worked for me well as expected.
Steps are as below:
nano ~/.bash_profile
Then add the following code at the end of your bash_profile file
current_dir=$(pwd)
cd $current_dir
Let me know if this worked for you.

Starting new project with Cordova 2-7-0, cannot create in command line

I am trying to create a new porject with the latest version of cordova. I am following the instructions here but I get stuck at the Start New Project command line section
I follow the instruction where it says open the command line tool, drop the 'bin' file in and enter the following:
./create ~/Documents/CordovaXY/HelloWorld org.apache.cordova.HelloWorld HelloWorld
But when I hit enter all the command line says is
No such file or directory
Is there anyway to do this without using command line?
Thanks!
Using the command line is probably the easiest way to do it, so keep trying!
I would run just the command
./create
without parameters. If you get a warning message and a list of possible flags and parameters then this means that your problem is in the parameters
~/Documents/CordovaXY/HelloWorld org.apache.cordova.HelloWorld HelloWorld
and not the command itself.
My guess is that you have to create the CordovaXY directory.
Otherwise, double check that the 'Xcode Command Line Tools' are correctly installed. The page you linked states "Cordova uses the command line to create a new application project. To access the Xcode tools from the command line an additional download is required."
OK it was my stupid fault for not reading the instructions properly. I dragged the bin directory into the already open terminal window, instead of onto the Terminal Icon in the Dock

Resources