Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: $PATH and 'make' --- (scratching that bald spot again)

  1. #1
    Join Date
    Apr 2018
    Location
    U.S Midwest just West of the Mississippi River
    Posts
    555

    Default $PATH and 'make' --- (scratching that bald spot again)

    I'm trying to use 'make' , & subsequently a couple of other commands.

    While in the directory that holds the Makefile I get this error
    Code:
    bill@linux-xanx:~/DIRECTORY> make
    /bin/sh: bc: command not found
    /bin/sh: cc: command not found
    make CFLAGS_FLOAT="-mhard-float -mfloat-abi=hard" V=1 ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.12.14-lp151.27-default/build M=/home/bill/DIRECTORY  modules
    make[1]: *** /lib/modules/4.12.14-lp151.27-default/build: No such file or directory.  Stop.
    make: *** [Makefile:1908: modules] Error 2
    'make' is in /usr/bin

    'Makefile' is in DIRECTORY

    my PATH IS:
    Code:
    bill@linux-xanx:~/DIRECTORY> echo $PATH
    /home/bill/bin:/usr/local/bin:/usr/bin:/bin:/usr/lib/mit/sbin
    I thought the 'make' command automatically looked for a 'Makefile' in the active directory if a file is not specified.
    Do I need to add to the PATH to get 'make' started?
    HP Compaq desktop Leap15.1 Win10, Win7
    Toshiba laptops Leap15.1 & Win10, HP AiO Win10.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

  2. #2
    Join Date
    Apr 2018
    Location
    U.S Midwest just West of the Mississippi River
    Posts
    555

    Default Re: $PATH and 'make' --- (scratching that bald spot again)

    forgot this
    Code:
    bill@linux-xanx:~> cnf make
                           
    Program 'make' is present in package 'make', which is installed on your system.
    
    Absolute path to 'make' is '/usr/bin/make'. Please check your $PATH variable to see whether it contains the mentioned path.
    
    
    HP Compaq desktop Leap15.1 Win10, Win7
    Toshiba laptops Leap15.1 & Win10, HP AiO Win10.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

  3. #3
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,345
    Blog Entries
    3

    Default Re: $PATH and 'make' --- (scratching that bald spot again)

    It looks to me that it has found "Makefile" and is reporting errors while trying to run that "Makefile".

    You probably need to install the development base pattern, and to install the kernel-devel pattern before this can work.
    openSUSE Leap 15.1; KDE Plasma 5;

  4. #4
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,485
    Blog Entries
    15

    Default Re: $PATH and 'make' --- (scratching that bald spot again)

    Hi
    The errors explain it all;

    Code:
    /bin/sh: bc: command not found
    /bin/sh: cc: command not found
    In this case bc (zypper in bc) and cc which is the compiler, in your case gcc (zypper in gcc)...

    Or...

    Code:
    cnf bc
                        
    Program 'bc' is present in package 'bc', which is installed on your system.
    
    Absolute path to 'bc' is '/usr/bin/bc'. Please check your $PATH variable to see whether it contains the mentioned path.
    
    cnf cc
                        
    Program 'cc' is present in package 'gcc', which is installed on your system.
    
    Absolute path to 'cc' is '/usr/bin/cc'. Please check your $PATH variable to see whether it contains the mentioned path.
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  5. #5
    Join Date
    Apr 2018
    Location
    U.S Midwest just West of the Mississippi River
    Posts
    555

    Default Re: $PATH and 'make' --- (scratching that bald spot again)

    I had already put in bc and gcc-c and I thought cc, but the outputs below show cc not found.

    And the error is down to this:
    Code:
    make CFLAGS_FLOAT="-mhard-float -mfloat-abi=hard" V=1 ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.12.14-lp151.28.4-default/build M=/home/bill/rtl8821cu  modules
    make[1]: *** /lib/modules/4.12.14-lp151.28.4-default/build: No such file or directory.  Stop.
    make: *** [Makefile:1908: modules] Error 2
    Code:
    linux-xanx:~ # zypper in bc
    Loading repository data...
    Reading installed packages...
    'bc' is already installed.
    No update candidate for 'bc-1.07.1-lp151.3.11.x86_64'. The highest available version is already installed.
    Resolving package dependencies...
    
    Nothing to do.

    Code:
    -xanx:~ # zypper in cc
    Loading repository data...
    Reading installed packages...
    'cc' not found in package names. Trying capabilities.
    No provider of 'cc' found.

    Code:
    linux-xanx:~ # zypper in gcc
    Loading repository data...
    Reading installed packages...
    'gcc' is already installed.
    No update candidate for 'gcc-7-lp151.3.5.x86_64'. The highest available version is already installed.
    Resolving package dependencies...
    
    Nothing to do.
    I am studying on nrickerts comments, but time to do some more work on it later.
    Thanks guys!
    HP Compaq desktop Leap15.1 Win10, Win7
    Toshiba laptops Leap15.1 & Win10, HP AiO Win10.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

  6. #6
    Join Date
    Jun 2008
    Location
    Podunk
    Posts
    26,485
    Blog Entries
    15

    Default Re: $PATH and 'make' --- (scratching that bald spot again)

    Quote Originally Posted by Bill_L View Post
    I had already put in bc and gcc-c and I thought cc, but the outputs below show cc not found.

    And the error is down to this:
    Code:
    make CFLAGS_FLOAT="-mhard-float -mfloat-abi=hard" V=1 ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.12.14-lp151.28.4-default/build M=/home/bill/rtl8821cu  modules
    make[1]: *** /lib/modules/4.12.14-lp151.28.4-default/build: No such file or directory.  Stop.
    make: *** [Makefile:1908: modules] Error 2
    Code:
    linux-xanx:~ # zypper in bc
    Loading repository data...
    Reading installed packages...
    'bc' is already installed.
    No update candidate for 'bc-1.07.1-lp151.3.11.x86_64'. The highest available version is already installed.
    Resolving package dependencies...
    
    Nothing to do.

    Code:
    -xanx:~ # zypper in cc
    Loading repository data...
    Reading installed packages...
    'cc' not found in package names. Trying capabilities.
    No provider of 'cc' found.

    Code:
    linux-xanx:~ # zypper in gcc
    Loading repository data...
    Reading installed packages...
    'gcc' is already installed.
    No update candidate for 'gcc-7-lp151.3.5.x86_64'. The highest available version is already installed.
    Resolving package dependencies...
    
    Nothing to do.
    I am studying on nrickerts comments, but time to do some more work on it later.
    Thanks guys!
    Hi
    Again, the error explains the problem...

    Code:
    
    make[1]: *** /lib/modules/4.12.14-lp151.28.4-default/build: No such file or directory.  Stop.
    So you trying to build a kernel module... the make file needs tweaking (so the -C points at a location owned by your user)... or build as an rpm... even easier...
    Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)
    SUSE SLE, openSUSE Leap/Tumbleweed (x86_64) | GNOME DE
    If you find this post helpful and are logged into the web interface,
    please show your appreciation and click on the star below... Thanks!

  7. #7
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    12,345
    Blog Entries
    3

    Default Re: $PATH and 'make' --- (scratching that bald spot again)

    Quote Originally Posted by Bill_L View Post
    I am studying on nrickerts comments, but time to do some more work on it later.
    Thanks guys!
    A bit more detail. In Yast Software Management, you can select the "Patterns" view. (Click on "View" near top left).

    In the "Patterns" view, scroll down to the "Development" section. Install the "Base Development" pattern.

    Otherwise you will make a little progress, then get to the next error. That base development pattern will bring in all of the tools that you are likely to need. And then install the "kernel-devel" package which brings in header files that you might need.
    openSUSE Leap 15.1; KDE Plasma 5;

  8. #8
    Join Date
    Apr 2018
    Location
    U.S Midwest just West of the Mississippi River
    Posts
    555

    Default Re: $PATH and 'make' --- (scratching that bald spot again)

    As usual, my post threads get longer - not shorter.
    The thing I am trying to install are the drivers for the Realtek rtl8811cu WiFi dongle discussed in another thread.
    The dongle is for my wife's laptop(The onboard WiFi seems to be glitchy from time to time) and I thought I would give it a try.
    MISTAKE! Way over my head. Too old for these kind of new tricks!

    I will probably take malcolmlewis's original suggestion and just buy her one the works OTB, Just need to find a good one that doesn't have an antenna.

    Again thanks guys, I may give this another shot when I have a lot of time to delve deeper.

    PS> all not for naught! I still learn things when I come here and ask questions.
    HP Compaq desktop Leap15.1 Win10, Win7
    Toshiba laptops Leap15.1 & Win10, HP AiO Win10.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

  9. #9
    Join Date
    Apr 2018
    Location
    U.S Midwest just West of the Mississippi River
    Posts
    555

    Default Re: $PATH and 'make' --- (scratching that bald spot again)

    Quote Originally Posted by Bill_L View Post
    Again thanks guys, I may give this another shot when I have a lot of time to delve deeper.

    PS> all not for naught! I still learn things when I come here and ask questions.
    So, I think I will go take a look at creating an rpm for 3 reasons:
    1 - the learning experience
    2- I don't want to add a bunch of stuff to my wife's laptop that she will never us, not never see.
    3- I don't really have that much to keep my mind busy.

    But, I am looking at OTB ac WiFi adapters for her.
    HP Compaq desktop Leap15.1 Win10, Win7
    Toshiba laptops Leap15.1 & Win10, HP AiO Win10.
    I can now print with openSuSe Leap! Can Scan now, could be better!!
    I can backup my iPod and iPad with Windows, can't with Linux.(Will get there someday!)

  10. #10
    Join Date
    Sep 2012
    Posts
    4,972

    Default Re: $PATH and 'make' --- (scratching that bald spot again)

    Quote Originally Posted by malcolmlewis View Post
    Code:
    
    make[1]: *** /lib/modules/4.12.14-lp151.28.4-default/build: No such file or directory.  Stop.
    So you trying to build a kernel module... the make file needs tweaking
    No, it does not. What it needs is matching version of kernel-default-devel.

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •