Is it possible to install Pascal compiler on a mac without installing XCODE? - macos

I am looking for a way to install fpc or any other pascal compiler on my macbook without installing the 7gb Xcode because my internet sucks and I am a VIM guy. Thanks.

Yes, it is!
You need Homebrew
Installation of Homebrew is simple just paste this into your terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
You need to install fpc
Same case; Paste it into terminal.
brew install fpc
You can start to use fpc

Related

how to uninstall homebrew using an arm based Mac?

I installed homebrew today. And I did something wrong so that my homebrew can't work now. Since I use an arm based mac, I am hard to find solution to uninstall my homebrew which installed in /opt/homebrew/.
To uninstall Homebrew, run the uninstall script from the Homebrew/install repository.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall.sh)"
Download the uninstall script and run /bin/bash uninstall.sh --help to view more uninstall options.
Make sure your homebrew path is correct and then run the script:
echo $HOMEBREW_PREFIX #=> /opt/homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
See: https://github.com/homebrew/install#uninstall-homebrew

Trying to install FFmpeg via mac terminal and can't cd into the yasm folder

I couldn't expand the yasm archive via terminal so I did it via Finder, went back to terminal to cd into the folder and it says it doesn't exist even though I'm looking right at it in the Finder. What am I missing?
I took a screenshot but my reputation isn't high enough to post it. You can see it here:
It's better if you install it via Homebrew:
brew install yasm
brew install ffmpeg
If you don't have homebrew installed you can do it by typing the following:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Build <boost/thread/thread.hpp> for Mac OS X

From the documentation on the boost website, thread.hpp is not a header-only library, it needs to be built separately. I wonder how can I build thread.hpp separately?
Rather than re-invent the wheel, the easiest thing to do is to get boost from somewhere like Homebrew or MacPorts.
E.g. first install Homebrew:
$ ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
and then just:
$ sudo brew install boost
and you're good to go.

How can I install GNU Octave on Mac with Fink ?

I tried to install GNU Octave on my Mac using Fink by this instruction
http://wiki.octave.org/Octave_for_MacOS_X
I think I have followed all the instructions but I can't run Octave.
How can I check if it is installed correctly?
I tried typing 'octave' in the terminal but it says 'command not found'
Or, is there any easy instruction for Octave installation?
I've found many install guides but they are all different and assumes some knowledge.
Incidentally, I have installed Octave GNU today twice on two different machines (both running Lion).
I needed the latest version of Octave (3.6.4), and used Homebrew.
I already had XCode installed, so the rest:
Install Homebrew
Based on the instructions in this page, I ran:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
Install Octave
Following this guide, I ran:
brew tap homebrew/science
brew update && brew upgrade
brew install gfortran
brew install octave
Install AquaTerm
Notice that you need this before you install gnuplot (or gnuplot won't see aqua as a valid terminal and you may get 'unknown or ambiguous terminal type' error).
Simply downloaded the latest version (1.1.0) dmg from SourceForge.
Install gnuplot
brew install gnuplot
You could try installing it with Home Brew. Once you download and install Home Brew, use this guide to get Octave installed.
Easiest option would be using the precompilled .app
I've tried the precompiled .app, but had issues with certain functions (like sound),
whereas the macports version always worked.
I usually install it using macports:
sudo port install octave
for the basics.
You might need other port variants/octave modules installed:
sudo port install octave octave-signal octave-plot octave-image octave-signal
Need to have XCode with Command Line Tools first and Macports with this route though
How to know if a Fink package is installed
By default (and this should be your case too if you didn't changed it), Fink installs everything under /sw, i.e. the binaries you are looking for should be in /sw/bin/.
Run ls /sw/bin/octave*and, depending on the output, you then have two choices :
Either the Octave binary is inside /sw/bin, in that case run echo $PATH and learn more about PATH Variable to fix your problem.
Otherwise, if there is nothing inside, there might have been a problem with the install. Try running fink install octave once more, look closely at the output and update your post if necessary.
This is simply an update on the instruction provided by Izhaki (that I ran on Mac OSX 10.8.4).
You may be required to update XCode to 4.6.3. This can be done through the AppStore.
If you encounter the error:
Error: Download failed: http://threadingbuildingblocks.org/sites/default/files/software_releases/source/tbb41_20130613oss_src.tgz
during
brew install octave
Then invoke:
brew update
brew install octave
and the install will pick up where it left off. Other than that, the instruction worked seamlessly.

Install libtools on mac

I wanted to installs libtools on mac. I went to the apple developer site and downloaded the .dgm that downloaded the cmdline tools for Xcode for Mountain Lion.
But when I go to terminal and type libtools it says that the bash command is not found.
Could someone please tell me how to install libtools on mac.
If you installed brew like this
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You can just write in terminal
brew install libtool
Note that libtool is called glibtool on OSX:
This tool is installed in OS X as glibtool to avoid a name conflict with NeXT libtool.
Source: https://developer.apple.com/library/mac/documentation/Porting/Conceptual/PortingUnix/compiling/compiling.html#//apple_ref/doc/uid/TP40002850-SW5
Install libtool on MacOS as below -
brew install libtool
Extreme rookie mistake. The command is libtool and not libtools.
I found the installation link in Apple Developers website
You've to un-pack the package and it will automatically start the installation on Xcode.

Resources