Jump to content

Where is expr?


Guest rollingrock
 Share

Recommended Posts

Guest rollingrock

So I'm trying to build a patched CVS alsa and throughout the output I get a lot of:

 

./configure: line 1: expr: command not found

 

and it finally craps out on:

 

failed (probably missing /lib/modules/2.4.21-0.13mdk/build/include/linux/version.h)

 

So I assume that there is a prob with expr (not installed maybe?) But I seem to have all of the other related things like test. Any idea what package it is in?

 

Thanks!

 

Edit: Forgot to mention, /lib/modules/.../version.h is present

Link to comment
Share on other sites

Guest rollingrock

well I found that _every_ other command in gnu coreutils/shellutils was working so I broke down and just copied the damn thing from another system and it appears to be working, although it would still be nice to know wtf happened to it on my system if anyone has any ideas

Link to comment
Share on other sites

Welcome!

 

maybe the version of coreutils???? That would be strange though.

 

version.h

You need kernel-source installed. When you get to "build" in /lib/modules/kernel<version>/"build"...it's a symlink to /usr/src/linux<version>....the kernel-source.

 

I have a feeling once you install the kernel-source the "expr" error will stop...but I'm guessing here.

Link to comment
Share on other sites

Hi

 

 

[gd@localhost gd]$ which expr

/usr/bin/expr

[gd@localhost gd]$ rpm -qf /usr/bin/expr 

sh-utils-2.0.15-2mdk

 

rollingrock, you have to install sh-utils to get the 'expr' command.

 

MOttS

Link to comment
Share on other sites

not on mandrake :wink:

:roll:

Login to my server running MDK 9.0 from a machine running MAC OS X:

[Ordinateur-de-ViC-BoiVin:~] vic% ssh gd@192.168.1.1

gd@192.168.1.1's password: 

[gd@localhost gd]$ uname -a

Linux localhost.localdomain 2.4.19-16mdksmp #1 SMP Fri Sep 20 16:08:37 CEST 2002 i686 unknown unknown GNU/Linux

[gd@localhost gd]$ su

Password: 

[root@localhost gd]# which expr

/usr/bin/expr

[root@localhost gd]# rpm -qf /usr/bin/expr

sh-utils-2.0.15-2mdk

[root@localhost gd]# exit

exit

[gd@localhost gd]$ exit

logout

Connection to 192.168.1.1 closed.

[Ordinateur-de-ViC-BoiVin:~] vic% uname -a

Darwin Ordinateur-de-ViC-BoiVin.local. 6.4 Darwin Kernel Version 6.4: Wed Jan 29 18:50:42 PST 2003; root:xnu/xnu-344.26.obj~1/RELEASE_PPC  Power Macintosh powerpc

[Ordinateur-de-ViC-BoiVin:~] vic%

Weird...

 

MOttS

Link to comment
Share on other sites

Guest rollingrock

Well I actually already had the kernel sources installed and it appears that the coreutils rpm

 

But here is something interesting:

 

[root@localhost root]# rpm -q coreutils

coreutils-4.5.7-1mdk

[root@localhost root]# rpm --verify coreutils

missing /usr/bin/expr

missing /usr/bin/printf

missing /usr/bin/test

 

Something is rotten in the state of localhost...

 

So I did

[root@localhost root]# rpm -i --replacepkgs coreutils-4.5.7-1mdk.i586.rpm

[root@localhost root]# rpm --verify coreutils

 

Everyone appears happy now :) Interestingly enough, this also fixed problems I had building koffice 1.3beta. Although I fear my hard drive might be going to that big raid in the sky now. Doing rpm --verify --all turned up _alot_ of missing files. I think I'm gonna just wipe it and start anew when I upgrade my hardware.

 

Thanks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...