I am installing openERP following the manual in [1]: http://netbeam.in/blog/install-openerp-on-mac-osx/
I execute the next command:
tar tvfz openerp-7.0-latest.tar.gz
Before is supossed that I will execute:
sudo mv openerp_XXXXXX to home directory
cd openerp_XXXXXXX
But I don´t know where is the path of openERP is installed.
Can you help me to end installing openERP?
I am use Mac OS Yosemite.
Thank you so much.
openerp is still inside the directory you extracted in step 6 (tar tvfz ....), but that directory is still located in your Downloads directory which isn't a good place to stay.
So they instruct you to move the openerp directory to your home directory: sudo mv openerp_xxxxxx /Users/<your-username>/ should be the right command. After that, the next command should be cd /Users/<your-username>/openerp_xxxxxx to go to the moved directory.
Related
I am trying to install Ruby on a remote server using rbenv.
However, when I run the command rbenv install 2.7.2, I get the error below:
ruby-build: TMPDIR=/tmp cannot hold executables (partition possibly mounted with noexec)
I have rbenv and other dependencies for the Ruby programming language properly installed.
After a few research and trials, I was able to solve it.
Here's how I solved it:
The issue was that the rbenv installer needed a directory to store temporary files while it is downloading and installing ruby, however, the /tmp directory which is the default directory for storing temporary files wasn't accessible by my current user.
I tried to change permissions for the /tmp directory to allow it become accessible to my current user, however, I was unsuccessful.
All I had to do was to create a new tmp directory in the home directory of my user:
mkdir ~/tmp
Next, I opened the .bashrc file in the home directory of my user:
sudo nano ~/.bashrc
Next, I added the line below to the bottom of the file and saved:
export TMPDIR="$HOME/tmp"
Finally, I restarted my terminal or ran the command below to load the newly added paths into my current shell/terminal session:
exec "$SHELL"
Now, I could run the command rbenv install 2.7.2 and it worked fine.
Resources: TMPDIR=/tmp cannot hold executables (partition possibly mounted with noexec)
Adding to the OP's answer, you don't need to create a new tmp folder. Only adding to the path should work as well.
I am trying to install YouCompleteMe on Mac and following the procedure, I am not able to locate ~/.vim/bundle. I can locate .vim in my home folder but there is no directory bundle inside it.
I am following this link https://github.com/ycm-core/YouCompleteMe/blob/master/README.md#installation to install YouCompleteMe.
if it doesn't exists it is safe to create it
You first need to install vundle Plugin Manager that will create this folder for you.
I use v0.6, but certain packages do not function with v0.6 (such as Interact.jl). How can I install v0.5? I am running Ubuntu 16.04.
First we have to download the latest Julia version from https://julialang.org/downloads/
I used the “Generic Linux Binaries for x86” version. The choice between x86 and ARM depends on the processor of your machine. Also choose between 32 bit and 64 bit versions based on the operating system and processor you have on your machine.
After download, you will get a compressed tar.gz archive having name similar to “julia-0.6.2-linux-x86_64.tar.gz”. As the “julia-0.6.2-linux-x86_64.tar.gz” name suggests that I downloaded the Julia version 0.6.2 which is latest at the time of writing this.
The names may differ. Adapt the names accordingly.
Remember these are binaries, these don't need to be installed as they can be directly used from the directory they are extracted.
I am assuming that the downloaded file is in your ~/Downloads directory of Ubuntu.
Open the terminal and navigate to the directory where the downloaded tar.gz file is stored, in present case the Downloads directory.
The terminal when just opened will show:
x#xpc:~$
where x should be replaced by your username and xpc should be replaced by your computer name.
Navigate to the Downloads directory using cd Downloads and then press Enter to get following terminal:
x#xpc:~/Downloads $
Extract the tar.gz file using the command
tar -zxvf julia-0.6.2-linux-x86_64.tar.gz
Now a directory with extracted contents will be generated in the same parent directory as of the compressed archive with a name similar to julia-xxxxxxxxxx where xxxxxxxxxx may be a combination of alphabets and numerals.
This is the final directory you need to run the latest Julia version, no installation is needed.
To run Julia, you can directly run using the julia file in location julia-xxxxxxxxxx/bin/julia as discussed below.
Navigate to the bin directory in the extracted directory using
cd /Downloads/julia-xxxxxxxxxx/bin
The terminal will now be like:
x#xpc:~/Downloads/julia-xxxxxxxxxx/bin $
Now run the command ./julia to run julia on the terminal as shown below.
The terminal will now change to julia as presented below. I know the representation is little different here as this is all I can manage to copy from the terminal to present it to you.
julia>
But the problem is that I have to navigate to the directory every time to run Julia.
Many people have discussed on the internet about defining the path and alias through very complex procedures and as I am not a hardcore computer geek, it was really difficult for me to understand.
I came to know about making a soft link.
So I decided to make a soft link to the Julia to run it directly from anywhere with a short command without navigating to the directory containing it.
I always try to do things neatly, so I decided to keep the extracted directory named julia-xxxxxxxxxx in the /opt directory of my system as most of my important programs reside in that.
You need root permissions to copy a file into the /opt directory, so I used the command sudo su and then provided password to get the super user privileges:
x#xpc:~$ sudo su
[sudo] password for x:
root#xpc:/home/x#
Now navigate to the directory presently containing the extracted directory:
root#xpc:/home/x# cd /Downloads/
root#xpc:/home/x/Downloads#
Copy the directory using:
root#xpc:/home/x/Downloads# cp -r julia-xxxxxxxxxx /opt
After the directory is copied to the destination, now we will make the soft link in a directory which is in the system path so that the soft-link can be called from any location to run Julia.
To find out the directories in the system PATH use echo $PATH, you will get a list of paths of directories separated by colon(:) such as /usr/local/bin. You can use any of them. I used /usr/local/bin for the soft link.
Navigate to the chosen folder.
root#xpc:/home/x# cd /usr/local/bin
The terminal will become
root#xpc:/home/x/usr/local/bin#
Create the soft link using
root#xpc:/home/x/usr/local/bin# sudo ln -s /opt/julia-xxxxxxxxxx/bin/julia julia
Now return to the normal user terminal using the keyboard combination Ctrl+D at the empty terminal root#xpc:/home/x/usr/local/bin#.
The terminal prompt will become:
x#xpc:~$
Type the newly made soft link i.e. julia in the terminal as shown below
x#xpc:~$ julia
This is where the magic happens and you get this:
julia>
The instructions can be used for any version of Julia in Ubuntu.
Source
Firstly, you should really read the post that Reza Afzalan linked. It gives you everything you need to know about how to install. If you prefer a list:
Go to the Julia download page.
Download the Generic Linux Binary for your OS (probably 64-bit for Ubuntu 16).
Install it.
Find where the installed Julia binary executables are stored on your machine.
Symlink Julia v0.5 and Julia v0.6 to different aliases, e.g. julia5 and julia6. You can store the symlinks in a directory like /usr/local/bin.
Open julia5.
Start downloading your packages with Pkg.add.
It's very easy, here's how to install it on Linux in 8 steps:
1- go to Julia downloads page
2- Choose you version (32bit or 64bit) from Generic Linux Binaries, and then download it.
3- extract .tar.gz file in home or any place you would like to install Julia on it.
4- run > gksudo gedit /etc/environment on your terminal to setup envirnment path.
5- edit file :/Path_To_extracted_File/bin in my case it was like this:
":/home/okasha/julia-d386e40c17/bin"
6- Save edits and close the file.
7- Restart your machine.
8- Open your terminal again and run > julia -version
you shoud get "julia version 0.6.2" for Example according to your installed julia version.
Run > julia to open julia session.
Reference
Just type this
sudo apt install julia
I am new with Symfony and I cannot manage to install it on my MAC book pro (version 10.9.5).
I go the the Terminal and execute this code (as explained but in a folder "symphony" I created in MyDocuments):
MacBook-Pro-de-Sophie:~ sophiejarlier$ cd Documents
MacBook-Pro-de-Sophie:Documents sophiejarlier$ sudo curl -LsS https://symfony.com/installer -o /symfony
MacBook-Pro-de-Sophie:Documents sophiejarlier$
But nothing has been installed, the folder symphony is empty... Should I install something else before? I am lost...
Thanks for your help.
You are new in terminal also. What you done is just you downloaded symfony installer in your main root directory / where is main stuff like /var, /usr etc.
You forgotten the installation part.
Move your symfony installer (just downloaded) using :
$ sudo mv /symfony /usr/local/bin/symfony
Give execution permissions :
$ sudo chmod +x /usr/local/bin/symfony
Then, go (open a terminal) in your webserver directory (default /Library/WebServer/Documents).
And do your install by executing the following command :
$ symfony new name_of_your_project
Your project is created in the folder name_of_your_project of your current directory.
All the instructions are coming from the documentation
I've been using homebrew for a while on OSX Mavericks, however I'm now dealing with needing to add files to folders of those same installed programs.
Here's the issue, when typing:
$ brew info ant
I get /usr/local/Cellar/ant...., as does any of my installed programs. The issue is that the Cellar doesn't seem to exist on my computer. When I search from Spotlight it finds no usr folder, with the exception of some nested within my Eclipse folder that hasn't been used for years. When I attempt to:
$ cd ~/usr/
it, too, doesn't exist. Also NO folder on my computer exists called Cellar (that Spotlight can find)
Does homebrew store this folder in some hidden way? (I'm hesitant to think this is the case, since I have all hidden files shown)
While in the Finder, enter Cmd+Shift+G and enter /usr/local/Cellar in the dialog that pops up.
Alternately, in Terminal.app (or whatever terminal program you're using), enter open /usr/local/Cellar at a prompt.
Both will open up a new Finder window to the homebrew Cellar directory.
You can verify that the Cellar directory is in the default location with brew --cellar in the terminal.
I found my Cellar folder on:
/opt/homebrew/Cellar
But the best trick is run the command brew --cellar
Re-installing the homebrew solved the issue for me.
It looks like the issue after upgrading to Mavericks.
See https://brew.sh/ run the install again.
You need to type
cd /usr
not
cd ~/usr
/usr is at the top of the file directory for unix based systems, its not something in your home folder (~ = /Users/yourname )
to get spotlight to see the folder you will have to make a symlink to it somewhere outside of /usr.
This post covers a similar problem and has a suggested solution using Automomator to prevent any issues with any apps installed with homebrew: https://apple.stackexchange.com/questions/23653/can-i-make-a-symlink-to-a-app-folder-in-applications-directory-show-up-in-spo