Few Questions

Questions about Wine on macOS.
Locked
Neial5546
Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Few Questions

Post by Neial5546 »

First of all, I am very mac illiterate as I have been using windows all my life. I am enquiring to see about getting some help on the whole wine thing. I have been looking at the wiki and FAQs but Im lost. I installed wine from sourceforge but when I go to click wineinstall in the tools folder, this is what I get:


Last login: Sun Sep 18 21:31:41 on ttys000
/Users/christiankirby/Downloads/wine-1.3.13/tools/wineinstall ; exit;
Christian-Kirbys-MacBook-Pro:~ christiankirby$ /Users/christiankirby/Downloads/wine-1.3.13/tools/wineinstall ; exit;
Wine Installer v1.0

You're running this from the wrong directory.
Change to the Wine source's main directory and try again.
logout

[Process completed]


If anyone can help me on how to compile or whatever else it is I may need, it would be appreciated. Can either email me at [email protected] or send me a private message, thank you.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Few Questions

Post by jjmckenzie »

On 9/18/11 6:38 PM, Neial5546 wrote:
First of all, I am very mac illiterate as I have been using windows all my life. I am enquiring to see about getting some help on the whole wine thing. I have been looking at the wiki and FAQs but Im lost. I installed wine from sourceforge but when I go to click wineinstall in the tools folder, this is what I get:
Installing Wine on a Mac requires installing Linux/UNIX dependencies. I
recommend using either MacPorts, Fink or osxwinebuilder (Google for it)
to install the dependencies and Wine itself.

Before installing ANY program in Wine I highly recommend visiting the
Applications Database. Some of the hints do work with the Mac.

James
Neial5546
Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post by Neial5546 »

I got MacPorts yesterday, since Im on OSX, I guess Im going to have to compile my own wine since there isnt a distribution for mac OSX, so the question is, how do I compile and install wine?
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

Neial5546 wrote:I got MacPorts yesterday, since Im on OSX, I guess Im going to have to compile my own wine since there isnt a distribution for mac OSX, so the question is, how do I compile and install wine?
Unless you want to use a Third Pary App that uses Wine(http://wiki.winehq.org/ThirdPartyApplications), yes you'll have to compile Wine yourself and use it all command line.

This is easy on Macports though, you just open up Terminal and type...

port install wine-devel

to get the latest development version installed... it handles getting everything you need, downloading them, and compiling them... so you just let it go.
Neial5546
Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post by Neial5546 »

And then also, I typed in the command $ port search wine and this is what I got:


Last login: Mon Sep 19 00:24:41 on ttys000
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port search wine
mystonline-wine @2010 (games, x11)
Myst Online: URU Live Again

wine @1.2.3 (x11)
Wine Is Not an Emulator

wine-crossover @10.0.3 (x11)
Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver)

wine-crossover-games @10.0.0 (x11)
Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver
Games)

wine-devel @1.3.28 (x11)
Wine Is Not an Emulator

winetricks @20110629 (x11)
downloads and installs various redistributable runtime libraries

Found 6 ports.
Christian-Kirbys-MacBook-Pro:~ christiankirby$


What I am trying to figure out next, from the wiki is how do I install it?
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Few Questions

Post by jjmckenzie »

On Sun, Sep 18, 2011 at 9:30 PM, Neial5546 <[email protected]> wrote:
And then also, I typed in the command $ port search wine and this is what I got:


Last login: Mon Sep 19 00:24:41 on ttys000
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port search wine
mystonline-wine @2010 (games, x11)
   Myst Online: URU Live Again

wine @1.2.3 (x11)
   Wine Is Not an Emulator

wine-crossover @10.0.3 (x11)
   Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver)

wine-crossover-games @10.0.0 (x11)
   Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver
   Games)

wine-devel @1.3.28 (x11)
   Wine Is Not an Emulator

winetricks @20110629 (x11)
   downloads and installs various redistributable runtime libraries

Found 6 ports.
Christian-Kirbys-MacBook-Pro:~ christiankirby$


What I am trying to figure out next, from the wiki is how do I install it?
Do what doh123 said to do:

port install wine-devel

This will install the wine-devel version on your system and configure
your system so Wine can be used.

James
Neial5546
Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post by Neial5546 »

Now a new problem has developed, I typed in what you guys said, and this is what I got:


Last login: Mon Sep 19 00:46:17 on ttys000
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port install wine-devel
Error: Insufficient privileges to write to MacPorts install prefix.
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port install wine-devel
Error: Insufficient privileges to write to MacPorts install prefix.
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port search wine
mystonline-wine @2010 (games, x11)
Myst Online: URU Live Again

wine @1.2.3 (x11)
Wine Is Not an Emulator

wine-crossover @10.0.3 (x11)
Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver)

wine-crossover-games @10.0.0 (x11)
Wine Is Not an Emulator (1.3.9 with CodeWeavers modifications for CrossOver
Games)

wine-devel @1.3.28 (x11)
Wine Is Not an Emulator

winetricks @20110629 (x11)
downloads and installs various redistributable runtime libraries

Found 6 ports.
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port install wine-devel
Error: Insufficient privileges to write to MacPorts install prefix.
Christian-Kirbys-MacBook-Pro:~ christiankirby$
Charles Davis

Few Questions

Post by Charles Davis »

On Sep 19, 2011, at 10:15 AM, Neial5546 wrote:
Christian-Kirbys-MacBook-Pro:~ christiankirby$ port install wine-devel
Error: Insufficient privileges to write to MacPorts install prefix.
That's because you need to run this particular command as root. And to do that, you tack a 'sudo' on the beginning of the command, like so:

sudo port install wine-devel

Now (after you enter your password at the prompt) you'll be able to install Wine.

Chip
Neial5546
Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post by Neial5546 »

Did that, now my norton is popping up with carious ip addresses and places like sourceforge requesting access to my computer and its asking me if I want to block or allow them in, what should I do?
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

As to your question, Macports has to access and download source code from many places, including sourceforge, so it can build it... so yes you need to let it download.

also

current Macports does not need to be run as root, and some things break if you sudo it, so something might be wrong with your installation.

This is beyond the help of this message board since its not a Wine issue.. but...

do a...

sudo port selfupdate

and make sure its all up to date.

Are you on an admin user account... or the same account that installed Macports? its install location (/opt/local) might be off limits to your current user.

you can do this command with a sudo to fix the folder if its messed up...

sudo chmod -R 777 /opt/local

because its supposed to be full read/write
ryan woodsmall

Few Questions

Post by ryan woodsmall »

sudo chmod -R 777 /opt/local
Do NOT run that. That recursively grants rwx permissions to *every* user on the system for *everything* in that directory. Bad idea. The only time 777 should be granted is on temp directories in conjunction with a sticky bit of some sort.

Just prefix any "port" subcommands with sudo and you'll be safe. -r
Neial5546
Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post by Neial5546 »

Ok, wine has been installed. Now the next question, how do I install the windows program I'm trying to install?
User avatar
dimesio
Moderator
Moderator
Posts: 13208
Joined: Tue Mar 25, 2008 10:30 pm

Post by dimesio »

Neial5546 wrote:Ok, wine has been installed. Now the next question, how do I install the windows program I'm trying to install?
http://wiki.winehq.org/FAQ#head-f351523 ... 8da63be66f
Neial5546
Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post by Neial5546 »

Got that. Now the problem is, I right click it, it does not give me the option to open with wine. I use the terminal and it opens just fine and now Im trying to download the game. Hope this works
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Few Questions

Post by jjmckenzie »

On 9/19/11 6:11 PM, Neial5546 wrote:
Got that. Now the problem is, I right click it, it does not give me the option to open with wine. I use the terminal and it opens just fine and now Im trying to download the game. Hope this works
You should not get this option from the Mac Menu.

You will have to install from terminal.

James
Neial5546
Level 1
Level 1
Posts: 8
Joined: Sun Sep 18, 2011 8:27 pm

Post by Neial5546 »

Doing it that, trying to install LastChaos and the downloader itself works, but the terminal is constantly displaying:

Moderator: Huge log removed. Use pastebin instead
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Few Questions

Post by doh123 »

ryan woodsmall wrote:
sudo chmod -R 777 /opt/local
Do NOT run that. That recursively grants rwx permissions to *every* user on the system for *everything* in that directory. Bad idea. The only time 777 should be granted is on temp directories in conjunction with a sticky bit of some sort.

Just prefix any "port" subcommands with sudo and you'll be safe. -r
/opt/local does not exist normally.. its only Macports and nothing else... nothing has been installed in it yet, so its just Macports executables and config files which are already supposed to be all users.

Macports is designed to not be run with sudo anymore... and just like running Wine with sudo, you can really mess things up, and some ports won't even install if you sudo it.
ryan woodsmall

Few Questions

Post by ryan woodsmall »

Macports is designed to not be run with sudo anymore...
Nope. http://guide.macports.org/chunked/using.html
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Few Questions

Post by doh123 »

ryan woodsmall wrote:
Macports is designed to not be run with sudo anymore...
Nope. http://guide.macports.org/chunked/using.html
You can have your own opinions on the 777 issue... I wouldn't base it on out-dated documentation, but I'll stick with what actually works. If you want more info thats up to date, read through change logs, not old documentation thats kept up as poorly as Wine's.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Few Questions

Post by jjmckenzie »

On Tue, Sep 20, 2011 at 10:38 AM, doh123 <[email protected]> wrote:
ryan woodsmall wrote:
Macports is designed to not be run with sudo anymore...
Nope. http://guide.macports.org/chunked/using.html
You can have your own opinions on the 777 issue... I wouldn't base it on out-dated documentation, but I'll stick with what
actually works.  If you want more info thats up to date, read through change logs, not old documentation thats kept up as
poorly as Wine's.
I would, as a security expert, never set a directory or file to full
access on any operating system without good reason. In this case it
may be possible to get away with rw-rw-r-s which will assign the
current user read/write permissions.

James
ryan woodsmall

Few Questions

Post by ryan woodsmall »

You can have your own opinions on the 777 issue...
I base my opinion on the fact that 777 permissions are dangerous even on single-user systems. Wine is not a sandbox, anything you grant 777 to is opening up a hole big enough to drive a truck in. Couple that with the fact MacPorts can be used to install things like web servers, application servers, etc., and you're asking for trouble.

I am a professional sysadmin. I've cleaned up far too many webserver hacks because people don't care enough to bother setting sane permissions and ownership on blog installs. It would be one thing to recursively chown the MacPorts /opt/local directory to your user/group to make installs easier; it's another thing entirely to give everyone and their dog permission to write to any file or directory, including binaries.

I could present hypotheticals but I won't. Wine and 777 permissions on system-level directories is not safe. This should be obvious.
Locked