Run mac application on linux

Can I run OSX applications?

Just wondering, are there any projects like WINE, but for Mac software? That is, can we use a program that acts like a compatibility layer to run Mac apps?

I managed to run terminal programs like htop on a mac, when I took the file straight off my Ubuntu laptop.

@Alvar Don’t think any application can work on one or the other. Ubuntu is Linux-based while macOS is Unix-based; they both use the Bash shell which makes high-level programs semi-compatible.

9 Answers 9

Recently featured on Slashdot was the Darling project, which aims to provide Darwin / OS X emulation and can already run some Mac OS X applications on Linux.

It appears to be developed for academic purposes and is still in its early stages, but it looks promising. It is based on the aforementioned GNUstep.

There are various projects that attempt PowerPC emulation, but none that would allow you run your standard Mac OS X application.

GNUstep as an equalivelent API to Cocoa, the NeXTstep based Mac API, but it’s not complete, needs recompilation, and then your Mac app looks like it went back in time.

There was a project attempting to do this for very old Mac Software (68k) called Executor: http://en.wikipedia.org/wiki/Executor_%28software%29 — it is, of course, defunct.

There is no modern equivalent as far as I can tell, and making such a thing would be almost as big a task as Wine itself.

EDIT: Reading the other answers, it appears that there are now ways to do what OP asked. I’m leaving this answer here because it is still a viable alternative on some hardware for applications which won’t run under emulation.

While the other answers are correct (no, you cannot), there is a way to install OSX on Virtualisation software such as VirtualBox. This is not what you asked for, so be careful, but it may get you the results you need.

I have got this working on one machine, but couldn’t on another. Whether or not it will work for you depends greatly on your hardware.

You’d be breaking the EULA unless you’re doing this on a Mac. @scottl the reason it only works for specific machines, is because macOS is optimized for Intel processors only (atleast the current versions).

There is no way(without emulating/virtualizing Mac OSX itself) to run mac programs, sadly. Unlike Windows, whose libraries have been legally replicated for WINE, there is no such replication for Cocoa, except Gnustep, which is very incomplete.

You cannot run Mac applications on an Ubuntu machine. Even if it were possible, it would be very hard to satisfy the requirements of most applications.

Читайте также:  System boot time linux

Most Mac applications use features like /Library/Application Support , something Ubuntu doesn’t have (to my knowledge). Some apps even modify system files or add new ones (The former could break your system if they happen to be in the same location).

However.

If you really want to run Mac apps, your best bet is to either virtualize macOS or boot it natively. The latter would (most likely) be the hardest; it’s called hackintoshing and it’s a very popular method (but breaks the Apple EULA).

If you can find a distro of macOS that would work on your hardware, it’s not a bad idea to give it a try if you really want native support. However, it could be a tough job. I won’t go into much detail, but most of what you’d normally want to know can be found with a quick Google search.

Источник

How can I install software (made for Mac OS) in Ubuntu? [duplicate]

I installed Ubuntu 14.04 LTS in my HP Compaq 6910P notebook. Now I want to use Mac based software, since I can use Windows based software through Wine. But I do not know how to install and run Mac based application in my Ubuntu 14.04.

2 Answers 2

Wine can run windows applications, but there is no robust equivalent allowing Mac applications to run on Linux. Some projects that try to change this are:

  1. Mac-on-Linux
  2. Darling
  3. http://opensource.apple.com/ — not an ’emulator’ but provides the iOS/OSX kernels, licensed under free software licenses

There aren’t really any ways to run Mac-specific apps on Linux. You can run a large number of cross-platform apps; Gimp and MacVim come to mind. But if you must run mac apps, the most reliable answer is to buy a Mac. You’ll always have the latest versions and you can also run any other OS using Fusion, Virtual Box or Parallels.

The second best option is to run Hackintosh (aka, OSx86). I tried this years ago and had mixed results. You had to be willing to spend a bit of time tuning/tweaking and making sure your kext files worked. I know people who’ve done it, but I lacked the patience.

Linked

Hot Network Questions

Site design / logo © 2023 Stack Exchange Inc; user contributions licensed under CC BY-SA . rev 2023.7.13.43531

Ubuntu and the circle of friends logo are trade marks of Canonical Limited and are used under licence.

By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy.

Источник

run Mac OS X applications on Linux

The only way would be to create an OS X VM (e.g. using kvm or Virtualbox ). Unfortunately, there would be licensing issues with doing that — Apple don’t want you running their OS on non-Apple hardware. I don’t think they even sell OS X on DVD any more (you’re supposed to get OS X with your Mac and upgrade it over the internet when they tell you to).

Читайте также:  Подключить диск линукс fstab

1 Answer 1

Darling (link) is a project that aims to become analogous to wine. Currently it only runs some command-line OSX programs, though. As of mid-2019, it can run many command-line programs, and according to their homepage appears to be approaching the point where it can run some rudimentary graphical software as well. It probably won’t run what you want just yet, unless it’s text-based.

As long as the developers of the OS X program released their source code and used cross-platform libraries (such as QT, GTK, X11, GNUStep or WxWidgets) you should be able to re-compile an OS X program for linux. OS X and Linux are much more compatible at the API level than the ABI level.

GNUStep implements the Cocoa APIs of NeXTStep and OS X. It was shockingly complete when I tried it, in terms of how much it seemed capable of doing versus how little seems to use it in the wild. GNUStep only works on the source-code (API) level, so it works if a program is open-source and uses Apple’s Cocoa GUI (NOT «Aqua» which is proprietary). It depends on being able to compile and link the code.

Think of the API, or Application Programming Interface, as something like a car’s dashboard — everything is visible to the driver of the car, and you can get into someone else’s car and find his different dashboard just as easy to figure out.

Think of the ABI, or Application Binary Interface, as the engine of the car — it can vary greatly between makes and models, and you probably won’t be able to trade your Chevy engine into a Volvo very easily.

Darling would in this analogy be putting the Chevy engine in a Volvo’s chassis, and compiling from source would be like just getting out of your Chevy and getting into the Volvo. One is much simpler to do than the other from a programmers’ perspective.

But Apple has some proprietary user interface libraries that no one else has, too. If the developer used one of these (such as Aqua), you’ll have to wait and hope that Darling grows up like Wine did, or port it yourself. If there is no source code released, it’d be like if the engine was made so big that it could not fit in the Volvo’s engine bay, or designed for connecting to a front wheel drive car where your Volvo was rear wheel drive. Unless someone is an absolutely insane maniac (in the best possible way) who has months of free time and ridiculous amount of dedication, it’s not likely to happen.

Additionally, GNUStep is not 100% complete in terms of coverage of the Cocoa API’s, so some shoehorning is likely still going to be necessary for complex programs. And GNUStep does not provide an xcode-equivalent build system — that is, if the original developer used the XCode IDE’s «build» system exclusively, you may be left writing makefiles for it. This was the most frustrating part for me, since while I have experience with compiling and linking software, it’s hard to wrestle useful information out of a format like a .xcodeproj that I have no prior backend experience with.

Читайте также:  Linux user file path

Источник

🍏 Как запускать приложения Mac на Linux

К сожалению, это не означает, что приложения могут плавно переходить между операционными системами.

Для запуска приложений Mac в Linux вам понадобится виртуальная машина или слой перехода.

Запустите виртуальную машину MacOS (все приложения)

Самый надежный способ запуска приложений Mac в Linux – через виртуальную машину.

С помощью бесплатного гипервизора с открытым исходным кодом, такого как VirtualBox, вы можете запускать macOS на виртуальном устройстве на вашем компьютере с Linux.

Правильно установленная виртуализированная среда MacOS без проблем запустит все приложения MacOS.

Подобная виртуализация рабочего стола требует значительного объема оперативной памяти, поэтому она может работать некорректно на устройствах с ограниченными ресурсами.

Для машин с техническими характеристиками наилучшим вариантом является виртуализация операционных систем через виртуальную машину VirtualBox.

Использование Darling Translation Layer (только CLI)

Вы также можете запустить слой перехода под названием Darling.

Он работает как WINE, которая создает среду перевода с Windows на Linux, которая позволяет вам запускать некоторые приложения Windows в системах Linux.

Darling пытается достичь той же цели между macOS и Linux.

Поскольку macOS и Linux совместно используют одну и ту же базу в стиле UNIX, Darling менее ресурсоемок, чем WINE, и в большинстве случаев дает лучшие результаты.

В настоящее время Darling может работать только с очень простыми приложениями с графическим интерфейсом и несколькими приложениями командной строки.

Хотя поддержка приложений с графическим интерфейсом является целью проекта, эта функция еще не реализована.

По сути, вы можете надежно запускать оболочку macOS в Терминале и, возможно, не сможете эффективно запускать другие приложения.

Он также содержит огромное количество кода, требующего около 12 гигабайт дискового пространства после сборки.

По сути, это дублирует функциональность операционной системы MacOS.

Поэтому, если вы беспокоитесь о том, что удаленные исполняемые файлы могут повредить вашу систему, вы можете избегать пакетов такого размера.

Сборка и установка дорогой Darling

1. Следуйте инструкциям по установке, чтобы загрузить правильные зависимости для вашего дистрибутива Linux со страницы установки Darling.

В зависимости от вашего дистрибутива вам может потребоваться выполнить длинную команду.

Например, для Ubuntu выполните следующую команду терминала, чтобы загрузить зависимости Darling:

sudo apt-get install cmake clang bison flex xz-utils libfuse-dev libudev-dev pkg-config libc6-dev:i386 linux-headers-generic gcc-multilib libcap2-bin libcairo2-dev libgl1-mesa-dev libtiff5-dev libfreetype6-dev libfreetype6-dev:i386 git libelf-dev libxml2-dev libegl1-mesa-dev libfontconfig1-dev libbsd-dev
git clone --recursive https://github.com/darlinghq/darling.git

3. Измените каталог на Darling:

5. Сконфигурируйте сборку с помощью cmake:

Процесс сборки может занять более одного часа, в зависимости от ресурсов вашего компьютера.

Источник

Оцените статью
Adblock
detector