News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

problem with update.sh

Started by evster, August 05, 2005, 02:18:27 PM

Previous topic - Next topic

evster

Hi,

I am trying to install Code::Blocks on Gentoo linux.  I compiled it using 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:
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

Funto

Did you do this?

dos2unix update.sh
chmod +x update.sh
./update.sh

rickg22

Also, you need to have the zip command in your path.

evster

Where do I get dos2unix ?  I don't have it.

evster


stodge

I get this on Fedora Core 4:

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

Install zip/unzip.   Also make sure you have write permission to /dev/null.

stodge

"Also make sure you have write permission to /dev/null."

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

stodge

I ran update as root but it still won't work.

grv575

#9
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.next.codeblocks.org/index.php/topic,679.msg4372.html#msg4372

stodge

How embarassing I ran dos2unix on update.sh and not just update. It still doesn't completely work though:

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

For whatever reason the mkdir -p commands are failing


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

Odd:

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

rickg22

hmmmm....

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

grv575

#14
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