Author Topic: problem with update.sh  (Read 29547 times)

evster

  • Guest
problem with update.sh
« on: August 05, 2005, 02:18:27 pm »
Hi,

I am trying to install Code::Blocks on Gentoo linux.  I compiled it using
Code
make -f Makefile.unix
and then tried to run the update.sh script after to complete the installation.  This script fails horribly and I don't get resources.zip and some of the directory names and executables end with a "?".

Here is the output when I run the script:
Code
evan-linux src # sh update
: command not found
Creating output directory tree
: command not found
: command not found
Compressing core UI resources
: command not foundp
: command not foundp
: command not foundp
Compressing plugins UI resources
: command not foundp
: command not foundp
: command not foundp
: command not foundp
: command not foundp
: command not foundp
: command not foundp
: command not foundp
Packing core UI bitmaps
: No such file or directorysources
: command not foundp
: No such file or directorysdk/resources
: command not foundp
Packing plugins UI bitmaps
: No such file or directoryplugins/compilergcc/resources
: command not foundp
: No such file or directory../plugins/debuggergdb/resources
: command not foundp
: No such file or directory..
: command not found
Copying files
cp: cannot stat `devel/share/CodeBlocks\r/*.zip': No such file or directory
cp: `devel/share/CodeBlocks\r/lexers': specified destination directory does not exist
Try `cp --help' for more information.
cp: `output/share/CodeBlocks/lexers': specified destination directory does not exist
Try `cp --help' for more information.
cp: `devel/share/CodeBlocks\r/images': specified destination directory does not exist
Try `cp --help' for more information.
cp: `devel/share/CodeBlocks\r/images/codecompletion': specified destination directory does not exist
Try `cp --help' for more information.
cp: `output/share/CodeBlocks/images/codecompletion': specified destination directory does not exist
Try `cp --help' for more information.
cp: `output/share/CodeBlocks/templates': specified destination directory does not exist
Try `cp --help' for more information.
cp: `output/share/CodeBlocks/templates': specified destination directory does not exist
Try `cp --help' for more information.
cp: `devel/share/CodeBlocks\r/templates': specified destination directory does not exist
Try `cp --help' for more information.
cp: `devel/share/CodeBlocks\r/templates': specified destination directory does not exist
Try `cp --help' for more information.
cp: cannot stat `devel/share/CodeBlocks\r/plugins/*.so': No such file or directory
Stripping debug info from output tree
': No such file*.exe
': No such file*.so
': No such fileshare/CodeBlocks/plugins/*.so
: command not found
Creating launch-scripts
: command not found

Anyone have any ideas of how I can fix this?

Thanks!
Evan

Offline Funto

  • Multiple posting newcomer
  • *
  • Posts: 81
Re: problem with update.sh
« Reply #1 on: August 05, 2005, 03:20:08 pm »
Did you do this?
Code
dos2unix update.sh
chmod +x update.sh
./update.sh

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: problem with update.sh
« Reply #2 on: August 05, 2005, 04:14:42 pm »
Also, you need to have the zip command in your path.

evster

  • Guest
Re: problem with update.sh
« Reply #3 on: August 05, 2005, 06:13:19 pm »
Where do I get dos2unix ?  I don't have it.

evster

  • Guest
Re: problem with update.sh
« Reply #4 on: August 05, 2005, 06:15:16 pm »
Ok ,got it.

Thanks guys!

stodge

  • Guest
Re: problem with update.sh
« Reply #5 on: August 27, 2005, 09:17:19 pm »
I get this on Fedora Core 4:

Code
update: line 2: 
: command not found
Creating output directory tree

update: line 4:
: command not found
update: line 9:
: command not found
Compressing core UI resources

update: line 13: /dev/null
: Permission denied
update: line 14: /dev/null
: Permission denied
update: line 15: /dev/null
: Permission denied
Compressing plugins UI resources

update: line 17: /dev/null
: Permission denied
update: line 18: /dev/null
: Permission denied
update: line 19: /dev/null
: Permission denied
update: line 20: /dev/null
: Permission denied
update: line 21: /dev/null
: Permission denied
update: line 22: /dev/null
: Permission denied
update: line 23: /dev/null
: Permission denied
update: line 24: /dev/null
: Permission denied
Packing core UI bitmaps

update: line 26: cd: src/resources
: No such file or directory
update: line 27: /dev/null
: Permission denied
update: line 28: cd: ../../sdk/resources
: No such file or directory
update: line 29: /dev/null
: Permission denied
Packing plugins UI bitmaps

update: line 31: cd: ../../plugins/compilergcc/resources
: No such file or directory
update: line 32: /dev/null
: Permission denied
update: line 33: cd: ../../../plugins/debuggergdb/resources
: No such file or directory
update: line 34: /dev/null
: Permission denied
update: line 35: cd: ../../..
: No such file or directory
update: line 36:
: command not found
Copying files

update: line 38: /dev/null
: Permission denied
update: line 39: /dev/null
: Permission denied
update: line 40: /dev/null
: Permission denied
update: line 41: /dev/null
: Permission denied
update: line 42: /dev/null
: Permission denied
update: line 43: /dev/null
: Permission denied
update: line 44: /dev/null
: Permission denied
update: line 45: /dev/null
: Permission denied
update: line 46: /dev/null
: Permission denied
update: line 47: /dev/null
: Permission denied
update: line 48: /dev/null
: Permission denied
update: line 49: /dev/null
: Permission denied
update: line 50: /dev/null
: Permission denied
update: line 51: /dev/null
: Permission denied
update: line 52: /dev/null
: Permission denied
update: line 53: /dev/null
: Permission denied
update: line 54: /dev/null
: Permission denied
update: line 55: /dev/null
: Permission denied
Stripping debug info from output tree

strip: 'output/*.exe
': No such file
strip: 'output/*.so
': No such file
strip: 'output/share/CodeBlocks/plugins/*.so
': No such file
update: line 60:
: command not found
Creating launch-scripts

update: line 74:
: command not found

grv575

  • Guest
Re: problem with update.sh
« Reply #6 on: August 28, 2005, 02:00:16 am »
Install zip/unzip.   Also make sure you have write permission to /dev/null.

stodge

  • Guest
Re: problem with update.sh
« Reply #7 on: August 28, 2005, 03:37:22 am »
"Also make sure you have write permission to /dev/null."

I have zip/unzip installed, but this could be the problem.

stodge

  • Guest
Re: problem with update.sh
« Reply #8 on: August 28, 2005, 07:54:06 pm »
I ran update as root but it still won't work.

grv575

  • Guest
Re: problem with update.sh
« Reply #9 on: August 28, 2005, 09:34:23 pm »
not sure which version of source you're building from, so could you attache update.sh (rename to .txt)?
what worries me is this:

update: line 2:
: command not found

and did you do dos2unix?:
http://forums.codeblocks.org/index.php/topic,679.msg4372.html#msg4372
« Last Edit: August 28, 2005, 09:36:02 pm by grv575 »

stodge

  • Guest
Re: problem with update.sh
« Reply #10 on: August 28, 2005, 10:09:03 pm »
How embarassing I ran dos2unix on update.sh and not just update. It still doesn't completely work though:
Code
Copying files
cp: `output/share/CodeBlocks': specified destination directory does not exist
Try `cp --help' for more information.
cp: `output/share/CodeBlocks/lexers': specified destination directory does not exist
Try `cp --help' for more information.
cp: `output/share/CodeBlocks/images': specified destination directory does not exist
Try `cp --help' for more information.
cp: `output/share/CodeBlocks/images/codecompletion': specified destination directory does not exist
Try `cp --help' for more information.
cp: `output/share/CodeBlocks/templates': specified destination directory does not exist
Try `cp --help' for more information.
cp: `output/share/CodeBlocks/templates': specified destination directory does not exist
Try `cp --help' for more information.
cp: omitting directory `templates/common/CVS'
cp: omitting directory `templates/unix/CVS'
cp: copying multiple files, but last argument `output' is not a directory
Try `cp --help' for more information.
cp: accessing `output/share/CodeBlocks/plugins': Not a directory
Stripping debug info from output tree
strip: Warning: could not locate 'output/*.exe'.  reason: Not a directory
strip: Warning: could not locate 'output/*.so'.  reason: Not a directory
strip: Warning: could not locate 'output/share/CodeBlocks/plugins/*.so'.  reason: Not a directory
Creating launch-scripts
update: line 62: output/run.sh: Not a directory
update: line 63: output/run.sh: Not a directory
update: line 64: output/run.sh: Not a directory
update: line 65: output/run.sh: Not a directory
update: line 66: output/run.sh: Not a directory
chmod: cannot access `output/run.sh': Not a directory

grv575

  • Guest
Re: problem with update.sh
« Reply #11 on: August 28, 2005, 11:33:38 pm »
For whatever reason the mkdir -p commands are failing

Code
mkdir -p output/share/CodeBlocks/lexers
mkdir -p output/share/CodeBlocks/images/codecompletion
mkdir -p output/share/CodeBlocks/plugins
mkdir -p output/share/CodeBlocks/templates

Try typing those in the shell by themselves and see why your system doesn't like them.  I'd guess a permissions problem.

stodge

  • Guest
Re: problem with update.sh
« Reply #12 on: August 29, 2005, 01:10:04 am »
Odd:

-rw-r--r--   1 mike mike 11523051 Aug 28 19:09 output

Offline rickg22

  • Lives here!
  • ****
  • Posts: 2283
Re: problem with update.sh
« Reply #13 on: August 29, 2005, 05:00:56 am »
hmmmm....

maybe we need to include a chmod in there...

grv575

  • Guest
Re: problem with update.sh
« Reply #14 on: August 29, 2005, 08:25:39 am »
nothing is installed and the user owns all subdirectories.  not sure why his update is failing.

stodge:  Maybe the directory needs to be marked executable.
try chmod 755 -R codeblocks
« Last Edit: August 29, 2005, 08:54:55 am by grv575 »