Author Topic: Automated Installer for Linux  (Read 4022 times)

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
(No subject)
« Reply #15 on: January 05, 2005, 10:11:48 am »
Quote
Originally posted by rapsys
I re-write the script in REAL bash!


u think it will run better than the expect thingy?

Quote
Originally posted by raloupower
My first problem is clear, thank you, but i\'ve got now the same problem with \".make\". I\'ve got
spawn ./make
couldn\'t execute \"./make\": no such file or directory
while executing
\"spawn ./make\"
(file \"installer.sh\" line 228)


got same on line 213

raloupower

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #16 on: January 05, 2005, 10:23:15 am »
for now it\'s seems to work (still compiling). i\'ve been further.. let\'s wait and see.

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
(No subject)
« Reply #17 on: January 05, 2005, 10:26:14 am »
er i\'m lacking of the file cal3d/animcallback.h..... all the time.... so compilation ends up in CS not found? s.o. has this file?

edit: btw:
install_bash.sh: line 233: syntax error near unexpected token `{\'
install_bash.sh: line 233: `if ($addvars == \"TRUE\"){\'

hehe... \"real bash\"? afaik no { but then
« Last Edit: January 05, 2005, 10:31:21 am by derula »

raloupower

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #18 on: January 05, 2005, 10:35:31 am »
...but 10 mn later :
configure: WARNING: Can not find cs-config in path you provided
no
configure: error:
*** Crystal Space could not be found. The latest version is always available
*** from http://crystal.sourceforge.net/
*** Be sure also that you have either installed Crystal Space or set the
*** CRYSTAL environment variable properly.

+ make
make: *** Pas de cibles sp?cifi?es et aucun makefile n\'a ?t? trouv?. Arr?t.
./planeshift.sh: line 233: syntax error near unexpected token `{\'
./planeshift.sh: line 233: `if ($addvars == \"TRUE\"){\'


...but better that  last time!

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
(No subject)
« Reply #19 on: January 05, 2005, 10:42:24 am »
I guess we have the same problem... look through your log if also cal3d/animcallback.h is missing...

edit: and go to line 233 and replace the if block with:
if [$addvars == \"TRUE\"]; then

echo -e \"Adding environment variables to ~/.bashrc\\n\"

echo -e \"export HOME=$installdir/planeshift\" >> ~/.bashrc

echo -e \"export LD_LIBRARY_PATH=$installdir/cal3d/lib:$LD_LIBRARY_PATH\" >> ~/.bashrc

echo -e \"export CRYSTAL=$installdir/CS\" >> ~/.bashrc

echo -e \"export CEL=$installdir/cel/\" >> ~/.bashrc

fi

edit2: Rapsys: your questioning for adding .bashirc stuff is missing
edit3: this is important, so you don\'t get a too long .bashrc
« Last Edit: January 05, 2005, 10:46:08 am by derula »

raloupower

  • Wayfarer
  • *
  • Posts: 5
    • View Profile
(No subject)
« Reply #20 on: January 05, 2005, 10:50:09 am »
let\'s try it!

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
(No subject)
« Reply #21 on: January 05, 2005, 03:52:04 pm »
Nevertheless I need a file called animcallback.h from the cal3d package...

hybrasyl

  • Traveller
  • *
  • Posts: 12
    • View Profile
Delete it
« Reply #22 on: January 05, 2005, 08:12:32 pm »
Try deleting the directory for cal3D and re-running the script, the CVS updater should download all the files you need.

I like Rapsys bash script better than my own,  however what I don\'t like about it is having to sit and wait for 3 different packages to download just so I can press enter.  I think i will take the good parts from both and merge them to make a nicer script.  Anyways great work Rapsys.
« Last Edit: January 06, 2005, 01:39:30 am by hybrasyl »

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
(No subject)
« Reply #23 on: January 06, 2005, 07:04:53 am »
okay, i retried that. besides that animcallback.h is still missing, i doubt that the export function do work properly somehow, because it is always telling me, cs could not be found. is any package needed therefor? second, do i have to create the file ~/.bashrc when it isn\'t excisting? third, in the bash version at the end i get somewhat that output:
1.:
+ \'[TRUE\' == \'TRUE]\'
install_bash.sh: line 233: [TRUE: command not found
2.:
+ echo -e \'Install Completed successfully!\\n\'
Install Completed successfully!
every echo appears twice... these 2 are probably from an inomplete conversion into bash?

edit: I\'m running SuSE 9.2 Pro.
« Last Edit: January 06, 2005, 03:18:18 pm by derula »

hybrasyl

  • Traveller
  • *
  • Posts: 12
    • View Profile
(No subject)
« Reply #24 on: January 06, 2005, 09:18:46 pm »
~/.bashrc is your bash resource file and was created by SuSE when you created your user account.
~/ always means the users home directory so if your user name was jenny and your running SuSE ~/.bashrc would mean.

Look at the file /home/jenny/.bashrc
Predicating a file with a period means it is a hidden file.  To see all the files (just to make sure you have this file go to a command shell and type ls -all
This will show all files and folders on in your current directory, hidden or otherwise.
To view the contents of your bashrc file type
less ~/.bashrc
To edit it by hand (recommended if using less shows some kind of error) you can use pico
pico ~/.bashrc
Alternatively you can also open it in any other text editor such as kwrite (my fav).
kwrite ~/.bashrc or kwrite /home/jenny/.bashrc if your username is jenny :)

I hope that helps, as for the problem of the missing file verify that it is not in fact there .

On my system it\'s
/home/jenny/planeshift/cal3d/include/cal3d/animcallback.h
I also seem to have one at
/home/jenny/planeshift/cal3d/src/cal3d/animcallback.h

If you didn\'t get the file look here for just that one file you can get it from the web enabled cvs tree by going here http://cvs.sourceforge.net/viewcvs.py/cal3d/cal3d/src/cal3d/
and looking for the file, just make sure to copy it to wherever it belongs in your own source tree.

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
(No subject)
« Reply #25 on: January 07, 2005, 06:05:47 am »
thanks for the link... as for the .bashrc: there is a .bashrc in my home directory,  but there is none in the root\'s home (/root), and ~/.bashrc links to /root/.bashrc (which doesn\'t seem to exist) when you are logged in as root, what you have to when starting the script (or don\'t you have to?). so that was my question.

edit: actually I do have animcallback.h, like i found out... then why is there an error message?

edit2: okay, i actually found the problem... the cal3d include path doesn\'t seem to be defined for CS, so it can\'t find animcallback.h... were do I add that? or does it use LD_LIBRARY_PATH constant? This ends with a :, is that why it doesn\'t work for me?

edit3: OKAY. I now manually added to /home/simon/.bashrc the following:
Quote
# Planeshift stuff...
installdir=/usr/local
export HOME=$installdir/planeshift
export LD_LIBRARY_PATH=$installdir/cal3d/lib
export CRYSTAL=$installdir/CS
export CEL=$installdir/cel/

but still: the same error (animcallback.h is not in include path/cal3d...)
I also changed LD_LIBRARY_PATH to $installdir/cal3d/includes which didn\'t seem to work, either.
isn\'t the /home/*/.bashrc used when logged on as root?
or do I need another constant name but LD_LIBRARY_PATH?
I\'m a little confused, since this all is new to me ^^\'

edit4: okay, changed a line in the install script:
Quote
./configure --with-libcal3d=$installdir/cal3d/includes --enable-new-renderer

seems to work by now...

edit5: question: may the download dir as well as the dir i ran the script in deleted after successful install? i guess yes?

edit6: OKAY. I now could install CS after some trouble, but CS won\'t be found by cel or planeshift. the following: $installdir/CS doesn\'t exist. only $installdir/lib/crystalspace and $installdir/include/crystalspace, so does $installdir/share/crystalspace and $installdir/share/crystalspace/doc. so, if i set $CRYSTAL to $installdir/lib/crystalspace it doesn\'t work, $installdir/include/crystalspace doesn\'t work either. which is correct?
« Last Edit: January 07, 2005, 07:21:51 am by derula »