How to install OCLint in mac os x - objective-c

I'm trying to install OCLint in my mac with MAC OS X mavericks
Its documentation here says that
*Following code snippet is an example for the .bashrc or .bash_profile file that is sourced when terminal launches.*
OCLINT_HOME=/path/to/oclint-release
export PATH=$OCLINT_HOME/bin:$PATH
How can I accomplish this? whether I need to create .bashrc or .bash_profile file, or add to existing file. Where can I locate .bashrc or .bash_profile file

Install Oclint with Homebrew is quickly and helpful solution.
Open terminal and install homebrew first:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Oclint 0.11.1 with this command
brew install https://gist.github.com/TonyAnhTran/e1522b93853c5a456b74/raw/2f440240fe99634771a3f2353c0c53a43c2d0fb2/oclint.rb
To create .bash_profile in terminal:
Type "cd ~/" to go to your home folder
Type "touch .bash_profile" to create your new file.
Edit .bash_profile with your favorite editor (or you can just type "open -e .bash_profile" to open it in TextEdit.
Type ". .bash_profile" to reload .bash_profile and update any functions you add.
Update on 31-Jul-2017:
before_install:
brew cask uninstall oclint
brew tap oclint/formulae
brew install oclint

brew tap oclint/formulae
brew install oclint
More details are here: https://github.com/oclint/homebrew-formulae

If you have a .bashrc in your home directory (i.e. /Users/yourname/.bashrc) already then just append these lines, otherwise create a new .bashrc containing these two lines. Then do this:
$ source ~/.bashrc

Those files should be in your home directory, but they will be hidden by default due to the leading dot. You can enable the "Show all files" feature to see them in Finder. Or, if you're comfortable using the Terminal app, edit the files from the terminal and append the lines for OCLint.

Related

Why is brew install redis not working for mac M1?

I have to install redis, but it is not working to install redis anymore using brew. Getting the following error when trying to install this way:
Warning: No available formula with the name "redis".
==> Searching for similarly named formulae and casks...
==> Casks
another-redis-desktop-manager ✔ redis-pro
jpadilla-redis redisinsight
medis
To install another-redis-desktop-manager ✔, run:
brew install --cask another-redis-desktop-manager ✔
Tried the command brew install --cask another-redis-desktop-manager.
This also didn't work.
Actually found the answer. Basically the reason for the failure in installation was because the core homebrew packages were not correctly configured.
Identified the issue with brew doctor
The solution was
rm -rf "/opt/homebrew/Library/Taps/homebrew/homebrew-core"
brew tap homebrew/core
ARM Homebrew must be installed in the /opt/homebrew directory. Earlier, you need to manually create directories and run commands. However, you do not need to manually run commands to use the latest scripts.
Direct execution:
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
PS: terminal type Run the echo $SHELL command. The command output is as follows:
/bin/bash => bash => .bash_profile
/bin/zsh => zsh => .zprofile
If you encounter invalid environment variables, you are advised to check the terminal type before setting the correct environment variables.
Starting with macOS Catalina(10.15.x), Macs use zsh as the default Shell, using.zprofile, so the corresponding command:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"
If you have macOS Mojave or later and have not configured zsh yourself, use.bash_profile:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.bash_profile
eval "$(/opt/homebrew/bin/brew shellenv)"
Hope this can help you

problems with Arch linux installation commands

It's my first time trying to install and using Arch linux, I was trying to install it in VirtualBox in Mac Os mojave, when i did arch-chroot /mnt(after all the configuration), then tried to nano /etc/locale.conf it just printed command not found.
I've already tried with vim or other commands like sudo or apt to install a plain text editor but it's always the same and I also tried twice but nothing changes.
PLEEAAASE, I need help.
In Archlinux you should use pacman -S to install packages
try this :
"pacman -S nano"
you can see more information here:
https://wiki.archlinux.org/index.php/pacman#Installing_packages
You can install it with the Linux kernel etc.
For installing the kernel you use
pacstrap
so just add nano, vim or whatever text-editor you like to use.
For more information: https://wiki.archlinux.org/index.php/Installation_guide

How to install cmake-gui latest version on Ubuntu

When installing from package-manager, cmake-gui or cmake-qt-gui are shipped with an older version of cmake.
Even after I build and install cmake's latest version from source, cmake-gui continues to use the older version.
How to force cmake-gui to use cmake latest version builded from source?
The cmake-gui package from repository has a built-in cmake, those two have the same version.
Steps to install cmake-gui latest version.
Install checkinstall to easily remove cmake in the future: sudo apt-get install checkinstall;
Download latest cmake from official site;
Extract the compressed file to some folder;
Open a terminal inside that folder;
Execute: ./bootstrap --qt-gui;
Execute: checkinstall -D make install; You will be prompted with some questions, answer them;
Finished installation! Type cmake at Ubuntu's search bar and you will see a CMake icon;
Verify the version clicking at help >> about;
An alternative to the above.
Check if you have an old version of cmake with cmake --version. If so, remove it with sudo apt-get purge cmake
Download latest cmake from official site
Extract the downloaded cmake-x.xx.x file to your Desktop and then open a terminal inside that file.
Execute: ./bootstrap --qt-gui
After finished, run gmake as prompted.
Move cmake-x.xx.x file to /opt/ directory by going up to your Desktop with the terminal and then running sudo mv cmake-x.xx.x /opt/
Declare cmake binary as global by writing export PATH=/opt/cmake-x.xx.x/bin:$PATH in your ~.bashrc file.
Source with source .bashrc
You will then be able to open cmake or cmake-gui with your terminal from any path in your computer.

Installing cmake with home-brew

I'm new to programming. Can you please help me install cmake? I typed brew install cmake. What should I do next?
Typing brew install cmake as you did installs cmake. Now you can type cmake and use it.
If typing cmake doesn’t work make sure /usr/local/bin is your PATH. You can see it with echo $PATH. If you don’t see /usr/local/bin in it add the following to your ~/.bashrc:
export PATH="/usr/local/bin:$PATH"
Then reload your shell session and try again.
(all the above assumes Homebrew is installed in its default location, /usr/local. If not you’ll have to replace /usr/local with $(brew --prefix) in the export line)
Download the latest CMake Mac binary distribution here: https://cmake.org/download/
(current latest is: https://cmake.org/files/v3.17/cmake-3.17.1-Darwin-x86_64.dmg)
Double click the downloaded .dmg file to install it. In the window that pops up, drag the CMake icon into the Application folder.
Add this line to your .bashrc file: PATH="/Applications/CMake.app/Contents/bin":"$PATH"
Reload your .bashrc file: source ~/.bashrc
Verify the latest cmake version is installed: cmake --version
You can launch the CMake GUI by clicking on LaunchPad and typing cmake. Click on the CMake icon that appears.
On MacBooks with M1 processor:
Install:
arch -arm64 brew install cmake
Upgrade:
arch -arm64 brew upgrade cmake

Installation of RVM on Ubuntu Server 12.04

I am running a VM with Ubuntu Server 12.04.
I try to install a Ruby on Rails Application and first of all i needed to install Curl (which is done) and now i try to install RVM.
I am following this installation guide : ruby on rails installation
i am at the step when i have to run rvm to check. But it won't load when i try to enter :
source ~/.rvm/scripts/rvm
UPDATE :
I have this folder /usr/local/rvm
when i try to run this : rvm requirements
he says : the program 'rvm' is currently not installed....
but i did with this command :
\curl -L https://get.rvm.io | bash -s stable
as shown in the tutorial, or didn't it install ? i have no errors...
i even see : thank you for using rvm!
-sh: 1: source: not found
any ideas? i am relatively new to ubuntu. thanks in advance
as the message says:
-sh: 1: source: not found
where sh is your current shell - RVM is not compatible with it, you need to use bash:
sudo apt-get install -y bash && sudo chsh -s $(which bash)
I have not tested this steps so you might slightly adjust it for your system.
For RVM to work properly, you have to set the 'Run command as login shell' checkbox on the Title and Command tab inside of gnome-terminal's Settings page.
To do that open up a terminal by pressing CTRL+ALT+t. Once your terminal is open, right click the terminal, and click on Profiles then Profile Preferences.
Screen shot at http://rvm.io/integration/gnome-terminal