Ask Your Question
0

cp: cannot stat `truncate': No such file or directory

asked 2011-02-18 02:12:00 -0500

janson071 gravatar image

following this url: http://wiki.openstack.org/NovaInstall/CentOSNotes (http://wiki.openstack.org/NovaInstall...) ;

when I do the command as follows:

---Last but not least you will need truncate which for some reason is not included with Centos 5 coreutils. To install execute following:

wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.9.tar.gz (http://ftp.gnu.org/gnu/coreutils/core...) tar -zxvf coreutils-8.9.tar.gz cd coreutils-8.9 ./configure make sudo cp truncate /usr/bin/

It shows an error like this: [root@localhost coreutils-8.9]# cp truncate /usr/bin/ cp: cannot stat `truncate': No such file or directory

why ? hoping for friendly help~

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2011-02-18 12:06:51 -0500

berendt gravatar image

Hmm.. I think it's easier to grep a RPM package from CentOS 6 and to extract the missing binary. I'm using this binary at the moment on a SLES11 SP1 system and it's working fine. /usr/bin/truncate is also not included in the SLES11 coreutils package :(

http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/ (http://pkgs.org/centos-6-rhel-6/cento...) http://pkgs.org/centos-6-rhel-6/centos-rhel-x86_64/coreutils-8.4-1.el6.x86_64.rpm.html (http://pkgs.org/centos-6-rhel-6/cento...)

edit flag offensive delete link more
0

answered 2011-02-21 01:20:02 -0500

janson071 gravatar image

Thanks Christian Berendt, that solved my question.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-02-18 02:12:00 -0500

Seen: 208 times

Last updated: Feb 21 '11