How to install libelf-devel or elfutils-libelf-devel in ubuntu 18.04 hp laptop ay503tx












0















ubuntu 18.04 bionic
wifi driver rtl8723be



i ran this commands in the terminal



git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
git checkout extended
sudo make install

make command not found :


then i ran



sudo apt-get install --reinstall make
sudo apt-get install build-essential


error:



 sudo make install
make -C /lib/modules/4.15.0-33-generic/build M=/home/rizwan/Downloads/rtlwifi_new modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-33-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/rizwan/Downloads/rtlwifi_new/base.o
cc1: error: code model kernel does not support PIC mode
scripts/Makefile.build:332: recipe for target '/home/rizwan/Downloads/rtlwifi_new/base.o' failed
make[2]: *** [/home/rizwan/Downloads/rtlwifi_new/base.o] Error 1
Makefile:1552: recipe for target '_module_/home/rizwan/Downloads/rtlwifi_new' failed
make[1]: *** [_module_/home/rizwan/Downloads/rtlwifi_new] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-33-generic'
Makefile:87: recipe for target 'all' failed
make: *** [all] Error 2


i installed those modules using command



sudo apt install libelf-dev  libelf-devel elfutils-libelf-devel


only libelf-dev gets installed but remaining two is unbale to locate



rizwan@rizwan-HP:~$ sudo apt install libelf-dev  libelf-devel elfutils-libelf-devel
[sudo] password for rizwan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libelf-devel
E: Unable to locate package elfutils-libelf-devel
rizwan@rizwan-HP:~$


eventually i found that name of libraries are different-different for different linux distro so help me with installing libelf-devel elfutils-libelf-devel in ubuntu 18.04 hp laptop ay503tx










share|improve this question

























  • Did you tried to run make (without sudo)?

    – N0rbert
    Aug 29 '18 at 15:13











  • yeahh i tried but keep getting above error

    – Rizwan
    Aug 30 '18 at 9:45
















0















ubuntu 18.04 bionic
wifi driver rtl8723be



i ran this commands in the terminal



git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
git checkout extended
sudo make install

make command not found :


then i ran



sudo apt-get install --reinstall make
sudo apt-get install build-essential


error:



 sudo make install
make -C /lib/modules/4.15.0-33-generic/build M=/home/rizwan/Downloads/rtlwifi_new modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-33-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/rizwan/Downloads/rtlwifi_new/base.o
cc1: error: code model kernel does not support PIC mode
scripts/Makefile.build:332: recipe for target '/home/rizwan/Downloads/rtlwifi_new/base.o' failed
make[2]: *** [/home/rizwan/Downloads/rtlwifi_new/base.o] Error 1
Makefile:1552: recipe for target '_module_/home/rizwan/Downloads/rtlwifi_new' failed
make[1]: *** [_module_/home/rizwan/Downloads/rtlwifi_new] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-33-generic'
Makefile:87: recipe for target 'all' failed
make: *** [all] Error 2


i installed those modules using command



sudo apt install libelf-dev  libelf-devel elfutils-libelf-devel


only libelf-dev gets installed but remaining two is unbale to locate



rizwan@rizwan-HP:~$ sudo apt install libelf-dev  libelf-devel elfutils-libelf-devel
[sudo] password for rizwan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libelf-devel
E: Unable to locate package elfutils-libelf-devel
rizwan@rizwan-HP:~$


eventually i found that name of libraries are different-different for different linux distro so help me with installing libelf-devel elfutils-libelf-devel in ubuntu 18.04 hp laptop ay503tx










share|improve this question

























  • Did you tried to run make (without sudo)?

    – N0rbert
    Aug 29 '18 at 15:13











  • yeahh i tried but keep getting above error

    – Rizwan
    Aug 30 '18 at 9:45














0












0








0








ubuntu 18.04 bionic
wifi driver rtl8723be



i ran this commands in the terminal



git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
git checkout extended
sudo make install

make command not found :


then i ran



sudo apt-get install --reinstall make
sudo apt-get install build-essential


error:



 sudo make install
make -C /lib/modules/4.15.0-33-generic/build M=/home/rizwan/Downloads/rtlwifi_new modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-33-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/rizwan/Downloads/rtlwifi_new/base.o
cc1: error: code model kernel does not support PIC mode
scripts/Makefile.build:332: recipe for target '/home/rizwan/Downloads/rtlwifi_new/base.o' failed
make[2]: *** [/home/rizwan/Downloads/rtlwifi_new/base.o] Error 1
Makefile:1552: recipe for target '_module_/home/rizwan/Downloads/rtlwifi_new' failed
make[1]: *** [_module_/home/rizwan/Downloads/rtlwifi_new] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-33-generic'
Makefile:87: recipe for target 'all' failed
make: *** [all] Error 2


i installed those modules using command



sudo apt install libelf-dev  libelf-devel elfutils-libelf-devel


only libelf-dev gets installed but remaining two is unbale to locate



rizwan@rizwan-HP:~$ sudo apt install libelf-dev  libelf-devel elfutils-libelf-devel
[sudo] password for rizwan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libelf-devel
E: Unable to locate package elfutils-libelf-devel
rizwan@rizwan-HP:~$


eventually i found that name of libraries are different-different for different linux distro so help me with installing libelf-devel elfutils-libelf-devel in ubuntu 18.04 hp laptop ay503tx










share|improve this question
















ubuntu 18.04 bionic
wifi driver rtl8723be



i ran this commands in the terminal



git clone https://github.com/lwfinger/rtlwifi_new.git
cd rtlwifi_new
git checkout extended
sudo make install

make command not found :


then i ran



sudo apt-get install --reinstall make
sudo apt-get install build-essential


error:



 sudo make install
make -C /lib/modules/4.15.0-33-generic/build M=/home/rizwan/Downloads/rtlwifi_new modules
make[1]: Entering directory '/usr/src/linux-headers-4.15.0-33-generic'
Makefile:976: "Cannot use CONFIG_STACK_VALIDATION=y, please install libelf-dev, libelf-devel or elfutils-libelf-devel"
CC [M] /home/rizwan/Downloads/rtlwifi_new/base.o
cc1: error: code model kernel does not support PIC mode
scripts/Makefile.build:332: recipe for target '/home/rizwan/Downloads/rtlwifi_new/base.o' failed
make[2]: *** [/home/rizwan/Downloads/rtlwifi_new/base.o] Error 1
Makefile:1552: recipe for target '_module_/home/rizwan/Downloads/rtlwifi_new' failed
make[1]: *** [_module_/home/rizwan/Downloads/rtlwifi_new] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.15.0-33-generic'
Makefile:87: recipe for target 'all' failed
make: *** [all] Error 2


i installed those modules using command



sudo apt install libelf-dev  libelf-devel elfutils-libelf-devel


only libelf-dev gets installed but remaining two is unbale to locate



rizwan@rizwan-HP:~$ sudo apt install libelf-dev  libelf-devel elfutils-libelf-devel
[sudo] password for rizwan:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package libelf-devel
E: Unable to locate package elfutils-libelf-devel
rizwan@rizwan-HP:~$


eventually i found that name of libraries are different-different for different linux distro so help me with installing libelf-devel elfutils-libelf-devel in ubuntu 18.04 hp laptop ay503tx







18.04 rtl8723be






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 3 '18 at 1:52









dobey

32.7k33586




32.7k33586










asked Aug 29 '18 at 10:28









RizwanRizwan

125




125













  • Did you tried to run make (without sudo)?

    – N0rbert
    Aug 29 '18 at 15:13











  • yeahh i tried but keep getting above error

    – Rizwan
    Aug 30 '18 at 9:45



















  • Did you tried to run make (without sudo)?

    – N0rbert
    Aug 29 '18 at 15:13











  • yeahh i tried but keep getting above error

    – Rizwan
    Aug 30 '18 at 9:45

















Did you tried to run make (without sudo)?

– N0rbert
Aug 29 '18 at 15:13





Did you tried to run make (without sudo)?

– N0rbert
Aug 29 '18 at 15:13













yeahh i tried but keep getting above error

– Rizwan
Aug 30 '18 at 9:45





yeahh i tried but keep getting above error

– Rizwan
Aug 30 '18 at 9:45










1 Answer
1






active

oldest

votes


















0














you need to install linix headers generic by:



sudo apt-get update
sudo apt-get install linux-generic


I see you already have downloaded the realtek wifi drivers make sure you are in the right directory and run this to install them:



cd rtlwifi_new
sudo dkms add ../rtlwifi_new
sudo dkms build rtlwifi-new/0.6
sudo dkms install rtlwifi-new/0.6
sudo modprobe -v rtl8723de ant_sel=2


Congrats you have running wifi.



Save the config with this command:



sudo /bin/sh -c 'echo "options rtl8723de ant_sel=2" >> /etc/modprobe.d/rtl8723de.conf'


Restart.



Details here:



https://h30434.www3.hp.com/t5/Notebook-Wireless-and-Networking/Realtek-8723DE-wifi-module-amp-Bluetooth-Linux-driver/td-p/6477307






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "89"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1070066%2fhow-to-install-libelf-devel-or-elfutils-libelf-devel-in-ubuntu-18-04-hp-laptop-a%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    you need to install linix headers generic by:



    sudo apt-get update
    sudo apt-get install linux-generic


    I see you already have downloaded the realtek wifi drivers make sure you are in the right directory and run this to install them:



    cd rtlwifi_new
    sudo dkms add ../rtlwifi_new
    sudo dkms build rtlwifi-new/0.6
    sudo dkms install rtlwifi-new/0.6
    sudo modprobe -v rtl8723de ant_sel=2


    Congrats you have running wifi.



    Save the config with this command:



    sudo /bin/sh -c 'echo "options rtl8723de ant_sel=2" >> /etc/modprobe.d/rtl8723de.conf'


    Restart.



    Details here:



    https://h30434.www3.hp.com/t5/Notebook-Wireless-and-Networking/Realtek-8723DE-wifi-module-amp-Bluetooth-Linux-driver/td-p/6477307






    share|improve this answer




























      0














      you need to install linix headers generic by:



      sudo apt-get update
      sudo apt-get install linux-generic


      I see you already have downloaded the realtek wifi drivers make sure you are in the right directory and run this to install them:



      cd rtlwifi_new
      sudo dkms add ../rtlwifi_new
      sudo dkms build rtlwifi-new/0.6
      sudo dkms install rtlwifi-new/0.6
      sudo modprobe -v rtl8723de ant_sel=2


      Congrats you have running wifi.



      Save the config with this command:



      sudo /bin/sh -c 'echo "options rtl8723de ant_sel=2" >> /etc/modprobe.d/rtl8723de.conf'


      Restart.



      Details here:



      https://h30434.www3.hp.com/t5/Notebook-Wireless-and-Networking/Realtek-8723DE-wifi-module-amp-Bluetooth-Linux-driver/td-p/6477307






      share|improve this answer


























        0












        0








        0







        you need to install linix headers generic by:



        sudo apt-get update
        sudo apt-get install linux-generic


        I see you already have downloaded the realtek wifi drivers make sure you are in the right directory and run this to install them:



        cd rtlwifi_new
        sudo dkms add ../rtlwifi_new
        sudo dkms build rtlwifi-new/0.6
        sudo dkms install rtlwifi-new/0.6
        sudo modprobe -v rtl8723de ant_sel=2


        Congrats you have running wifi.



        Save the config with this command:



        sudo /bin/sh -c 'echo "options rtl8723de ant_sel=2" >> /etc/modprobe.d/rtl8723de.conf'


        Restart.



        Details here:



        https://h30434.www3.hp.com/t5/Notebook-Wireless-and-Networking/Realtek-8723DE-wifi-module-amp-Bluetooth-Linux-driver/td-p/6477307






        share|improve this answer













        you need to install linix headers generic by:



        sudo apt-get update
        sudo apt-get install linux-generic


        I see you already have downloaded the realtek wifi drivers make sure you are in the right directory and run this to install them:



        cd rtlwifi_new
        sudo dkms add ../rtlwifi_new
        sudo dkms build rtlwifi-new/0.6
        sudo dkms install rtlwifi-new/0.6
        sudo modprobe -v rtl8723de ant_sel=2


        Congrats you have running wifi.



        Save the config with this command:



        sudo /bin/sh -c 'echo "options rtl8723de ant_sel=2" >> /etc/modprobe.d/rtl8723de.conf'


        Restart.



        Details here:



        https://h30434.www3.hp.com/t5/Notebook-Wireless-and-Networking/Realtek-8723DE-wifi-module-amp-Bluetooth-Linux-driver/td-p/6477307







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 7 '18 at 2:28









        WolfieWolfie

        111




        111






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Ask Ubuntu!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid



            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.


            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1070066%2fhow-to-install-libelf-devel-or-elfutils-libelf-devel-in-ubuntu-18-04-hp-laptop-a%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Human spaceflight

            Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

            張江高科駅