Cannot install CMake for Mac OS X 10.8 [closed] - macos

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
I do not have cmake in terminal, so I went to it's webpage download page, downloaded the "Mac OSX 64/32-bit Universal (for Intel, Snow Leopard/10.6 or later)" item, and the installer does nothing! I tried all 3 of them!!!
can anyone help me install cmake ????? huge thanks in advance!
EDIT:
system info:
OSX 10.8.4 Build 12E55
processor 2.5 GHz Intel Core i5

You can install cmake via Homebrew.
Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install cmake via Homebrew
brew install cmake

Related

Do I have wsl 2 [closed]

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 months ago.
Improve this question
wsl is already installed on my computer.
I enter the following commands on powershell
wsl --set-default-version 2
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
The operation completed successfully.
It looks like that wsl 2 has been installed
but
wsl --version
WSL version: 1.0.3.0
Kernel version: 5.15.79.1
WSLg version: 1.0.47
MSRDC version: 1.2.3575
Direct3D version: 1.606.4
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.900
The first line say that I have WSL 1.0.3
I don't know if this give the right result. The last line says that I have windows 10 although I have windows 11
See the page Install Linux on Windows with WSL:
Check which version of WSL you are running
Upgrade version from WSL 1 to WSL 2
AFAIK, if you use an up to date version of Windows 10 (or Windows 11), and the Virtual Machine Platform Windows Feature is enabled, then WSL 2 is installed on your system. Virtual Machine Platform enables virtualization support required by WSL 2.
When you attempt to enable WSL 2 when Virtual Machine Platform is not yet enabled, you will receive the following error message:
Please enable the Virtual Machine Platform Windows feature and ensure
that virtualization is enabled in the BIOS.
Since you did not receive this error message, I think that everything is fine and you now have WSL 2.
Run the following command and check the VERSION column:
wsl -l -v
The command lists Linux distros you have installed for WSL. If you see version 1, then run the following command to change it to WSL 2:
wsl --set-version MyDistro 2
Replace MyDistro placeholder with an actual name.

Why does Homebrew say I don't have the latest CLT, when no update is available? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Homebrew (brew doctor) emits the following warning
Warning: A newer Command Line Tools release is available.
Update them from Software Update in System Preferences or run:
softwareupdate --all --install --force
If that doesn't show you an update run:
sudo rm -rf /Library/Developer/CommandLineTools
sudo xcode-select --install
but neither option provides any available update. There's also a link suggested for manual download, but numerous CLT versions are listed there and it's not clear which one, if any, would resolve this message; and installing the latest (non-beta) doesn't do the trick.
Is this an error. Am I missing the latest command line tools and if so where do I get them?
(This is a question about configuring my development environment.)
macOS: 10.15.7-x86_64;
CLT: 1103.0.32.62;
Xcode: 12.1

How to check and upgrade Bash on FreeBSD - related to the Shellshock bug [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I read the article A Bash Code Injection Vulnerability via Specially Crafted Environment Variables (CVE-2014-6271) this morning when I came into work. I have updated Bash on most of my systems that I am responsible for, however, I was asked to upgrade Bash on a couple of FreeBSD servers.
How do I check which version of Bash is running on FreeBSD and how do I patch it to get rid of this exploit?
You can verify the installed version of bash with
pkg info bash
The patched version of bash is already in the ports tree, you can therefore upgrade it like any application.
Once bash has been rebuilt by the package build farm, you can upgrade bash as you would upgrade any package, with
pkg upgrade bash
If you are not familiar with pkg you should read the appropriate chapter in the Handbook.
Important note. At the time of writing it seems that the package is not yet available, so here is the manual procedure to build your own package from sources:
1. Be sure to upgrade your ports tree before trying to upgrade.
2. Move your shell to the ports directory and build
cd /usr/ports/shell/bash
make BATCH=yes build
3. Replace the old batch with
make BATCH=yes deinstall
make BATCH=yes reinstall
From this Ask Ubuntu answer, a command to check this is:
env x='() { :;}; echo vulnerable' bash -c 'echo hello'
If you get vulnerable, it's still vulnerable.
This should work with Bash on any system to test the vulnerability, AFAIK. I've tested on SUSE and Red Hat Linux, but they're not BSDs. To check the version, it should be similar to other systems:
$ echo $BASH_VERSION
4.3.11(1)-release
$ bash --version
GNU bash, version 4.3.11(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
See the FreeBSD forums for more information on downloading/installing the patch. From that link:
Everything before 4.3.25 is vulnerable, 4.3.25 should contain the fix.

Why is java not recognized after Oracle JDK 7 is installed in Mac OS Lion [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I have installed Oracle JDK 7 u21 (64bit) on my Mac OS X Lion 10.8.3 MacBook.
Both javac -version and java -version return the correct information on my machine.
Now, based on my installation instructions, my friend installed it on her machine.
[Note:I have a detailed installation document that I made for this purpose.]
Previously the machine had Apple JDK 6 on it.
However after the installation, she reports a problem.
When she types in sudo javac -version, she gets returned the correct javac version.
However when she tries sudo java -version
she gets an error, telling her that java is a command that it does not recognize.
I spent a couple of hours yesterday, trying to get this problem fixed on her machine through a Skype session, but to no avail.
So the purpose of this question is to find out: what could she be missing in this installation and configuration? What could be going wrong on her machine with the same instructions that worked on my machine that has an identical version of Mac OS and the same Oracle JDK installer?
You could try to check if the java plugin is installed.
Open a terminal on her Mac and run this.
/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home/bin/java -version
The directory jdk1.7.0_10.jdk might be different depending on your version number.
This is the path where Oracle sets up the JDK I believe. If you cannot find that something is wrong. If you do find it you should be able to add /Library/Java/JavaVirtualMachines/jdk(VERSION NUMBER HERE)/Contents/Home/bin/ to your path by editing ~.bash_profile via terminal. You can do that like this:
cd ~
nano .bash_profile
(Enter the info like this at the bottom of the file): export PATH=$PATH:/Library/Java/JavaVirtualMachines/jdk(VERSION NUMBER HERE)/Contents/Home/bin/
ctrl+o to save. ctrl+x to exit.
Then close your terminal and re-open it. Try that java command again.

How do I install IBM DB2 Express-C on Mac OS X 10.7 Lion? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
I was able to install and use IBM DB2 Express-C 9.5.2. beta in Mac OS X Snow Leopard with no trouble at all. In Mac OS X 10.7 Lion, though, installation using the db2setup script fails with:
DBI1189E There has been an attempt to use db2setup on an image for a platform that does not match the current platform 'Darwin [x86_64]' on which it is being run.
How can I work around this to install DB2 Express-C on Lion?
edit: moved answer to answers
The problem is that the db2setup script does not properly recognize the architecture x86_64 reported by
uname -m
To make the installation script work, edit the db2setup script and change this:
"Darwin")
case ${OSM?} in
i*86)
INSTALLDIR="${PROGDIR?}/db2/macos/install"
PLATNAME="MacOS" ;;
esac ;;
"HP-UX")
to this:
"Darwin")
case ${OSM?} in
i*86)
INSTALLDIR="${PROGDIR?}/db2/macos/install"
PLATNAME="MacOS" ;;
x86_64)
INSTALLDIR="${PROGDIR?}/db2/macos/install"
PLATNAME="MacOS/x86_64" ;;
esac ;;
"HP-UX")
Now run db2setup. The script should recognize the architecture and proceed with installation as normal.
Also note that enabling the root account, see the instructions on: http://support.apple.com/kb/HT1528?viewlocale=en_US

Resources