Ask Your Question

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

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

janson071 gravatar image

following this url: ( ;

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 ( 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

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 :( ( (

edit flag offensive delete link more

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


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

Seen: 244 times

Last updated: Feb 21 '11