I'd like to install gcc and make on my Macbook Air, but I don't have root access on it. I found this link through searching on google, but I have no idea how to set up the prefix's so that the actual gcc executable can find the libraries. I have a directory set up with node.js and git installed at ~/usr/local and I'd like to install GCC there also. I have no idea where to start with make. Can anyone help? :D
How do I install GCC and make on a Mac without administrator access or using Xcode?
1.1k Views Asked by 16trohrt At
2
There are 2 best solutions below
Related Questions in MACOS
- How do I customize NSOutlineView to have border color?
- Force sublime text to use PATH from the shell value
- Do executable files always open a terminal window on MacOS?
- setting OpenGL version in objective-C
- C std library don't appear to be linked in object file
- Cross compile simple standard C program on Linux for Mac
- How to generate request format for WCF web service method for Mac and iPhone
- Bundle Multiple Xamarin apps in one pkg installer
- How to Handle Command Line Prompt from a Cocoa App
- AVFoundation - Process each image separately
- CMYK NSImage get pixel data
- how i get the mac of ibeacon or BLE
- Set JAVA_HOME on Mac
- Finding active IPv6 interfaces under Mac OS (using Python)
- OSX: Why is my launchd agent running my script twice?
Related Questions in GCC
- gcc static library compilation
- Different behavior of async with Visual Studio 2013(Windows8.1) and GCC 4.9(Ubuntu14.10)
- How to add directories to Cygwin gcc default search path
- Usage of #ifndef directive
- Failure to link a program with gcc -static
- Text as parameter in inline assembly (ARM)?
- Alternatives for strrspn and strfind functions(libgen functions in Solaris) in AIX?
- Incorrect format specifier with gcc compiler
- Why should I use a closing bracket in this?
- How can I compile *without* various instruction sets enabled?
- Automatically wrap C/C++ function at compile-time with annotation
- gcc compiled library: can successfully link with, how come it's "undefined symbol" when run the program?
- compiling caffe on Yosemite
- error - /usr/bin/ld: cannot find -lavutil in ubuntu 15.04
- Compatibility of libstdc++.so libgcc_s.so when upgrading GCC 4.1 to GCC 4.8.2
Related Questions in MAKEFILE
- Error trying to generate Makefile for glBinding
- Eclipse Makefile: Make Variables are skipped
- Errors in makefile for qemu 0.14.1 in ubuntu 15.04 64 bit
- C++ Struct prototyping in separate header file
- Reuse jquery plugin without conflict
- How do I a conditional build through a make file?
- basic makefile ifeq how to
- (automake, libtool) build fails in automake when using same source file name in different directory
- Makefile pattern rules differences
- Errors while trying to run make on source code
- Git tag name as version in Go via Travis-CI
- gcc make -properly sort out the sequence of making object files
- AOSP ROM for Samsung Grand duos GT-i9082 Error loading kernel
- How to address multiple definition compiler error
- How does MAKE remember the file timestamps
Related Questions in NON-ADMIN
- Cannot Install MSI With Custom Actions To Non-Admin With Non-ascii Characters in Username
- Installing a non-admin setup forced by Run as Administrator
- Where to store configuration data for universal access by admin and non-admin alike?
- NPM not working when setting up NODE/NPM as non admin
- Visual Studio Setup Project - System and User Installer in same MSI-File
- System.Data.SQLite slow connect for non-admin users
- Using Genisoimage Or Mkisofs on Windows 10
- Is there a way to execute a program with elevated privileges as a non-admin user in Win10?
- How do I install GCC and make on a Mac without administrator access or using Xcode?
- Is there any way to check if password is compliant for a standard user account as per gpo settings via powershell
- C# program won't launch when running as non-admin
- Creating Firewall rule for a process running in a Non-admin user account
- Wix non-admin installer tutorial?
- $ENV:USERNAME in SCCM Powershell script
- Run application updates with non admin users
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I tried this on Mountain Lion. Let me know if you have any problems or can’t get something similar working on Mavericks. I remember what a huge pain it was to learn to use computers back when I didn’t have my own and couldn’t install software on the ones at school.
This procedure will get you up and running with
makeand a basic C compiler.First, download the “Command Line Tools (OS X Mountain Lion) for Xcode - October 2013” package from https://developer.apple.com/downloads. You need to register and sign in with an Apple ID, but you don’t need to pay anything.
Then, after you open the DMG, unpack the files inside it into your home directory and add the tools to your
$PATH:Now open a new Terminal and try it out!
All basic C stuff should work. Some Apple-specific stuff might require fiddling around with search paths or might not work at all, but now you’re on your way.
Good luck!