Wine on Tiger

Questions about Wine on macOS.
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Post by mrivera »

When I try to run the install its saying this..


michael-riveras-computer:~/desktop michaelrivera$ cd "wine-1.3.29"
michael-riveras-computer:~/desktop/wine-1.3.29 michaelrivera$ ./tools/wineinstall
Wine Installer v1.0

You are running wineinstall as root, this is not advisable. Please rerun as a user.
Aborting.
michael-riveras-computer:~/desktop/wine-1.3.29 michaelrivera$

I went into the Netinfo Manager, disabled the root user and it still didn't work. My account is the only one on this computer, and I am the admin. Don't know what's going on. Thanks for your help and the quick replies Charles.
Charles Davis

Wine on Tiger

Post by Charles Davis »

On Oct 2, 2011, at 10:49 PM, mrivera wrote:
When I try to run the install its saying this..


michael-riveras-computer:~/desktop michaelrivera$ cd "wine-1.3.29"
michael-riveras-computer:~/desktop/wine-1.3.29 michaelrivera$ ./tools/wineinstall
Wine Installer v1.0

You are running wineinstall as root, this is not advisable. Please rerun as a user.
Aborting.
michael-riveras-computer:~/desktop/wine-1.3.29 michaelrivera$

I went into the Netinfo Manager, disabled the root user and it still didn't work. My account is the only one on this computer, and I am the admin. Don't know what's going on.
I do. I'll bet if you ran ls -ld on /, you'd get this back:

drwxrwxrwx ## root admin #### Mmm dd hh:mm /

The 'd' means that it's a directory, and the groups of 'rwx' tell you that the owner (root), owning group (admin), and everyone else (known as 'others' or 'the world' in Unix jargon), in that order, can Read the directory's contents, add files ("Write" to the directory), and cd into the directory and/or use any files/directories inside ("eXecute"; it has a different meaning for files). (The '#'s are random numbers. 'Mmm dd hh:mm' is the last changed date.) For some crazy reason, / is world writable by default on a Mac.

What's this got to do with wineinstall? Simple: that's how it 'knows' you're running as root.

You can fix this like so:

sudo chmod go-w /

Now ls -ld / should look like:

drwxr-xr-x ## root admin #### Mmm dd hh:mm /

The dashes where there were once 'w's tell you that the owning group (admin) and the rest of the world can no longer write (i.e. add files) to /.

This is, in fact, the first thing I do whenever I get a new Mac.
Thanks for your help and the quick replies Charles.
No problem.


doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Re: Wine on Tiger

Post by doh123 »

Charles Davis wrote: You can fix this like so:

sudo chmod go-w /

Now ls -ld / should look like:

drwxr-xr-x ## root admin #### Mmm dd hh:mm /

The dashes where there were once 'w's tell you that the owning group (admin) and the rest of the world can no longer write (i.e. add files) to /.

This is, in fact, the first thing I do whenever I get a new Mac.
How would a Mac get like that in the first place... every one I've had has always been drwxr-xr-w

Does Wineinstall actually work on OSX? I've never even tried to use it before since its really not needed.
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Post by mrivera »

./tools/winebuild/winebuild -m32 -w --def -o dlls/xinput1_3/libxinput.def --export ./dlls/xinput1_3/xinput1_3.spec
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `all'.
bison -p xslpattern_ -o xslpattern.tab.c -d xslpattern.y
xslpattern.y:74: unrecognized: %parse_param
xslpattern.y:74: Skipping to next %
xslpattern.y:75: unrecognized: %parse_param
xslpattern.y:75: Skipping to next %
xslpattern.y:76: unrecognized: %lex_param
xslpattern.y:76: Skipping to next %
make[1]: *** [xslpattern.tab.h] Error 1
make: *** [dlls/msxml3] Error 2

Compilation failed, aborting install.

I was installing it by following the README's instructions. Is there another way?
Charles Davis

Wine on Tiger

Post by Charles Davis »

On Oct 3, 2011, at 12:11 PM, mrivera wrote:
bison -p xslpattern_ -o xslpattern.tab.c -d xslpattern.y
xslpattern.y:74: unrecognized: %parse_param
xslpattern.y:74: Skipping to next %
xslpattern.y:75: unrecognized: %parse_param
xslpattern.y:75: Skipping to next %
xslpattern.y:76: unrecognized: %lex_param
xslpattern.y:76: Skipping to next %
make[1]: *** [xslpattern.tab.h] Error 1
make: *** [dlls/msxml3] Error 2
The problem here is that your version of bison is too old. Try again after installing a newer bison.

Chip
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Wine on Tiger

Post by jjmckenzie »

On Mon, Oct 3, 2011 at 11:11 AM, mrivera <[email protected]> wrote:
./tools/winebuild/winebuild -m32 -w --def -o dlls/xinput1_3/libxinput.def --export ./dlls/xinput1_3/xinput1_3.spec
I don't know if you were told this but winebuild tends not to work on Macs.

I would try this method:

./configure
make
sudo make install

However, Charles is correct, the version of bison is too old.

One question: Are you building on an Intel or PowerPC system?

James
Charles Davis

Wine on Tiger

Post by Charles Davis »

On Oct 3, 2011, at 12:58 PM, James McKenzie wrote:
On Mon, Oct 3, 2011 at 11:11 AM, mrivera <[email protected]> wrote:
./tools/winebuild/winebuild -m32 -w --def -o dlls/xinput1_3/libxinput.def --export ./dlls/xinput1_3/xinput1_3.spec
I don't know if you were told this but winebuild tends not to work on Macs.
You mean wineinstall, right? (Winebuild is a very important tool needed to build Wine DLLs/EXEs.)

Chip
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Post by mrivera »

Tried to install Bison 2.4.3 and got this.

test -z "/usr/local/lib" || ../build-aux/install-sh -c -d "/usr/local/lib"
mkdir: /usr/local/lib: Permission denied
make[5]: *** [install-libLIBRARIES] Error 1
make[4]: *** [install-am] Error 2
make[3]: *** [install-recursive] Error 1
make[2]: *** [install] Error 2
make[1]: *** [install-recursive] Error 1
make: *** [install] Error 2
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Re: Wine on Tiger

Post by mrivera »

jjmckenzie wrote:On Mon, Oct 3, 2011 at 11:11 AM, mrivera <[email protected]> wrote:
./tools/winebuild/winebuild -m32 -w --def -o dlls/xinput1_3/libxinput.def --export ./dlls/xinput1_3/xinput1_3.spec
I don't know if you were told this but winebuild tends not to work on Macs.

I would try this method:

./configure
make
sudo make install

However, Charles is correct, the version of bison is too old.

One question: Are you building on an Intel or PowerPC system?

James
Intel
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Wine on Tiger

Post by jjmckenzie »

On Mon, Oct 3, 2011 at 12:19 PM, mrivera <[email protected]> wrote:
jjmckenzie wrote:
On Mon, Oct 3, 2011 at 11:11 AM, mrivera <[email protected]> wrote:
./tools/winebuild/winebuild -m32 -w --def -o dlls/xinput1_3/libxinput.def --export ./dlls/xinput1_3/xinput1_3.spec
I don't know if you were told this but winebuild tends not to work on Macs.

I would try this method:

./configure
make
sudo make install

However, Charles is correct, the version of bison is too old.

One question:  Are you building on an Intel or PowerPC system?

James
Intel
Ok. I'm good then. Is there a particular reason that I cannot
remember that you are trying to build Wine on Tiger (10.4)? Dan Kegel
has reported problems building on Leopard (10.5).

James
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Re: Wine on Tiger

Post by mrivera »

jjmckenzie wrote:On Mon, Oct 3, 2011 at 12:19 PM, mrivera <[email protected]> wrote:
jjmckenzie wrote:
On Mon, Oct 3, 2011 at 11:11 AM, mrivera <[email protected]> wrote:
I don't know if you were told this but winebuild tends not to work on Macs.

I would try this method:

./configure
make
sudo make install

However, Charles is correct, the version of bison is too old.

One question:  Are you building on an Intel or PowerPC system?

James
Intel
Ok. I'm good then. Is there a particular reason that I cannot
remember that you are trying to build Wine on Tiger (10.4)? Dan Kegel
has reported problems building on Leopard (10.5).

James
I first started with Wine 1.3.13. I had it installed correctly but I could not get Arena to work properly. I researched and found that I needed the newest version of Wine to run Arena. I didn't know this newer version of wine isn't compatible with 10.4.
Charles Davis

Wine on Tiger

Post by Charles Davis »

On Oct 3, 2011, at 1:18 PM, mrivera wrote:
mkdir: /usr/local/lib: Permission denied
You must run 'make install' as root. The easiest way to do that is to use the 'sudo' command:

sudo make install

That way you don't have to enable the superuser account.

Chip
bcpeterson
Level 2
Level 2
Posts: 35
Joined: Sat Sep 11, 2010 6:24 pm

Post by bcpeterson »

I first started with Wine 1.3.13
It looked like from your first screenshot that you installed stable wine with macports, which is 1.2.3, unless you had wine 1.3.13 installed at some other point?
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Post by mrivera »

Charles Davis wrote:On Oct 3, 2011, at 1:18 PM, mrivera wrote:
mkdir: /usr/local/lib: Permission denied
You must run 'make install' as root. The easiest way to do that is to use the 'sudo' command:

sudo make install

That way you don't have to enable the superuser account.

Chip
Done. Trying again now.
bcpeterson wrote:
I first started with Wine 1.3.13
It looked like from your first screenshot that you installed stable wine with macports, which is 1.2.3, unless you had wine 1.3.13 installed at some other point?
You are correct, it was 1.2.3 which was the one that did not work with Arena.
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Post by mrivera »

make[1]: Nothing to be done for `all'.
/usr/bin/install -c dlls/msxml/msxml.dll.so /usr/local/lib/wine/msxml.dll.so
/usr/bin/install -c -m 644 dlls/msxml/msxml.dll.fake /usr/local/lib/wine/fakedlls/msxml.dll
config.status: creating dlls/msxml2/Makefile
../../tools/makedep -C. -S../.. -T../.. main.c msxml2_tlb.idl msxml2_tlb.tlb
make[1]: Nothing to be done for `all'.
/usr/bin/install -c dlls/msxml2/msxml2.dll.so /usr/local/lib/wine/msxml2.dll.so
/usr/bin/install -c -m 644 dlls/msxml2/msxml2.dll.fake /usr/local/lib/wine/fakedlls/msxml2.dll
config.status: creating dlls/msxml3/Makefile
../../tools/makedep -C. -S../.. -T../.. -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/libxml2 attribute.c bsc.c cdata.c comment.c dispex.c docfrag.c doctype.c domdoc.c domimpl.c element.c entityref.c factory.c httprequest.c main.c mxnamespace.c mxwriter.c node.c nodelist.c nodemap.c parseerror.c pi.c saxreader.c schema.c selection.c stylesheet.c text.c uuid.c xdr.c xmldoc.c xmlelem.c schemas.rc version.rc xmlparser.idl msxml3_v1.idl msxml3_v1.tlb xslpattern.y xslpattern.l
bison -p xslpattern_ -o xslpattern.tab.c -d xslpattern.y
xslpattern.y:74: unrecognized: %parse_param
xslpattern.y:74: Skipping to next %
xslpattern.y:75: unrecognized: %parse_param
xslpattern.y:75: Skipping to next %
xslpattern.y:76: unrecognized: %lex_param
xslpattern.y:76: Skipping to next %
make[1]: *** [xslpattern.tab.h] Error 1
make: *** [dlls/msxml3] Error 2
michael-riveras-computer:~/desktop/wine-1.3.29 michaelrivera$
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Post by mrivera »

Here is how the install of Bison went..

Making install in examples
Making install in calc++
make install-am
make[5]: Nothing to be done for `install-exec-am'.
make[5]: Nothing to be done for `install-data-am'.
make[4]: Nothing to be done for `install-exec-am'.
make[4]: Nothing to be done for `install-data-am'.
Making install in tests
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
Making install in etc
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/share/aclocal" || build-aux/install-sh -c -d "/usr/local/share/aclocal"
/usr/bin/install -c -m 644 m4/bison-i18n.m4 '/usr/local/share/aclocal'
michael-riveras-computer:~/desktop/bison-2.4.3 michaelrivera$
Charles Davis

Wine on Tiger

Post by Charles Davis »

On Oct 3, 2011, at 2:48 PM, mrivera wrote:
bison -p xslpattern_ -o xslpattern.tab.c -d xslpattern.y
What does the command:

which bison

say?

Chip
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Post by mrivera »

2.4.3
Charles Davis

Wine on Tiger

Post by Charles Davis »

On Oct 3, 2011, at 3:20 PM, mrivera wrote:
2.4.3
No, you misunderstand. Which bison gets run when you type:

bison

in the Terminal--the one in /usr/bin or the one in /usr/local/bin? That's what:

which bison

tells you.

Chip
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Post by mrivera »

Last login: Mon Oct 3 16:03:30 on ttyp1
Welcome to Darwin!
michael-riveras-computer:~ michaelrivera$ cd /usr/local/bin
michael-riveras-computer:/usr/local/bin michaelrivera$ ls
bison yacc
michael-riveras-computer:/usr/local/bin michaelrivera$ which bison
/usr/bin/bison
michael-riveras-computer:/usr/local/bin michaelrivera$ ls
bison yacc
michael-riveras-computer:/usr/local/bin michaelrivera$ cd bison
-bash: cd: bison: Not a directory
michael-riveras-computer:/usr/local/bin michaelrivera$ ls bison
bison
michael-riveras-computer:/usr/local/bin michaelrivera$ which bison
/usr/bin/bison
michael-riveras-computer:/usr/local/bin michaelrivera$
Charles Davis

Wine on Tiger

Post by Charles Davis »

On Oct 3, 2011, at 4:05 PM, mrivera wrote:
michael-riveras-computer:/usr/local/bin michaelrivera$ which bison
/usr/bin/bison
michael-riveras-computer:/usr/local/bin michaelrivera$ ls
bison yacc
Ah, so you successfully installed the new bison, but the old bison is still getting called. What does your PATH look like? Try this command:

printenv PATH

This is a list of directories, separated by colons, that the shell searches for binaries to run. It will run the binary from the first directory in which it finds it. Your PATH likely looks something like this:

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin

so the shell will always run the bison in /usr/bin, even though you installed a new one in /usr/local/bin. You can fix this easily by putting the /usr/local/bin directory first, which you can do by running this command:

PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

(If there's other stuff before or after, like this:

/opt/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~

don't touch that other stuff when you reset PATH:

PATH=/opt/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

)

If you want this to be permanent, you should modify the command that sets PATH into your .bash_profile file in your home directory.

Chip
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Post by mrivera »

michael-riveras-computer:~ michaelrivera$ cd /usr/local/bin
michael-riveras-computer:/usr/local/bin michaelrivera$ printenv PATH
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
michael-riveras-computer:/usr/local/bin michaelrivera$ PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
michael-riveras-computer:/usr/local/bin michaelrivera$ ls
bison yacc
michael-riveras-computer:/usr/local/bin michaelrivera$ which bison
/usr/local/bin/bison
michael-riveras-computer:/usr/local/bin michaelrivera$

I don't think it worked. Ran the make command from the wide directory and got this again..

make[1]: Nothing to be done for `all'.
config.status: creating dlls/msxml3/Makefile
../../tools/makedep -C. -S../.. -T../.. -I/opt/local/include/libxml2 -I/opt/local/include -I/opt/local/include/libxml2 attribute.c bsc.c cdata.c comment.c dispex.c docfrag.c doctype.c domdoc.c domimpl.c element.c entityref.c factory.c httprequest.c main.c mxnamespace.c mxwriter.c node.c nodelist.c nodemap.c parseerror.c pi.c saxreader.c schema.c selection.c stylesheet.c text.c uuid.c xdr.c xmldoc.c xmlelem.c schemas.rc version.rc xmlparser.idl msxml3_v1.idl msxml3_v1.tlb xslpattern.y xslpattern.l
bison -p xslpattern_ -o xslpattern.tab.c -d xslpattern.y
xslpattern.y:74: unrecognized: %parse_param
xslpattern.y:74: Skipping to next %
xslpattern.y:75: unrecognized: %parse_param
xslpattern.y:75: Skipping to next %
xslpattern.y:76: unrecognized: %lex_param
xslpattern.y:76: Skipping to next %
make[1]: *** [xslpattern.tab.h] Error 1
make: *** [dlls/msxml3] Error 2
Charles Davis

Wine on Tiger

Post by Charles Davis »

On Oct 3, 2011, at 9:12 PM, mrivera wrote:
michael-riveras-computer:~ michaelrivera$ cd /usr/local/bin
michael-riveras-computer:/usr/local/bin michaelrivera$ printenv PATH
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
michael-riveras-computer:/usr/local/bin michaelrivera$ PATH=/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin
You really shouldn't leave out the /opt/local directories. They were put there by MacPorts.
michael-riveras-computer:/usr/local/bin michaelrivera$ ls
bison yacc
michael-riveras-computer:/usr/local/bin michaelrivera$ which bison
/usr/local/bin/bison
michael-riveras-computer:/usr/local/bin michaelrivera$

I don't think it worked. Ran the make command from the wide directory and got this again..
[...]

Huh... well, what does:

bison --version

say?

Mine says...

$ bison --version
bison (GNU Bison) 2.5

You may need to install a later version. (See, that was the whole point of building bison yourself--because the system bison is outdated! ;)

Chip
mrivera
Level 2
Level 2
Posts: 38
Joined: Tue Sep 27, 2011 12:20 pm

Post by mrivera »

Last login: Tue Oct 4 09:29:00 on console
Welcome to Darwin!
michael-riveras-computer:~ michaelrivera$ cd /usr/local/bin
michael-riveras-computer:/usr/local/bin michaelrivera$ ls
bison yacc
michael-riveras-computer:/usr/local/bin michaelrivera$ bison --version
GNU Bison version 1.28
michael-riveras-computer:/usr/local/bin michaelrivera$ printenv PATH
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
michael-riveras-computer:/usr/local/bin michaelrivera$ PATH=/opt/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
michael-riveras-computer:/usr/local/bin michaelrivera$

Guess it's still on the old Bison. How do we fix that?
Charles Davis

Wine on Tiger

Post by Charles Davis »

On Oct 4, 2011, at 9:39 AM, mrivera wrote:
Last login: Tue Oct 4 09:29:00 on console
Welcome to Darwin!
michael-riveras-computer:~ michaelrivera$ cd /usr/local/bin
michael-riveras-computer:/usr/local/bin michaelrivera$ ls
bison yacc
michael-riveras-computer:/usr/local/bin michaelrivera$ bison --version
GNU Bison version 1.28
michael-riveras-computer:/usr/local/bin michaelrivera$ printenv PATH
/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin
michael-riveras-computer:/usr/local/bin michaelrivera$ PATH=/opt/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
michael-riveras-computer:/usr/local/bin michaelrivera$

Guess it's still on the old Bison. How do we fix that?
What does the command:

/usr/local/bin/bison --version

say?

Also, you should edit your .bash_profile in your home directory, like so:

open -e .bash_profile

which will open that file in TextEdit. Then change the line that sets PATH:

PATH=<whatever>

to:

PATH=/opt/local/bin:/opt/local/sbin:/usr/local/bin:/bin:/sbin:/usr/bin:/usr/sbin

That should fix it permanently.

Chip
Locked