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
Did you do this?
dos2unix update.sh
chmod +x update.sh
./update.sh
Also, you need to have the zip command in your path.
Where do I get dos2unix ? I don't have it.
Ok ,got it.
Thanks guys!
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
Install zip/unzip. Also make sure you have write permission to /dev/null.
"Also make sure you have write permission to /dev/null."
I have zip/unzip installed, but this could be the problem.
I ran update as root but it still won't work.
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
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
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.
Odd:
-rw-r--r-- 1 mike mike 11523051 Aug 28 19:09 output
hmmmm....
maybe we need to include a chmod in there...
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
Quote from: stodge on August 29, 2005, 01:10:04 AM
Odd:
-rw-r--r-- 1 mike mike 11523051 Aug 28 19:09 output
'output' is a file, not a directory. That's why it's failing.
rm output
./update
should fix the problem...
I already tried that but it didn't work. I deleted the build last night and I'll re-build from scratch tonight. If that doesn't work, I'll just stick to a text editor and a console. :(
Thanks
Ok that works now, but codeblocks just crashes with a segmentation fault. Must re-read documentation and see if I can build with debug.
If it crashes, maybe it's one of the famous Linux crashes! :D
so that would mean we're doing ok... :P
Try deleting your home .Codeblocks/default.workspace file. Then disable the code completion plugin, it's rather unstable in RC1-1.
Also, notice that it's not yet working with wx2.6 in linux...
Quote from: stodge on August 30, 2005, 02:11:30 AM
Ok that works now, but codeblocks just crashes with a segmentation fault. Must re-read documentation and see if I can build with debug.
I have the exact same problem after make & update.
It just crashes with a seg fault.
My platform is RH Linux WS3, wxWidgets 2.6.1
Is C:B ready for wx2.6.1 & Linux?
Quote from: yeewang on August 30, 2005, 11:42:57 AM
Is C:B ready for wx2.6.1 & Linux?
Look one post up...
Quote from: mandrav on August 30, 2005, 09:54:50 AM
Also, notice that it's not yet working with wx2.6 in linux...
Aw crap! I didn't notice that! Any more information on the site about this? I took a quick look but didn't see anything obvious.
Thanks
Quote from: mandrav on August 30, 2005, 12:30:23 PM
Quote from: yeewang on August 30, 2005, 11:42:57 AM
Is C:B ready for wx2.6.1 & Linux?
Look one post up...
So ..... when ?
I don't mean to push sth., but we're waiting ... ...
Well, in the meantime, you can use the makefile.unix from CVS and replace the wxwidgets 2.4 references for 2.6...
thx, i'll try.
yes, it works.
Thx. you guys did great.