How to install/run premake4 - macos

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

Related

How to open Joplin from terminal

I have just installed Joplin on Fedora, by simply using wget; more specifically this is waht I typed in my terminal:
wget -O - https://raw.githubusercontent.com/laurent22/joplin/dev/Joplin_install_and_update.sh | bash
All went well and I can now open Joplin by searching it in the Gnome search bar; however I would really like to be able to open it from the terminal, instead of having to search it and then opening it by clicking on its icon.
Typing joplin on my terminal accomplishes nothing.
How can I set up a terminal command to open Joplin? In Windows, for example, I would add the .exe file to the PATH variable.. Is there an analogous way on Fedora or GNU/Linux in general?
I think I will answer my own question here! I realized it's really simple: just make an alias! We can use the search function of our file explorer to find the location of the .AppImage of Joplin, and then simply make the corresponding alias; so it's sufficient to simply type into the terminal:
alias joplin = "/path/to/joplin/appimage"
Done! The next time that we will type joplin the app will be launched! Easy as that!
This should work with any other app too!

Mac OSx and VS Code: getting `LSGetApplicationForInfo() failed with error` when starting from terminal

I installed VS Code and run the Shell Command: Install 'code' command in PATH as per documentation (and as found in this answer)
At first it was working, but after a reboot (I suppose) I couldn't get code started from a terminal (which is pretty useful).
This is the error I get:
LSGetApplicationForInfo() failed with error -10814 while trying to determine the application with bundle identifier com.microsoft.VSCodeInsiders.
Not sure if helpful: if I type which code I get /usr/local/bin/code.
One possible solution for this is to do the following:
Open the terminal
Find the path of the OS X app that you're having this problem with
Run the following command:
mdls -name kMDItemCFBundleIdentifier -r <app-path>
The bundle name that's returned by this will be the actual name of the bundle (which com.microsoft.VSCodeInsiders is not.)
You can then open the application by typing open -b <bundle-name> with whichever args afterwards.
Hints:
- Your <app-path> might contain spaces, in which case you should surround it with " (quotes).
- The <app-path> is the path to the directory that ends in .app -- the path of the "icon" you see in the finder for the application. In the terminal, the name of the folder will end with .app.
The solution above from marco worked, so to make it more friendly, I've added to my ~/.aliases
alias code='open -b com.microsoft.VSCode'
Then, again I can code . and open the vscode in my current path.

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

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

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