Page 2 of 5

Re: SheepShaver for Linux 03-09-2010 available

Posted: Sat Nov 19, 2011 5:49 am
by luxor
You homies need to post better instructions...not all us got the "SDL" part!!

So this is how you run it (Debian flavor):

1. Install SDL
sudo aptitude install libsdl1.2-dev

2. Just run SheepShaver like:

./SheepShaver_SDL_static

If you get errors, you may have some more recent libraries. Just create symlinks to the files:

sudo ln -s /usr/lib/libdirectfb-1.2.so.9 /usr/lib/libdirectfb-1.2.so.0
sudo ln -s /usr/lib/libfusion-1.2.so.9 /usr/lib/libfusion-1.2.so.0
sudo ln -s /usr/lib/libdirect-1.2.so.9 /usr/lib/libdirect-1.2.so.0

Just one question...can this version be recompiled with the startup "BONG"...other than that works great! Running mine full screen on Crunchbang Statler (Openbox)

Re: SheepShaver for Linux 03-09-2010 available

Posted: Sat Nov 19, 2011 5:57 am
by ClockWise
I didn't get it either. But I don't need to write "not sure why" again, because you've explained the issue yourself!

The Windows version is modified to include a "BONG" (that you supply yourself), but that hasn't been included in the Linux version. It would be nice to have.

Re: SheepShaver for Linux 03-09-2010 available

Posted: Sat Nov 19, 2011 9:09 pm
by luxor
If you keep on getting the globals error even after adding
the "vm.mmap_min_addr = 0" line to "/etc/sysctl." you need to run SS as root.
If you don't want to run it as root, then execute:

sudo service procps start

Re: SheepShaver for Linux 03-09-2010 available

Posted: Tue Dec 27, 2011 4:46 am
by midtown292
Will this work on Scientific Linux; it is based on RHEL 6.1 if that helps. 64 bit version. I am think of switching to this from Windows 7, cos my laptop Hackintosh install just wiped itself and I can't be bothered redoing it if it's just gonna disappear again! So Linux is the next best thing in my book, but I would like to run Mac OS 9 in Sheepshaver and 10.4 in Pear PC.

Re: SheepShaver for Linux 03-09-2010 available

Posted: Tue Dec 27, 2011 8:46 am
by Cat_7
Hi,

Both SheepShaver and PearPC should run in that Linux version.

Best,
Cat_7

Re: SheepShaver for Linux 03-09-2010 available

Posted: Wed Jan 18, 2012 4:46 am
by shiggity
It can't find esd library on Ubuntu 11.10 and crashes on startup with "error while loading shared libraries: libesd.so.0: cannot open shared object file: No such file or directory"

Similar to the thread at

http://www.emaculation.com/forum/viewto ... f=6&t=6580

Re: SheepShaver for Linux 03-09-2010 available

Posted: Wed Jan 18, 2012 6:47 am
by Cat_7
Hi,

To solve that error, you should install the esound developement libraries.

Best,
Cat_7

Re: SheepShaver for Linux 03-09-2010 available

Posted: Wed Jan 18, 2012 11:56 am
by shiggity
Worked, thank you

Re: SheepShaver for Linux 03-09-2010 available

Posted: Thu Feb 09, 2012 10:34 am
by sudi
Just a word to say a BIG thank you for your kindness and generosity in making SheepShaver OS9 available to me. I have wanted to run a favorite app from the early days and Sheep works a charm. Hearing the old sounds and seeing the desk top once again was a delight I never thought would happen. Mac since Apple II I am about to dig out some more retro apps and I think I see hypercard stacks coming back....wow.


cheers!!!

Re: SheepShaver for Linux 03-09-2010 available

Posted: Tue Feb 14, 2012 10:29 am
by kikkoman
This is going to sound a bit dumb... but, by any chance, is there a build of SheepShaver for PPC distros of Linux out there somewhere? I, for one, would jump at the idea of being able to use SheepShaver on my iMac G3, running MintPPC 11.

Re: SheepShaver for Linux 03-09-2010 available

Posted: Tue Feb 14, 2012 12:06 pm
by Cat_7
I tried to install a ppc version of linux on Pearpc. That might have given an opportunity to build a ppc version. But I failed.

Best,
Cat_7

Re: SheepShaver for Linux 03-09-2010 available

Posted: Sun Apr 01, 2012 3:26 pm
by Myrd
kikkoman wrote:This is going to sound a bit dumb... but, by any chance, is there a build of SheepShaver for PPC distros of Linux out there somewhere? I, for one, would jump at the idea of being able to use SheepShaver on my iMac G3, running MintPPC 11.
Supposedly, it should work - the old SS home page (http://sheepshaver.cebix.net/) does list Linux PPC as being supported.

You could try building it yourself.

Re: SheepShaver for Linux 03-09-2010 available

Posted: Mon Apr 02, 2012 3:59 pm
by IPalindromeI
SS does run on PowerPC devices - in fact, it even uses the native PPC to run code.

Tried it through VNC on a friend's Wii running Debian. Slow when using it through VNC, but works well. Little unstable though.

Re: SheepShaver for Linux 03-09-2010 available

Posted: Fri Sep 07, 2012 11:27 pm
by ewood
The build isn't working for me. I have the latest source as of 9/7/2012 from git, but attempting to compile it in Debian sid PPC64 gives me:
Linux/sheepthreads.c:53:27: error: field ‘__sem_lock’ has incomplete type
Linux/sheepthreads.c:55:2: error: unknown type name ‘_pthread_descr’
Linux/sheepthreads.c: In function ‘fastlock_init’:
Linux/sheepthreads.c:190:6: error: dereferencing pointer to incomplete type
Linux/sheepthreads.c:191:6: error: dereferencing pointer to incomplete type
Linux/sheepthreads.c: In function ‘fastlock_try_acquire’:
Linux/sheepthreads.c:197:24: error: dereferencing pointer to incomplete type
Linux/sheepthreads.c:198:11: error: dereferencing pointer to incomplete type
Linux/sheepthreads.c:199:8: error: dereferencing pointer to incomplete type
Linux/sheepthreads.c:203:7: error: dereferencing pointer to incomplete type
Linux/sheepthreads.c: In function ‘fastlock_acquire’:
Linux/sheepthreads.c:211:27: error: dereferencing pointer to incomplete type
Linux/sheepthreads.c: In function ‘fastlock_release’:
Linux/sheepthreads.c:218:6: error: dereferencing pointer to incomplete type
Linux/sheepthreads.c:219:39: error: dereferencing pointer to incomplete type
Linux/sheepthreads.c:219:62: error: dereferencing pointer to incomplete type
Linux/sheepthreads.c: In function ‘pthread_mutex_init’:
Linux/sheepthreads.c:229:22: error: ‘pthread_mutex_t’ has no member named ‘__m_lock’
Linux/sheepthreads.c:230:7: error: ‘pthread_mutex_t’ has no member named ‘__m_kind’
Linux/sheepthreads.c:230:43: error: ‘pthread_mutexattr_t’ has no member named ‘__mutexkind’
Linux/sheepthreads.c:231:7: error: ‘pthread_mutex_t’ has no member named ‘__m_count’
Linux/sheepthreads.c:232:7: error: ‘pthread_mutex_t’ has no member named ‘__m_owner’
Linux/sheepthreads.c: In function ‘pthread_mutex_destroy’:
Linux/sheepthreads.c:243:15: error: ‘pthread_mutex_t’ has no member named ‘__m_kind’
Linux/sheepthreads.c:245:16: error: ‘pthread_mutex_t’ has no member named ‘__m_lock’
Linux/sheepthreads.c: In function ‘pthread_mutex_lock’:
Linux/sheepthreads.c:258:15: error: ‘pthread_mutex_t’ has no member named ‘__m_kind’
Linux/sheepthreads.c:260:26: error: ‘pthread_mutex_t’ has no member named ‘__m_lock’
Linux/sheepthreads.c: In function ‘pthread_mutex_trylock’:
Linux/sheepthreads.c:274:15: error: ‘pthread_mutex_t’ has no member named ‘__m_kind’
Linux/sheepthreads.c:276:37: error: ‘pthread_mutex_t’ has no member named ‘__m_lock’
Linux/sheepthreads.c: In function ‘pthread_mutex_unlock’:
Linux/sheepthreads.c:289:15: error: ‘pthread_mutex_t’ has no member named ‘__m_kind’
Linux/sheepthreads.c:291:26: error: ‘pthread_mutex_t’ has no member named ‘__m_lock’
Linux/sheepthreads.c: In function ‘pthread_mutexattr_init’:
Linux/sheepthreads.c:305:6: error: ‘pthread_mutexattr_t’ has no member named ‘__mutexkind’
Linux/sheepthreads.c: In function ‘sem_init’:
Linux/sheepthreads.c:336:19: warning: assignment makes integer from pointer without a cast [enabled by default]
Linux/sheepthreads.c: In function ‘sem_destroy’:
Linux/sheepthreads.c:356:19: warning: assignment makes integer from pointer without a cast [enabled by default]
Linux/sheepthreads.c: In function ‘sem_wait’:
Linux/sheepthreads.c:377:19: warning: assignment makes integer from pointer without a cast [enabled by default]
Linux/sheepthreads.c: In function ‘sem_post’:
Linux/sheepthreads.c:401:20: warning: assignment makes integer from pointer without a cast [enabled by default]
make: *** [obj/sheepthreads.o] Error 1
Any thoughts on how to get around this? I'm trying to make a move from horribly outdated Leopard to Debian on my G5 here, and would love to have Mac PPC emulation running. Thanks!

Re: SheepShaver for Linux 03-09-2010 available

Posted: Sat Sep 08, 2012 5:29 am
by Cat_7
Hi,

I know of no build for the ppc64 architecture. And I wouldn't know how to fix this error.
Perhaps you can to raise an issue on github?

Best,
Cat_7

Re: SheepShaver for Linux 03-09-2010 available

Posted: Fri Sep 14, 2012 1:58 am
by Kernigh
ewood wrote:I'm trying to make a move from horribly outdated Leopard to Debian on my G5 here, and would love to have Mac PPC emulation running.
I found your problem. SheepShaver requires a horribly outdated Linux system! SheepShaver only uses Linux/sheepthreads.c with PowePC Linux systems. This file tries to access some private internals in the system's pthread library; but newer systems have changed these internals, and can no longer compile sheepthreads.c.

I tried to update sheepthreads.c for newer PowerPC Linux systems:
I tested this sheepthreads.c with Debian 6.0.5/powerpc running inside QEMU. I compiled the test program with cc -DTEST sheepthreads.c test_and_set.s (with this test_and_set.s extracted from ppc_asm.S). I did not try to compile SheepShaver. Does this sheepthreads.c work for you?

Note 1: You have a "Debian sid PPC64" system, but Debian seems to use 32-bit packages even for powerpc64. I looked at http://packages.debian.org/unstable/ and only saw packages for powerpc (those are 32-bit) and powerpcspe (those are for embedded boards). So, you will never have 64-bit problems with SheepShaver.

Note 2: Mac-on-Linux might interest you. About a decade ago, Mac-on-Linux was a nice way to run Mac OS 9.x inside Linux 2.2.x. Today, Mac-on-Linux is broken; SheepShaver is probably better.

Re: SheepShaver for Linux 03-09-2010 available

Posted: Mon Oct 08, 2012 12:38 am
by ewood
Kernigh wrote:
ewood wrote:I'm trying to make a move from horribly outdated Leopard to Debian on my G5 here, and would love to have Mac PPC emulation running.
I found your problem. SheepShaver requires a horribly outdated Linux system! SheepShaver only uses Linux/sheepthreads.c with PowePC Linux systems. This file tries to access some private internals in the system's pthread library; but newer systems have changed these internals, and can no longer compile sheepthreads.c.

I tried to update sheepthreads.c for newer PowerPC Linux systems:
I tested this sheepthreads.c with Debian 6.0.5/powerpc running inside QEMU. I compiled the test program with cc -DTEST sheepthreads.c test_and_set.s (with this test_and_set.s extracted from ppc_asm.S). I did not try to compile SheepShaver. Does this sheepthreads.c work for you?

Note 1: You have a "Debian sid PPC64" system, but Debian seems to use 32-bit packages even for powerpc64. I looked at http://packages.debian.org/unstable/ and only saw packages for powerpc (those are 32-bit) and powerpcspe (those are for embedded boards). So, you will never have 64-bit problems with SheepShaver.

Note 2: Mac-on-Linux might interest you. About a decade ago, Mac-on-Linux was a nice way to run Mac OS 9.x inside Linux 2.2.x. Today, Mac-on-Linux is broken; SheepShaver is probably better.
Hey! That did the trick for compiling! It built successfully, and I did a 'make install'. Now I'm at the infamous memory bug when I try to execute it:

ERROR: Cannot map Low Memory Globals: Operation not permitted.

Update: I followed the instructions at http://www.emaculation.com/doku.php/ubuntu and added "vm.mmap_min_addr = 0" to /etc/sysctl.conf

But now it says:
SheepShaver V2.3 by Christian Bauer and Mar"c" Hellwig
Found a PowerPC PPC970MP processor
Found a PowerPC PPC970MP processor
Found a PowerPC PPC970MP processor
Found a PowerPC PPC970MP processor
Paranoia checks...
[emul_thread] waiting for tick thread to initialize
[emul_thread] waiting for tick thread to initialize
[tick_thread] waiting for emul thread to initialize
[emul_thread] filling in registers and waiting for interrupt
[tick_thread] trigger interrupt
SIGUSR2 caught
...passed
ERROR: Cannot map usable RAM area. Try to decrease the MacOS RAM size.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 105 (X_ChangePointerControl)
Value in failed request: 0x0
Serial number of failed request: 9
Current serial number in output stream: 9

Re: SheepShaver for Linux 03-09-2010 available

Posted: Mon Oct 08, 2012 2:55 am
by ewood
ewood wrote:
Kernigh wrote:
ewood wrote:I'm trying to make a move from horribly outdated Leopard to Debian on my G5 here, and would love to have Mac PPC emulation running.
I found your problem. SheepShaver requires a horribly outdated Linux system! SheepShaver only uses Linux/sheepthreads.c with PowePC Linux systems. This file tries to access some private internals in the system's pthread library; but newer systems have changed these internals, and can no longer compile sheepthreads.c.

I tried to update sheepthreads.c for newer PowerPC Linux systems:
I tested this sheepthreads.c with Debian 6.0.5/powerpc running inside QEMU. I compiled the test program with cc -DTEST sheepthreads.c test_and_set.s (with this test_and_set.s extracted from ppc_asm.S). I did not try to compile SheepShaver. Does this sheepthreads.c work for you?

Note 1: You have a "Debian sid PPC64" system, but Debian seems to use 32-bit packages even for powerpc64. I looked at http://packages.debian.org/unstable/ and only saw packages for powerpc (those are 32-bit) and powerpcspe (those are for embedded boards). So, you will never have 64-bit problems with SheepShaver.

Note 2: Mac-on-Linux might interest you. About a decade ago, Mac-on-Linux was a nice way to run Mac OS 9.x inside Linux 2.2.x. Today, Mac-on-Linux is broken; SheepShaver is probably better.
Hey! That did the trick for compiling! It built successfully, and I did a 'make install'. Now I'm at the infamous memory bug when I try to execute it:

ERROR: Cannot map Low Memory Globals: Operation not permitted.

Update: I followed the instructions at http://www.emaculation.com/doku.php/ubuntu and added "vm.mmap_min_addr = 0" to /etc/sysctl.conf

But now it says:
SheepShaver V2.3 by Christian Bauer and Mar"c" Hellwig
Found a PowerPC PPC970MP processor
Found a PowerPC PPC970MP processor
Found a PowerPC PPC970MP processor
Found a PowerPC PPC970MP processor
Paranoia checks...
[emul_thread] waiting for tick thread to initialize
[emul_thread] waiting for tick thread to initialize
[tick_thread] waiting for emul thread to initialize
[emul_thread] filling in registers and waiting for interrupt
[tick_thread] trigger interrupt
SIGUSR2 caught
...passed
ERROR: Cannot map usable RAM area. Try to decrease the MacOS RAM size.
X Error of failed request: BadValue (integer parameter out of range for operation)
Major opcode of failed request: 105 (X_ChangePointerControl)
Value in failed request: 0x0
Serial number of failed request: 9
Current serial number in output stream: 9
Update 2:

I did some digging through the forums and found this: http://www.emaculation.com/forum/viewto ... =20&t=7412

I followed the instructions there and ran "sed -i 's/if (RAMBase > KernelDataAddr)/if (0)/' ./main_unix.cpp"

The result is that it's now bugging me about not being able to open its ROM file, so I guess this thing is in working order but not bringing up the config window the way Basilisk II does. That seems odd, but I can only assume it's a quirk of the Linux version of SheepShaver.

Update 3:

I didn't have the needed libgtk-dev package installed, so I guess that's why the GUI was lacking. Recompiling with that... More errors! :roll: This time:

Code: Select all

sigsegv.cpp:2585:30: error: ‘SIGSEGV_FAULT_HANDLER_ARGLIST’ was not declared in this scope
sigsegv.cpp:2586:1: error: expected ‘,’ or ‘;’ before ‘{’ token
make: *** [obj/sigsegv.o] Ошибка 1
That is, error 1. There must be some issue between SheepShaver and the version of gtk I have in Debian testing.

Re: SheepShaver for Linux 03-09-2010 available

Posted: Wed Oct 10, 2012 5:36 am
by Cat_7
Hi,

You have much better chances for a solution to this problem when you raise an issue on the github site, where the code is being kept:
https://github.com/cebix/macemu

Best,
Cat_7

Re: SheepShaver for Linux 03-09-2010 available

Posted: Sat Oct 20, 2012 2:09 am
by ewood
Well, an update on progress. I got source from github again today and, with the sheepthreads fix kindly provided by Kernigh, I am able to compile and make install, and the behavior is a little different from how it was before.. But it's still apparently not working. :sad:

Thing is, it offers no feedback on what's going wrong. I just get

Code: Select all

ewood@durandal:~/BasiliskII and SheepShaver source/SheepShaver/src/Unix$ SheepShaver
SheepShaver V2.4 by Christian Bauer and Mar"c" Hellwig

... And that's it. No GUI, nothing at all to see. It's just hanging there. Top tells me it's running:

Code: Select all

1116 ewood     20   0 25500 4876 4016 S   8,6  0,1   0:17.31 SheepShaver
That's 8.6 % CPU, and the amount varies a bit. Still, nothing to see or do with it. I deleted the old config file, which I had actually tried setting up by hand before because I wasn't getting any GUI and wanted to see if I could get around that, but this behavior is identical with or without it. I've also tried the sdl enables with ./configure as per http://www.emaculation.com/doku.php/com ... x_flavours

which also makes no difference.

Re: SheepShaver for Linux 03-09-2010 available

Posted: Wed Mar 06, 2013 1:14 am
by jayandtaz
I have Sheepshaver 2.3 for Linux. I have been having problems with a couple of issues. First, I can't get the Shapeshaver started without using in the terminal line, every computer startup, 'sudo sysctl -w vm.mmap_min_addr=0'. Second, I can't get the ethernet working- I have downloaded the file 'sheep_net.ko'- and used the setting with the mac, TCP/IP perferences that 'Emaculation' spells out on the website, still no internet, with or without the cord/wireless settings (the error is: cannot open /dev/sheep_net, no such file or folder. Ethernet will not be available). Third, I can't get the sound to work. I can't find directions on this.

Cat_7, you have helped me (Big time) last time when I had windows XP on my computer trying to use Sheepshaver. I have moved up in the world and I have Linux and so very happy now. My specs are: DELL Latitude D610, LinuxMint 13 Mate OS, 1.6 Ghz Pentium M, 2 gig memory, 40 gig HD

Thank you.
Jay

Re: SheepShaver for Linux 03-09-2010 available

Posted: Wed Mar 06, 2013 7:58 am
by Cat_7
Hi,

You have a nice set of problems there ;-) All are related to the Linux flavour you are using and what SheepShaver expects. What linux are you using?

Sound: SheepShaver is trying to use OSS sound, which has long been replaced by
PulseAudio in Linux. See if you have the "padsp" wrapper package installed, and type the
following from a command line: "padsp /usr/bin/SheepShaver" (If SheepShaver is installed in /usr/bin/)

Memory error: Some time ago linux versions upped the minimum address for memory to something higher than 0. This was done for security reasons. If you want to maintain security, there is no way around adding the vm.mmap_min_addr=0. If you system uses it, you can disable AppArmor at startup. It overrides the vmmap 0 setting. In order to run as a normal user, you have to disable AppArmor, or find a way to make an application profile for SheepShaver that works. To try running without apparmor, reboot and use the apparmor=0 parameter on boot before you decide to turn it off with your system services tool.

Ethernet: it might be the sheepnet.ko file is not compiled for your system. Can't you use "slirp" in the network settings?

Best,
cat_7

Re: SheepShaver for Linux 03-09-2010 available

Posted: Sun Jul 28, 2013 5:23 am
by brook2
Using these commands

Code: Select all

ln -s /usr/lib/x86_64-linux-gnu/libdirectfb-1.2.so.9 /usr/lib/libdirectfb-1.2.so.0
ln -s /usr/lib/x86_64-linux-gnu/libfusion-1.2.so.9 /usr/lib/libfusion-1.2.so.0
ln -s /usr/lib/x86_64-linux-gnu/libdirect-1.2.so.9 /usr/lib/libdirect-1.2.so.0
(slightly modified version of what was given above) I was able to run the SDL version and it launches mac os x! But when I opened to monitors panel to change colors to thousands (which was available!) it crashed immediately:

Code: Select all

SheepShaver_SDL_static: Fatal IO error 11 (Resource temporarily unavailable) on X server :0.0.

Re: SheepShaver for Linux

Posted: Sun Apr 13, 2014 4:06 pm
by MrGrymReaper
Hi,

Does anyone know of an up to date Ubuntu repository with SheepShaver and Basilisk II?

They need to be compatible and up to date (while being stable) with Ubuntu 12.04 LTS (Precise), Ubuntu 13.10 (Saucy Salamander) and the future Ubuntu 14.04 LTS (Trusty Tahr).

Please, in addition is it possible for a Ubuntu launch pad account to be prepared for the emulator software project in accordance with the Terms Of Use?

A launchpad account with PPAs could allow for packages to be distributed signed from a repository along with any updates. It could also allow for two PPAs (if desired) one with stable releases and the other with the latest releases.

Thank you for your time and attention in this matter.

Yours Respectfully,

MrGrymReaper

Re: SheepShaver for Linux

Posted: Sun Sep 21, 2014 8:36 am
by Cat_7
Good news for Linux users wanting to use networking with the sheep_net module!

The latest patch for the sheep_net driver for Linux kernels > version 3.15 again allows networking with this module.

Best,
Cat_7