WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Scientific and astronomy extensions  (Read 8428 times)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Scientific and astronomy extensions
« Reply #15 on: February 11, 2014, 05:31:55 AM »
It looks like these packages are binaries and will not need compiling (but might need other extensions as deps)?

Offline bob839

  • Newbie
  • *
  • Posts: 17
Re: Scientific and astronomy extensions
« Reply #16 on: February 11, 2014, 03:12:27 PM »
Yeah, it seems that it is in binary form already, so I have downloaded the Slackware version in tar.gz format instead of .rpm package of RedHat.

Now I have doubts - I have extracted the archive's contents and there is xplns executable and also an install.sh script. Should I run the install.sh script? If so, why? After all, there is executable file, things are compiled, so in WIN I would just click the executable to run the program. I don't want to do try and error without consulting you first, because I don't want to break something in my system.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: Scientific and astronomy extensions
« Reply #17 on: February 11, 2014, 03:21:00 PM »
Hi bob839
The first thing you could try is:
Code: [Select]
ldd xplnsto see if it finds all of its dependencies.

Offline bob839

  • Newbie
  • *
  • Posts: 17
Re: Scientific and astronomy extensions
« Reply #18 on: February 11, 2014, 03:31:02 PM »
Hello Rich!
I ran the ldd just like you suggested and I got some results. I assume, that I only need to install files/libs that are stated as 'not found' and the rest that are listed with names and hex numbers are already installed and ready to go, right?

Code: [Select]
Not found:
- libm.so.5
- libXp.so.6
- libc.so.5

Is there any way to download single libs from the repo?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: Scientific and astronomy extensions
« Reply #19 on: February 11, 2014, 03:43:35 PM »
Hi bob839
libXp.so.6  is in  libXp.tcz.
libm.so.5  and  libc.so.5  may be a problem since those libraries are part of the base system and are at version 6.

Offline bob839

  • Newbie
  • *
  • Posts: 17
Re: Scientific and astronomy extensions
« Reply #20 on: February 11, 2014, 04:26:10 PM »
So, given the source code is closed as the Xplns' author stated on his website there is not much chance to make this program run on TC?

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11623
Re: Scientific and astronomy extensions
« Reply #21 on: February 11, 2014, 04:34:19 PM »
Hi bob839
The version you downloaded was labeled  Slackware 3.X (libc5) i386
Try the version labeled  Exec(glibc2.1)

Offline bob839

  • Newbie
  • *
  • Posts: 17
Re: Scientific and astronomy extensions
« Reply #22 on: February 11, 2014, 05:01:46 PM »
I've used p7zip.tcz to extract the .rpm contents to a temporary folder then I ran ldd on xplns binary and there was only one 'not found', the aforementioned libXp.so.6. I have installed that missing dependency from libXp.tcz and I am ready to give it a go.
Do I have to move all the files to the corresponding system folders or can I run it from that temporary folder?
I got 'permission denied' when I tried to run it - shall I chmod 711 it?
« Last Edit: February 11, 2014, 05:04:53 PM by bob839 »

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Scientific and astronomy extensions
« Reply #23 on: February 11, 2014, 05:55:21 PM »
Sounds suspicious, likely attributes have become corrupted, possibly by extracting with p7zip.
Instead try to extract with:
Code: [Select]
rpm2cpio foo.rpm|cpio -vid
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Scientific and astronomy extensions
« Reply #24 on: February 12, 2014, 01:57:15 AM »
Quote
My questions about sc and DosBox are still valid.

sc package cherrypicked from slackware repo appears to work for me (depends on ncurses).

Quote
So DOSBox option is also a no-no, because my machine is too slow for it to emulate DOS properly.

By my impression, dosemu is much lighter on cpu compared to DOSbox - besides from having less dependencies.
The rpm package provided by upstream first unpacked and then squashed works for me.

Quote
My math problem is solved by bc and I wrote (I will post the code later) simple ash script to use bc for math with given precision and expression as parameters (for me it's more efficient than entering bc and running commands inside it).

Just FYI in case you hadn't noticed, 'dc' would be included in base.
« Last Edit: February 12, 2014, 06:05:59 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline bob839

  • Newbie
  • *
  • Posts: 17
Re: Scientific and astronomy extensions
« Reply #25 on: February 12, 2014, 06:08:51 AM »

Thank you tinypoodle! rpm2cpio command extracted the .rpm preserving all the attributes. :) I tried to run the xplns. The program started for a fraction of a second showing two empty windows and then closed showing 'xplns: can't create font.'
How to fix this? I think we are getting very close to finally making xplns run on TC 5.2 :)

As for sc, thank you for that info, however, I don't know what 'to cherrypick' mean. Nevertheless, I have downloaded slackware's .tar.gz, but after extracting its contents I frowned upon that it has to be compiled and I haven't done that kind of things before so I don't know where to start. Could you possibly provide me with further instructions?

Is Dosemu less resource demanding than 8086tiny.tcz? If not, there is no point trying it, because 8086tiny barely works on my machine.

Thank you for information about dc, I wasn't aware of that. I just have tried it and it seems to use RPN. I haven't used that system before, but I will give it a go. It is good thing to learn new stuff. :)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Scientific and astronomy extensions
« Reply #26 on: February 12, 2014, 06:26:02 AM »
The program started for a fraction of a second showing two empty windows and then closed showing 'xplns: can't create font.'
How to fix this? I think we are getting very close to finally making xplns run on TC 5.2 :)

I can reproduce...
And that's where I give up, given how dated, unsupported and closed that code is...

Quote
As for sc, thank you for that info, however, I don't know what 'to cherrypick' mean.

Meaning to grab a binary from a different distro.

Quote
Nevertheless, I have downloaded slackware's .tar.gz, but after extracting its contents I frowned upon that it has to be compiled and I haven't done that kind of things before so I don't know where to start. Could you possibly provide me with further instructions?

I just downloaded the package (I think .txz), untarred and ran from extracted dir.

Quote
Is Dosemu less resource demanding than 8086tiny.tcz? If not, there is no point trying it, because 8086tiny barely works on my machine.

I haven't looked into 8086tiny.

Quote
Thank you for information about dc, I wasn't aware of that. I just have tried it and it seems to use RPN. I haven't used that system before, but I will give it a go. It is good thing to learn new stuff. :)[/font]

bc has been derived from or built on top of dc which is purely using RPN.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14815
Re: Scientific and astronomy extensions
« Reply #27 on: February 12, 2014, 06:45:49 AM »
'xplns: can't create font.'

I'd guess:

* xplns is trying to use a font folder that does not exist on tinycore
* xplns is trying to use a font that does not exist on tinycore

You might try looking at, for example, the debian package to see what they did to get round this.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Scientific and astronomy extensions
« Reply #28 on: February 12, 2014, 06:59:07 AM »
I'd guess:

* xplns is trying to use a font folder that does not exist on tinycore
* xplns is trying to use a font that does not exist on tinycore

That inspired me to run strace on xplns, which resulted in a completely unresponsive X environment quite quickly.
Switching to a VT I found xplns was in "T" state, and killing it fixed my X environment.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Scientific and astronomy extensions
« Reply #29 on: February 12, 2014, 07:42:35 AM »
Is Dosemu less resource demanding than 8086tiny.tcz? If not, there is no point trying it, because 8086tiny barely works on my machine.


Just tested, on same box:

8086tiny: 100% CPU
dosemu:       1% CPU
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)