Author Topic: .run issues  (Read 5455 times)

=MaxiM=

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #15 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.
« Last Edit: July 03, 2005, 05:36:36 pm by =MaxiM= »

Platyna

  • Hydlaa Notable
  • *
  • Posts: 556
    • View Profile
(No subject)
« Reply #16 on: July 03, 2005, 05:58:03 pm »
Commands like: which dialog or: locate dialog should tell you if you have it installed.


Regards.
Zuzanna K. Filutowska
RPG Players Community || Platyna\'s Planeshift Warehouse
\"The only thing necessary for evil to triumph is for good men to do nothing.\" -- Edward Burke

=MaxiM=

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #17 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 ;)

Platyna

  • Hydlaa Notable
  • *
  • Posts: 556
    • View Profile
(No subject)
« Reply #18 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.
Zuzanna K. Filutowska
RPG Players Community || Platyna\'s Planeshift Warehouse
\"The only thing necessary for evil to triumph is for good men to do nothing.\" -- Edward Burke

hramrach

  • Hydlaa Resident
  • *
  • Posts: 118
    • View Profile
(No subject)
« Reply #19 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.
Observer .. or watcher?

=MaxiM=

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #20 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.

Wired_Crawler

  • Hydlaa Citizen
  • *
  • Posts: 429
    • View Profile
(No subject)
« Reply #21 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.
« Last Edit: July 07, 2005, 03:01:17 pm by Wired_Crawler »
"Close the world, txEn eht nepO."

Kosh_Dukai

  • Traveller
  • *
  • Posts: 35
    • View Profile
(No subject)
« Reply #22 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
« Last Edit: July 10, 2005, 05:09:05 pm by Kosh_Dukai »

Platyna

  • Hydlaa Notable
  • *
  • Posts: 556
    • View Profile
(No subject)
« Reply #23 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.
Zuzanna K. Filutowska
RPG Players Community || Platyna\'s Planeshift Warehouse
\"The only thing necessary for evil to triumph is for good men to do nothing.\" -- Edward Burke

=MaxiM=

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #24 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?

Wired_Crawler

  • Hydlaa Citizen
  • *
  • Posts: 429
    • View Profile
(No subject)
« Reply #25 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.
« Last Edit: July 08, 2005, 06:39:00 pm by Wired_Crawler »
"Close the world, txEn eht nepO."

Platyna

  • Hydlaa Notable
  • *
  • Posts: 556
    • View Profile
(No subject)
« Reply #26 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.
Zuzanna K. Filutowska
RPG Players Community || Platyna\'s Planeshift Warehouse
\"The only thing necessary for evil to triumph is for good men to do nothing.\" -- Edward Burke

=MaxiM=

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #27 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.

Platyna

  • Hydlaa Notable
  • *
  • Posts: 556
    • View Profile
(No subject)
« Reply #28 on: July 08, 2005, 10:58:30 pm »
Well, then good luck!


Regards.
Zuzanna K. Filutowska
RPG Players Community || Platyna\'s Planeshift Warehouse
\"The only thing necessary for evil to triumph is for good men to do nothing.\" -- Edward Burke

Kosh_Dukai

  • Traveller
  • *
  • Posts: 35
    • View Profile
(No subject)
« Reply #29 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