How can I run Lua in MacOS X Terminal like Python3? - macos

I know in MacOS X Terminal, if you use the command "python3", it executes any code written in the Terminal. I want to type some code in the Terminal. Is this possible in any way?

go to https://www.lua.org
click get started, read
If you use Linux or Mac OS X, Lua is either already installed on your
system or there is a Lua package for it. Make sure you get the latest
release of Lua (currently 5.4.2).
Alternatively build it from source
https://www.lua.org/manual/5.4/readme.html

Lua 5.3.5 comes on the newer macs or is installed with system updates. Just go to a terminal window and type lua.

Related

Downloading Geany for El Capitan

I just started using OSX, I am somewhat more familiar with Ubuntu and Fedora. I am trying to install Geany and I was successful in doing so but it isn't recognizing the command. I used homebrew to install it and it is showing that it is available in my applications as Geany.app but I can't seem to find the icon.
There is a native Geany build for MacOS X available to download from the webpage.
To start Geany on MacOS on default the easiest way is to use Cmd + Space and type Geany. For more questions about MacOS I however recommend to check https://apple.stackexchange.com/

Fail to install QGIS on my mac

I tried several times to install almost everything from the website, http://www.kyngchaos.com/software/qgis
However, when I open QGIS, the initial image just got stuck on the sentence "starting python" and then just quit automatically.
My mac OS version is 10.8.5
Is such a problem due to my two versions of python in my system? The python in my system is 2.7.5, and perviously I also installed a standard version of python which is about 3.3. Then I realize that I could just use the 2.7 one instead, so I just dragged the whole fold named "python" from my application folder into trashcan and use the 2.7 from terminal instead. But I'm afraid that doesn't work either...
And how can I install the QGIS correctly now? the process seems to messy to me as a beginner...

Is there any alternative to bmtoa on Mac OS

I have an old Unix shell script that requires the use of bmtoa but I am unable to find it on Mac, and there isn't much on how to install it. Is there any way to get it supported on Mac?
bmtoa is an X11 tool, and is installed as part of the XQuartz package.

Vim Command T on Mac not working

I've compiled vim73 manually on Mac OS X Lion using xcode and ruby1.9.3 on rvm. I've compiled the C extension for command-t. When I press leader+t the command-t is opening, it is showing some files, but when I type some chars it doesn't search.
What is the problem?
This isn't a direct answer but FWIW I had (prematurely I'm sure) given up on Command-T + Lion until I got into using the Janus MacVim distro which does sucessfully pull it down, build and integrate it.
I have the same behaviour on my Mac. It works as soon as I :cd into a different directory. For some reason it does not work under ~/

confused about macports

I am using MacBook Pro Mac OS 10.5 with related version of XCode. I am new to this development environment. I am learning macports, and I read information about macports from http://www.macports.org/. But I am still confused what macports is after reading information from this site.
I am previous working on Windows and Linux, could anyone let me know what macports is (in easy words) and what is the similar item on Windows/Linux?
thanks in avdance,
George
macports is a way of getting executables and other compiled code installed on your computer without having to work out the details of compiling/linking each apllication.
It is equivalent to a package manager under Linux and other Unicies. There is no direct equivalent under Windows.
It is just a convenient way to install a lot of *nix soft on your mac book. They are installed separately (not overwriting) from binaries/daemons/libs already installed on your mac (by default in folder /opl/local). Also they are much fresher than those installed on your mac.
For example 10.6 ships with bash 3.2, but after running sudo port install bash, you will get version 4.x (to make it your default shell add /opt/local/bin/bash to file /private/etc/shells, run chsh -s /opt/local/bin/bash and reopen terminal).
Note other os x package managers: fink and homebrew (superuser question)

Resources