realpath couldn't resolve "/usr/bin/-perl" on Mac Terminal - macos

I'm trying to install Tails on my Mac using this instruction guide (https://tails.boum.org/doc/first_steps/installation/manual/mac/index.en.html) and I've been successful up to step 4, sub-step 6 where it says "To run isohybrid.pl on the ISO image, execute the following command, replacing [tails.iso] with the path to the ISO image that you want to install."
Below is my terminal window. I have no idea what a majority of this means and this is actually my first time ever using terminal. I was able to figure out how to check my hidden bin folder through finder and I checked for -perl and I didn't see that file in there. I saw perl, perlbug, perldoc, etc. but no -perl. Also I'm confused as to if this command actually did something because the 'couldn't resolve' message and the '[Process completed]' message seem kind of contradictory. Anyway, if anyone could help me get unstuck, that would be great :)
Here is a screenshot of my terminal window: http://i.stack.imgur.com/Hmc8c.png

Related

Cannot connect to X server using docker on OS X - Part II

I'm having the same difficulty as the one expressed here: Cannot connect to X server using docker on OSX
I'm very confused about the recommended instructions in the above link (I'm a novice on docker), and I'm hoping to get clarification about the following:
1) Do we "touch foo.foam" in a regular OS X terminal or do we touch it in the docker terminal; in my case, following "docker run -ti openfoamplus/of_v30plus_rhel66 /bin/bash"
2) You suggest running paraview (mine is the most recent) just like any other Mac app. So, basically, to double-click on paraview in the Applications folder? But when opening foo.foam via the Open Menu do we just open foo.foam and press the Apply button (it gives errors), or do we actually enter "paraview foo.foam" as per your instruction above? If the latter, then nothing really happens; I can't open anything!
3) If we're supposed to just open foo.foam, what do we do after that? How is docker even aware about any of this? Anyway, when I type paraview from within docker (after foo.foam is opened) I get the same X server error. I wouldn't expect otherwise!
Hopefully, you can provide a more step-by-step set of instructions?
Thanks in advance
#First steps with OpenFoam
You've successfully followed the instructions to run the cavity problem, but you run the final command paraview and the spits back an error about x server being unavailable.
here's what you do:
Download paraview natively to your mac. Then open up a terminal window and cd into the directory that you ran the cavity problem in. (note sure what directory? jump back to your docker shell and run echo $FOAM_RUN)
Once you're inside the cavity directory, make a new .foam file and open it with paraview.
$ touch foam.foam
$ open -a paraview foam.foam
Click on that Apply button - middle of the screen on the left. At the top screen you can then select things like pressure p and plot type surface, and step through the time dumps in the upper right (initially my mesh didn't render correctly, so I had to deselect internalMesh, apply, and then select it and apply again).
Not really sure what you're looking at? Here's the tutorial for the problem:
http://www.openfoam.com/documentation/user-guide/cavity.php#x5-40002.1

Get the command line version of Maple

I am a mac user and I have maple installed on my computer. I can open maple like any other app. However I would like to work in terminal. I googled and
found that I can do that but I need to change some path. It was not well explained. I would really appreciate if someone can help me setting my path.
Thanks in advance.
You do not have to adjust the PATH environment variable. Doing so just makes calling the maple launch script for the Commandline Interface (aka CLI) a little easier.
Open a terminal window (xterm). Find the maple script of your Maple installation. Perhaps it will be located in some directory like /Library/Frameworks/Maple.framework/Versions/Current/bin/ say. You should be able to run that script in your terminal by running it using the full name, eg. /Library/Frameworks/Maple.framework/Versions/Current/bin/maple.
You could also alias the full name (explicit location) to some single short word.
That maple script sets everything it needs to run the Maple binaries, etc. You just have to run it (in a terminal).
Or you could make OSX launch a terminal window and call the maple script. Doesn't OSX have an automator for adding such things to the Dock? I forget the syntax but could it be something like,
open -a "/opt/X11/bin/xterm" --args "-e /Library/Frameworks/Maple.framework/Versions/Current/bin/maple"

How to install/run premake4

I am trying to install premake4 on mac osx but I cannot find any documentation and any help anywhere. I would appreciate if anyone can help me.
I have downloaded/saved premake-4.4-beta5-macosx.tar.gv file and when I double clicked on it, it gave me a file named premake4. When I double clicked on that it opened a page (a terminal if I am not mistaken) that contains the following:
Last login: Day Mon * **:**:** on ******
/Users/******/Downloads/premake4 ; exit;
*****-**********:~ ******$ /Users/******/Downloads/premake4 ; exit;
Type 'premake4 --help' for help
logout
[Process completed]
I cannot type or change anything on this. I tried typing 'premake4 --help' without single quot in the terminal but it says command not found.
I don't know what else to do. :(
You are going to need to read up on how to use command line applications on Mac OS X. Here's a Treehouse article to get you started.
The "command not found" message is because the Premake executable is probably sitting in your Downloads folder, which isn't on the list of paths that are searched to find programs. This might work better
~/Downloads/premake4 --help

Changing behavior in Mac Terminal (e.g. wildcards don't work)

Let me preface this by saying I've read enough to believe this has something to do with the login terminal and .bashprofile, etc. But I don't understand enough about the underpinnings of the Mac terminal to be able to solve this.
When my prompt reads
my-mac:~ [username]$
... where [username] is my login name, I generally type in
cd doc*
to go into my Documents folder. However, occasionally this command doesn't work. For instance right now I am getting the result
bash: cd: doc*: No such file or directory
Even when I close and reopen Terminal, I'm still getting this error. Can someone please help me understand both how to fix this and the root cause of why this happens?

Dia command line not working on OSX

I've got a problem with using Dia from the command line on OSX 10.7.4. I downloaded and installed the OSX dmg from http://dia-installer.de/download/macosx.html I've been using it to create graphics for a paper and absolutely love it.
I'm using a makefile to call pdflatex, bibtex, and R so that that it will build everything from scratch if need be, but can't get Dia's command line to work.
I want to use the command line with -e and -t to export the graphics to a specific directory so that pdflatex can put them in the pdf. (http://dia-installer.de/doc/en/re01.html)
The problem that I'm running into is that anytime I call it from the terminal, it brings up the GUI. Even if I give move to /Applications/Dia.app/Content/Resources/bin/ and use the command "./dia -v". It gives me a bunch of errors about "Input method" and then shows the GUI.
I looked on the Dia FAQ and it has a lot of information for the Windows command line, but nothing for OSX.
I'm hoping that someone here has run into this before and knows how to get it to work.
Thanks in advance.

Resources