4 ms·
Quoting from your link: COMMAND LINE: /opt/src/pharo-vm-Linux-x86_64-stable/pharo --headless [...] Yeah. It indeed works. With --headless. It's "just"
by klibertp 3y ago
Quoting from your link:
COMMAND LINE:
/opt/src/pharo-vm-Linux-x86_64-stable/pharo --headless [...]
Yeah. It indeed works. With --headless. It's "just" incapable of displaying GUI.
I use Fedora. I ran every other available Smalltalk implementation on it, including Visual Age. GToolkit distribution, too, worked without problems. Pharo didn't, and still doesn't. I know that wanting this to be fixed is lazy of me and shows incredible entitlement, so I stopped - but please don't tell me I misrepresent something.
- igouy 3y agoDo those script files work with your Fedora Pharo install?
- klibertp 3y agoI'm not sure, I'd need to try. I'm also curious how this: (SystemWindow windowsIn: World satisfying: [:w | w model canDiscardEdits]) do: [:w | w delete]. works in headless mode. I guess #windowsIn:satisfying: simply returns an empty array? But, why do you ask?
- igouy 3y agoCurious as to whether Pharo does work with --headless on your Fedora install. (I don't currently have an Ubuntu install to poke.)
- klibertp 3y agoIt seems to work. I found Pharo 10 on disk, running it like this: -▶ ~/portless/pharolauncher/pharo-vm/pharo --headless Pharo10-SNAPSHOT-64bit-0618067.image a.st with a.st: Object subclass: #BenchmarksGame instanceVariableNames: '' classVariableNames: '' poolDictionaries: '' category: ''! Transcript show: BenchmarksGame! First signals an error: primitive #primLoadSymbol:module: in TFFIBackend failed this seems to be related to libgit, as the stacktrace ends with: LGitLibrary(FFILibrary)>>ffiCall: LGitLibrary>>libgit2_init but it continues running and displays: BenchmarksGame and then hangs. I suspect I should tell it to quit, but since I don't have the GUI, I can't easily check what method I should call to do that. Ctrl+C works though. So, yes, without loading the GUI the VM and image seem to work. BTW, Smalltalk/X has a fully functional REPL, including console based Inspector and debugger. Imagine what would happen if you suggested providing such functionality in Pharo... ("only masochists can bear working with terminal", the "incredible" community says)
- igouy 3y agoI wouldn't describe that as "seem to work". What if a.st is Stdio stdout nextPutAll: 'Hello, world'; nextPut: Character lf
- klibertp 3y agoHere: https://gist.github.com/piotrklibert/e953b7bf85821f88f02a3c24eedd62e7 https://gist.github.com/piotrklibert/e953b7bf85821f88f02a3c2... If you have an image with Seaside project (they should work in headless mode) or something similar laying around I can try running it, I suspect it'd work.
- igouy 3y agoFrom the gist that install doesn't work headless. Seems like this: https://github.com/pharo-project/pharo/issues/9729#issuecomment-1200243944 https://github.com/pharo-project/pharo/issues/9729#issuecomm...
- klibertp 3y agoI mean... it executed code that was supposed to print "Hello world\n" and it did print that, so how is it not working? :) I have no idea why is libgit needed to boot a VM (is it even?), but evidently some functionality is still available despite the error. Not that it changes much...
- igouy 3y agohttps://github.com/pharo-project/pharo/issues/9729#issuecomment-1200243944 https://github.com/pharo-project/pharo/issues/9729#issuecomm... When all the required dependencies are being found on your Fedora install we should wonder why "the VM seemed to hang and never started properly" but not before.
- klibertp 3y agoYeah, sure. But why would I put effort into providing the dependencies to Pharo on silver platter? I engaged here just to show that it, indeed, doesn't work for me and I'm not misrepresenting anything. Now, it even looks like a well known (yet still not fixed) problem, so I have no further need to do anything. And no, LD_PRELOAD is not something I should be using, or at least, I didn't need to use it with any other Smalltalk, nor any other program I tried to run in a the past decade. I did have to use it once, with Baldurs Gate 2 (Linux/steam version) and that's about it.