DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: A little CentOS 7 help please :)  (Read 15,839 times)

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
A little CentOS 7 help please :)
« on: December 12, 2014, 10:50 AM »
I hope one of our Linux gurus can give me a hand with this.

I've just installed CentOS 7 Minimal on a VPS and I'm trying to get SoftEther VPN server working on it, for which I need to download and compile it, (which I've done on 3 other CentOS 5 & 6 VPSs).

However, when I run the make command I get:

Quote
[root@wc vpnserver]# make
"grep" command not found.
Installation is aborted.
make: *** [default] Error 1

Which is a bit strange as I can use grep from the command line without a problem.

Output of $PATH and whereis:
Quote
[root@wc vpnserver]# echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin
[root@wc vpnserver]# whereis grep
grep: /usr/bin/grep /usr/share/man/man1/grep.1.gz
[root@wc vpnserver]#

Any one got any ideas I can try please?
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,861
Re: A little CentOS 7 help please :)
« Reply #1 on: December 12, 2014, 12:11 PM »
Odd.  Grep is usually in /bin/grep rather than /usr/bin/grep from my experience.
« Last Edit: December 12, 2014, 12:27 PM by 40hz »

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: A little CentOS 7 help please :)
« Reply #2 on: December 12, 2014, 12:46 PM »
Odd.  Grep is usually in /bin/grep rather than /usr/bin/grep from my experience.

I added /bin to $PATH but it made no difference, (even though there is a /bin/grep).

Forgot to mention it's x64 but I don't think that'll make a difference.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,649
    • Participated in NANY Challenge Eleven Times
    • Coding Snacks
    • Linux User
    • Hardware Hacker
Re: A little CentOS 7 help please :)
« Reply #3 on: December 12, 2014, 01:41 PM »
Could it be that the make script messes up your $PATH setting ?
Or does it switch to another user-context for executing stuff (sudo <otheruser>) ?
/Ton
Ath's software collection, Quote: "A problem well stated is a problem half-solved." (Charles Kettering)

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: A little CentOS 7 help please :)
« Reply #4 on: December 12, 2014, 01:57 PM »
Link to source code / tarball under consideration?

40hz

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 11,861
Re: A little CentOS 7 help please :)
« Reply #5 on: December 12, 2014, 05:32 PM »
Oops. *never mind. :)
« Last Edit: December 12, 2014, 05:52 PM by 40hz »

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: A little CentOS 7 help please :)
« Reply #6 on: December 12, 2014, 08:22 PM »
Could it be that the make script messes up your $PATH setting ?

I don't think so, $PATH is the same after running make as it was before running, of course that doesn't preclude it being changed while it's running and reverting afterwards.

The same source compiled successfully on both CentOS 5 & 6, x86 & x64, without a problem - the only difference, (other than OS), being that those VPSs weren't minimal installs.

Quote
Or does it switch to another user-context for executing stuff (sudo <otheruser>) ?

Again, I don't think so, this is a fresh install of CentOS 7 so there's only whatever users are created at that point and I only log in as root, (I really should get out of that habit).

Link to source code / tarball under consideration?

http://www.softether-download.com/files/softether/v4.12-9514-beta-2014.11.17-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.12-9514-beta-2014.11.17-linux-x64-64bit.tar.gz

Using these instructions: Installing SoftEther VPN 4 on CentOS 6.5 Minimal x86_64

Doing a search just now I've found someone hosting an rpm for it, I may try that, (which isn't ideal), if I can't get it to build.
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: A little CentOS 7 help please :)
« Reply #7 on: December 13, 2014, 12:22 AM »
A quick glance suggests that .install.sh is checking for grep -- it's just a shell script and grepping for 'grep' in the source tree doesn't turn up much so it might be worth just commenting out the checking for grep in .install.sh and trying again.



BTW, if you don't mind sharing, if you execute 'which grep' on the command line, what is the result you see?

4wd

  • Pedantic Old Bastard
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,652
    • Coding Snacks
Re: A little CentOS 7 help please :)
« Reply #8 on: December 13, 2014, 12:45 AM »
BTW, if you don't mind sharing, if you execute 'which grep' on the command line, what is the result you see?

Well, it was a minimal install, I had to install which before I could 'which grep'  :)

Answer was the same as the 'whereis grep' in the OP: /usr/bin/grep

Which leads us to:

Quote
A quick glance suggests that .install.sh is checking for grep ...

:wallbash: :wallbash: :wallbash: Stupid, stupid, STUPID - I didn't think to do ls -A in the directory  :-[

Now I can see why it failed, not so much that it couldn't find grep but that which wasn't installed ... aaarrgghhhh!

As soon as which was installed, it worked.

Thanks guys and especially you ewemoa  :Thmbsup: :Thmbsup:
"I will not follow where the path may lead, but I will go where there is no path, and I will leave a trail." - Muriel Strode, 1903

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • Plugin Coding Medal
    • Participated in NANY Challenge Three Times
Re: A little CentOS 7 help please :)
« Reply #9 on: December 13, 2014, 01:11 AM »
Congratulations!

Odd that 'which' wasn't there already....quite "minimal" as you said.

Original address: https://www.donationcoder.com/forum/index.php?topic=39816.0