Spinroot

A forum for Spin users

You are not logged in.

#26 2011-03-31 23:34:26

mya9
Member
Registered: 2011-03-31
Posts: 4

Re: Installing Spin on Mac

Hello all,

Great topic and thanks all.

I installed ispin and coped it to /usr/local/bin, I get this :

-bash: /usr/local/bin/ispin: Permission denied

Can any one help ?

Offline

#27 2011-04-01 18:28:46

spinroot
forum
Registered: 2010-11-18
Posts: 691
Website

Re: Installing Spin on Mac

looks like it is not executable, or you don't have the permission bits set right.
try:
chmod 777 /usr/local/bin/ispin
(you will probably have to prefix this with 'sudo' and will need root privilege on your machine to do it).

Offline

#28 2011-04-01 23:28:26

mya9
Member
Registered: 2011-03-31
Posts: 4

Re: Installing Spin on Mac

Thank you very much, it's working now.

Offline

#29 2011-10-25 20:19:31

JenniferLogan
Member
Registered: 2011-10-25
Posts: 1

Re: Installing Spin on Mac

I was looking for the same thing, thanks for posting guys, I was pretty much stuck:)

Offline

#30 2011-11-24 20:00:34

dpqmw80
Member
From: Melbourne
Registered: 2011-11-20
Posts: 1
Website

Re: Installing Spin on Mac

Are yacc, gcc and xcode compulsory for spin's installation?

Offline

#31 2011-11-24 22:26:22

spinroot
forum
Registered: 2010-11-18
Posts: 691
Website

Re: Installing Spin on Mac

on a Mac yes -- you have to compile spin from the sources, and for that you need yacc etc
on a pc, or on Linux, you can you the precompiled executables

Offline

#32 2011-12-06 13:42:45

maria
Member
Registered: 2011-12-06
Posts: 2

Re: Installing Spin on Mac

Hi, I am new to Spin and I installed it recently quite easily on my MacBook. However when I execute the C program generated from pan.c I get the error "spin: error, the version of spin that generated this pan.c assumed a different wordsize (4 iso 8)". Could you help me repair this mismatch? I don't know where to start from.
Thanks,
Maria

Offline

#33 2011-12-06 15:53:23

spinroot
forum
Registered: 2010-11-18
Posts: 691
Website

Re: Installing Spin on Mac

It means that you compiled spin from its sources on a different machine than the one you are using it on.
Simply recompile spin itself on that same MacBook...

Offline

#34 2011-12-07 11:54:31

maria
Member
Registered: 2011-12-06
Posts: 2

Re: Installing Spin on Mac

I realised I used different compilers in the makefile (cpp) and for compiling the pan.c (cc). I recompiled the sources with gcc and I don't get the error anymore.

Offline

#35 2012-01-28 18:15:15

spinmx
Member
Registered: 2012-01-28
Posts: 1

Re: Installing Spin on Mac

Another newbie trying to install on a Mac...
When executing the the make file I'm getting the following warnings:

yacc         -v -d          spin.y
/usr/bin/gcc -c y?tab.c
rm -f y?tab.c
mv y?tab.o spin.o
/usr/bin/gcc -O2 -ansi -DNXT -D_POSIX_SOURCE -Wno-format-security    -c -o spinlex.o spinlex.c
/usr/bin/gcc -O2 -ansi -DNXT -D_POSIX_SOURCE -Wno-format-security    -c -o sym.o sym.c
/usr/bin/gcc -O2 -ansi -DNXT -D_POSIX_SOURCE -Wno-format-security    -c -o vars.o vars.c
/usr/bin/gcc -O2 -ansi -DNXT -D_POSIX_SOURCE -Wno-format-security    -c -o main.o main.c
main.c: In function ‘non_fatal’:
main.c:547: warning: format not a string literal and no format arguments
main.c:547: warning: format not a string literal and no format arguments
/usr/bin/gcc -O2 -ansi -DNXT -D_POSIX_SOURCE -Wno-format-security    -c -o ps_msc.o ps_msc.c
/usr/bin/gcc -O2 -ansi -DNXT -D_POSIX_SOURCE -Wno-format-security    -c -o mesg.o mesg.c
mesg.c: In function ‘sr_mesg’:
mesg.c:574: warning: format not a string literal and no format arguments
mesg.c:574: warning: format not a string literal and no format arguments
/usr/bin/gcc -O2 -ansi -DNXT -D_POSIX_SOURCE -Wno-format-security    -c -o flow.o flow.c
.....

any clue of what I'm doing wrong?

Offline

#36 2012-01-28 19:15:29

spinroot
forum
Registered: 2010-11-18
Posts: 691
Website

Re: Installing Spin on Mac

nothing wrong -- those warnings are expected -- note that compilers get better about checking code all the time.  in this case the warning is innocent.  the compiler should have suppressed the warning, given the explicit flag -Wno-format-security, but not all compilers recognize this option.
your compilation created a good executable though

Offline

#37 2012-03-28 08:36:31

luseryobama
Member
Registered: 2012-03-28
Posts: 1
Website

Re: Installing Spin on Mac

My first time come here,Thank you extremely substantially for the help out with this particular regard. i am not extremely substantially familier while using Terminal but just utilize it for some amount to manage the mac properly.

Last edited by luseryobama (2012-03-28 08:39:00)

Offline

Board footer

Powered by FluxBB