PlaneShift

Support => Linux Specific Issues => Topic started by: renor_elghinn on June 01, 2005, 03:27:14 am

Title: .run issues
Post by: renor_elghinn on June 01, 2005, 03:27:14 am
The issue of the .run not working was resolved with the assistance of THIS help file:
http://metawire.org/~jon/Planeshift_3.010_linuxbinary_howto

the 3.010 .run file creates a temporary directory, extracts the temporary files, and deletes them immediatly after creating them, and then says its done, it dosn\'t ask me to agree to the liscence agreement or open a installer.

I\'m running:
AMD 3200XT
1024MB DDR ram
ATI Radeon 9600XT
SBlive (disabled)

with:
XandrOS (Debian-based)
Title:
Post by: lethe on June 01, 2005, 10:12:03 am
in console you can always use control + c to stop or control + z to pause your action. control + z also puts your job in the background, which can be seen through \"jobs\" and make back to the foreground and continue  by \"fg\".
just break after the package is unpacked .. go to folder an install manually.
but this problem is strange ... can you give some errors from console?

greets

lethe
Title:
Post by: Platyna on June 01, 2005, 10:43:49 am
It surely gives you some message before, you should paste the console
output you get while running the installer. It must be some system specific
issue, since you are the first and only person who reports such weird behaviour.
You should start at checking that your system PATH variable is correctly set:
echo $PATH, then you should check if in that PATH you have the dialog program:
which dialog

If it is not displaying the license, it is most likely lack of this program.


Regards.
Title:
Post by: renor_elghinn on June 02, 2005, 06:51:05 am
The issue is already resolved,

it gave me no error messages,
once the files were created by the .run installer they were supposed to be extracted by the .run install file as well, however it wasn\'t preforming this action, it was skipping it and moving on to delete the files it created and assumed it had completed its task sucessfuly,

I ended up having to extract all the compressed files from the .run manually threw the console, and then manually uncompress them.

The readme file link at the top of my initial post explains how to do this for those that don\'t know.
Title:
Post by: Induane on June 02, 2005, 06:50:14 pm
brant@Ubuntu:~ $ ./PlaneShift_CBV0.3.010.run --target ps
Creating directory ps
Verifying archive integrity... All good.
Uncompressing Planeshift Crystal Blue Version 3.010.....Extraction failed.
Terminated
Title:
Post by: Platyna on June 02, 2005, 07:38:25 pm
That installer requires dialog program to work. Install the dialog program, then just run the installer.
Also you have to make sure your download is not corrupted, the best way is comparing files sizes with these listed at: http://platyna.xpam.de/planeshift/.

Regards.
Title:
Post by: Induane on June 13, 2005, 05:47:17 pm
I checked to be sure but I have dialog installed.  Also the installer is the correct size and I have downloaded it 11 times now with the same issue.
Title:
Post by: Platyna on June 13, 2005, 05:53:45 pm
Well, then try to update your tar archiver and don\'t use --target. That option will
be removed soon anyway. You will be able to specify an install directory during
the installation process.


Regards.
Title:
Post by: ilBaal on June 22, 2005, 04:02:35 pm
I have the same problem :
sh PlaneShift_CBV0.3.010.run
Creating directory ps.cb.03.010
Verifying archive integrity... All good.
Uncompressing Planeshift Crystal Blue Version 3.010.....Extraction failed.
Terminated

Since yesterday, I updated my whole Suse 9.1 (this takes a while with UMTS :( ), hoping this would update tar. Well, now I get the same problem.
I will search through this forum further but if someone of you could help me I\'d be very thankful,           ilBaal

EDIT: AMD Athlon XP 1800+, 512mb RAM, Geforce 3, AC97 Sound
Title:
Post by: Platyna on June 22, 2005, 05:52:16 pm
What is md5sum of that file?


Regards.
Title:
Post by: ilBaal on June 23, 2005, 01:03:39 am
Hi!

md5sum PlaneShift_CBV0.3.010.run
d4776e9fdb5b774893285d053f0ea80b  PlaneShift_CBV0.3.010.run


THX in advance
Title:
Post by: Platyna on June 23, 2005, 11:13:14 am
Md5sum is ok...how about showing me tar --version?


Regards.
Title:
Post by: Wired_Crawler on June 23, 2005, 07:59:56 pm
Akhem.

First check, if You have enough free space in the filesystem, where .run file resides. It self-decompresses to subdirectory ps.cb.03.010
Actually, I\'m able to reproduce the problem by filling my /home filesystem with some garbage.

Cheers.
Title:
Post by: ilBaal on June 28, 2005, 08:47:09 pm
Greetz,

there is enough space in the filesystem. The tar-version is 1.13.25-298.

                                 THX in advance, ilBaal
Title:
Post by: Platyna on June 28, 2005, 11:51:36 pm
Well, try to upgrade tar, also see if you have enought space in your /tmp
directory and basic stuff like binutils installed - some distributions are
spreading them in a few packages. I can\'t reproduce this error.


Regards.
Title:
Post by: =MaxiM= on July 03, 2005, 05:35:55 pm
Hi, i\'m having the same problem with .run file as ilBaal.
I\'m a complete Linux noob, i\'m using Mandrake 10.2 for a week now and i don\'t have any idea what is that beforementioned \'dialog program\' and where to look for it so i can\'t check if i have it installed (and i have no idea how to upgrade tar).
What i do know is that checksum is ok and i have more enough space on my hdd.
Any help appreciated. Thanks in advance.
Title:
Post by: Platyna on July 03, 2005, 05:58:03 pm
Commands like: which dialog or: locate dialog should tell you if you have it installed.


Regards.
Title:
Post by: =MaxiM= on July 04, 2005, 10:12:51 pm
So, no idea what is it, huh? Oh well, i give up (after downloading it 4 times and trying to install it over and over), maybe i\'ll try Windows version with Cedega or when i\'ll alt+tab to XP ;)
Title:
Post by: Platyna on July 04, 2005, 10:52:52 pm
Well, installer uses tar -vf to unpack these files. The last thing that comes on my
mind is checking if your tar version supports it.


Regards.
Title:
Post by: hramrach on July 04, 2005, 11:28:57 pm
Perhaps the installer could print or log somewhere the tar errors so that we know why it fails.

tar 1.15.1 here.

And at least installing works.

for checking disk space: df -h

The extract may possibly fail if there already exists some file or directory which tar possibly does not remove.

Tar will also report errors on weird filesystems like FAT because it cannot set the file mode properly.
Title:
Post by: =MaxiM= on July 07, 2005, 01:09:49 pm
Same tar version here...
Recently i reinstalled Mandriva (for other reasons) and i hoped it will work after that... nope, it doesn\'t.
Tar version - OK
Checksum  - OK
Disc space - OK
Code: [Select]
Creating directory ps.cb.03.010
Verifying archive integrity... All good.
Uncompressing Planeshift Crystal Blue Version 3.010..Extraction failed.
...Terminated

With all due respect, it\'s not worth the trouble.
Title:
Post by: Wired_Crawler on July 07, 2005, 02:19:37 pm
Could You post here:
- absolute path to your ...run file (for example /home/user/tmp/cb_xxxxx.run),
- working directory, from wich You run the file (output of \"pwd\" command)
-output of \"set\" command (I need values of variables TMP and TMPDIR)
- output of \"df -k\" command ?

Also - You can try to unpack the file manually, link to instructions is at the top of this thread.

Cheers.
Title:
Post by: Kosh_Dukai on July 07, 2005, 02:48:09 pm
Quote
Originally posted by =MaxiM=
Code: [Select]
Creating directory ps.cb.03.010
Verifying archive integrity... All good.
Uncompressing Planeshift Crystal Blue Version 3.010..Extraction failed.
...Terminated

hmmm... so, it\'s failing on (or just prior to) the UnTAR() function.

Well... you could do something like:

sh -x PlaneShift_CBV0.3.010-UPDATE.run 2> PasteThisOnTheForum.log ;)

or inspect the script yourself, by doing this:

head -n 361 PlaneShift_CBV0.3.010-UPDATE.run | more

and see if something catches your eye.

EDIT: It goes without saying that I used PlaneShift_CBV0.3.010-UPDATE.run simply because it was smaller (faster) to download just to check what was supposed to do. In your case I think you\'re using PlaneShift_CBV0.3.010.run so maybe you should do something like:

head -n `grep -x -n planeshift.tar.gz PlaneShift_CBV0.3.010.run|cut -f 1 -d \":\"`PlaneShift_CBV0.3.010.run

EDIT2: my bad... the .log should capture the stderr instead of stdout :P
Title:
Post by: Platyna on July 07, 2005, 06:02:49 pm
Yep, logs can be useful. And that script does nothing more than:

tar -xzf -

Sometimes distributions are patching stuff with weird patches, so you may
check if your tar supports these options, for example:

cat whatever.tar.gz | tar -zxf -


Regards.
Title:
Post by: =MaxiM= on July 08, 2005, 02:57:32 pm
My log file contained only this:
Code: [Select]
Verifying archive integrity... All good.
Uncompressing Planeshift Crystal Blue Version 3.010.....


But here\'s what i saw in the console
Code: [Select]
[root@host148 Planeshift]# sh -x PlaneShift_CBV0.3.010.run | tee PasteThisOnTheForum.log
+ CRCsum=0000000000
+ MD5=00000000000000000000000000000000
+ TMPROOT=/root/tmp
+ label=\'Planeshift Crystal Blue Version 3.010\'
+ script=./setup.sh
+ scriptargs=
+ targetdir=ps.cb.03.010
+ filesizes=276234240
+ keep=y
+ print_cmd_arg=
+ type printf
+ print_cmd=printf
+ finish=true
+ xterm_loop=
+ nox11=n
+ copy=none
+ ownership=y
+ verbose=n
+ initargs=
+ true
+ case \"$1\" in
+ break
+ case \"$copy\" in
+ test n = n
+ tty -s
+ :
+ test ps.cb.03.010 = .
+ test y = y
+ echo \'Creating directory ps.cb.03.010\'
Creating directory ps.cb.03.010
+ tmpdir=ps.cb.03.010
+ mkdir -p ps.cb.03.010
++ pwd
+ location=/mnt/win_g/Gry/Linux/Planeshift
+ test x \'!=\' x1
+ MS_Check PlaneShift_CBV0.3.010.run
+ OLD_PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin:
/bin:/usr/bin:/sbin:/usr/local/ssl/bin:/usr/local/bin:/opt/openssl/bin
++ exec
+ MD5_PATH=/usr/bin/md5sum
+ MD5_PATH=/usr/bin/md5sum
+ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin
+ MS_Printf \'Verifying archive integrity...\'
+ printf \'Verifying archive integrity...\'
Verifying archive integrity...++ head -n 361 PlaneShift_CBV0.3.010.run
++ wc -c
++ tr -d \' \'
+ offset=8481
+ verb=
+ i=1
+ for s in \'$filesizes\'
++ echo 0000000000
++ cut \'-d \' -f1
+ crc=0000000000
+ test -x /usr/bin/md5sum
++ echo 00000000000000000000000000000000
++ cut \'-d \' -f1
+ md5=00000000000000000000000000000000
+ test 00000000000000000000000000000000 = 00000000000000000000000000000000
+ test x = xy
+ test 0000000000 = 0000000000
+ test x = xy
++ expr 1 + 1
+ i=2
++ expr 8481 + 276234240
+ offset=276242721
+ echo \' All good.\'
 All good.
++ head -n 361 PlaneShift_CBV0.3.010.run
++ wc -c
++ tr -d \' \'
+ offset=8481
+ test xn = xy
+ MS_Printf \'Uncompressing Planeshift Crystal Blue Version 3.010\'
+ printf \'Uncompressing Planeshift Crystal Blue Version 3.010\'
Uncompressing Planeshift Crystal Blue Version 3.010+ res=3
+ test y = n
+ for s in \'$filesizes\'
+ MS_dd PlaneShift_CBV0.3.010.run 8481 276234240
++ expr 276234240 / 1024
+ blocks=269760
++ expr 276234240 % 1024
+ bytes=0
+ dd if=PlaneShift_CBV0.3.010.run ibs=8481 skip=1 obs=1024 conv=sync
+ eval cat
++ cat
+ cd ps.cb.03.010
+ UnTAR x
+ tar xvf -
+ MS_Progress
+ read a
+ MS_Printf .
+ printf .
.+ read a
+ MS_Printf .
+ printf .
+ read a
+ MS_Printf .
+ printf .
+ read a
+ MS_Printf .
+ printf .
+ read a
+ MS_Printf .
+ printf .
+ read a
....+ echo Extraction failed.
Extraction failed.
+ kill -15 6869


As for other thing you wanted to see:
/mnt/win_g/Gry/Linux/Planeshift/PlaneShift_CBV0.3.010.run
/mnt/win_g/Gry/Linux/Planeshift
TMP=/home/maxim/tmp
TMPDIR=/home/maxim/tmp
Code: [Select]
System plik?w      bl.  1K B        u?yte dost?pne %u?. zamont. na
/dev/hda6              7218432   4012220   2839532  59% /
/dev/hda1              5234944   3251644   1983300  63% /mnt/win_c
/dev/hda5              1571248   1467408    103840  94% /mnt/win_d
/dev/hda8             15712240   7777504   7934736  50% /mnt/win_e
/dev/hda9             15712240  14649176   1063064  94% /mnt/win_f
/dev/hda10            31471968  27835456   3636512  89% /mnt/win_g


Any ideas?
Title:
Post by: Wired_Crawler on July 08, 2005, 06:05:56 pm
I assume, there is windows partition (FAT32 ?) mounted at /mnt/win_g.
FAT32 does not support setting of some attributes specific for other flesystems (like permissions, owner, group, dtime etc). Try to move PlaneShift_CBV0.3.010.run to /home/maxim and run it from there.
Also, give /home/maxim/planeshift as the target installation directory.

Do You start instalation as root (by using \"su\" for example) or maxim ?
I\'m asking, because TMPROOT is set to /root/tmp ... And it should be /home/maxim/tmp ...

Try to run it as user maxim.

EDIT: Erm... I just thought... If that partition (/mnt/win_g) is NTFS partition, everything is clear. Linux cannot write to ntfs filesystem... in this case move/copy the .run file to /home/maxim too.
Title:
Post by: Platyna on July 08, 2005, 06:35:57 pm
It could be, tar tries to save permissions while unpacking files. And you can\'t
change them because FS not supports it. Better run it on your Linux partition.
About tmpdir it sets it automagically.


Regards.
Title:
Post by: =MaxiM= on July 08, 2005, 09:33:44 pm
Oh crap, that explains everything. Those win_x partitions are all FAT32, but i already tried installing it from /home/maxim directory but as root to be able to install it to /usr/local/games folder... who would have thought. I just installed it to new /games folder now and the whole process went smooth.
Again: who would have thought... i\'ve read somewhere that FAT fs can cause problems, not FAT32. D\'oh!
Thanks for your time, now i hope the game itself won\'t cause me any problems. Wish me luck.
Title:
Post by: Platyna on July 08, 2005, 10:58:30 pm
Well, then good luck!


Regards.
Title:
Post by: Kosh_Dukai on July 10, 2005, 05:28:36 pm
Tried running the ./PlaneShift_CBV0.3.010-UPDATE.run on a Ubuntu system and it worked, but only after installing the dialog (sudo apt-get install dialog)

Platyna, maybe the script should test at least for the availablility of dialog, giving an error msg to let the user know its missing dialog from his system ? ...since it looks like some distros don\'t install it by default.

Anyway, kudos for this package. Thxs Platyna  :D


ok... now, let\'s try the hard way ;) ...build the latest client from CVS (although it won\'t connect to the current Laanx server) :P
Title:
Post by: Platyna on July 10, 2005, 05:38:36 pm
I think that error message is kinda clear. Maybe I will write some warning that
if you are on Ubuntu then you have to install dialog. Anyway it is evil that there
are Linux distros that not install dialog by default since it was meant to be a
simple tool for writing some basic scripts like netconfig etc. in a comfortable
way so it kinda defeats the purpose of dialog.
And about laters CVS, it won\'t connect to official server because netversion
has been changed long time ago (at 22.05.05), the latest source I managed to
get to work properly is 19.05.05 (CS/CEL/Cal3d/PS) which is also mirrored at
http://planeshift.xpam.de/ so you may download it from there too.


Regards.
Title:
Post by: ilBaal on July 10, 2005, 10:20:21 pm
WOW!

I just looked into this thread again. I previously tried to unpack it on a FAT32 partition. Now it works :)

thx
Title:
Post by: Platyna on July 10, 2005, 10:30:13 pm
Well then, thanks to Kosh Dukai, problem seems to be solved.


Regards.
Title:
Post by: Kosh_Dukai on July 12, 2005, 03:30:50 pm
Well Wired_Crawler got it 1st, so he naturally deserves all the credit for not letting this thread alone, too ! :)


EDIT:
Quote
Originally posted by Platyna
And about laters CVS, it won\'t connect to official server because netversion has been changed long time ago (at 22.05.05)


Yes, I know (http://cvs.sourceforge.net/viewcvs.py/planeshift/planeshift/docs/history.txt?rev=1.2720&view=markup), thxs :) ...but I only want to check the new pets and see Klyros fall from the sky (http://cvs.sourceforge.net/viewcvs.py/planeshift/planeshift/docs/history.txt?view=markup) ;) !!!
...erm, when I get the new psserver running too, that is ;P
Title: dialog
Post by: hramrach on July 15, 2005, 12:53:43 pm
Well, there may be some X equivalent of dialog on Ubuntu.

They try to hide the console from users as much as possible (which is understandable as they target the users that do not want to see it).

Note that Debian also allows several frontends for dpkg configureation scripts including readline and dialog. The others are X based I beleive.

I will try to look what Ubuntu installs by default..