topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Saturday December 14, 2024, 5:25 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: A little CentOS 7 help please :)  (Read 12794 times)

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
A little CentOS 7 help please :)
« on: December 12, 2014, 04: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:

[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:
[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?

40hz

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

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
Re: A little CentOS 7 help please :)
« Reply #2 on: December 12, 2014, 06:46 AM »
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.

Ath

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 3,629
    • View Profile
    • Donate to Member
Re: A little CentOS 7 help please :)
« Reply #3 on: December 12, 2014, 07:41 AM »
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>) ?

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: A little CentOS 7 help please :)
« Reply #4 on: December 12, 2014, 07:57 AM »
Link to source code / tarball under consideration?

40hz

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

4wd

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
Re: A little CentOS 7 help please :)
« Reply #6 on: December 12, 2014, 02: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.

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...nux-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.

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: A little CentOS 7 help please :)
« Reply #7 on: December 12, 2014, 06:22 PM »
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

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 5,644
    • View Profile
    • Donate to Member
Re: A little CentOS 7 help please :)
« Reply #8 on: December 12, 2014, 06:45 PM »
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:

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:

ewemoa

  • Honorary Member
  • Joined in 2008
  • **
  • Posts: 2,922
    • View Profile
    • Donate to Member
Re: A little CentOS 7 help please :)
« Reply #9 on: December 12, 2014, 07:11 PM »
Congratulations!

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