I'm trying to install g++ (with gcc already installed) on my Red Hat Enterprise Linux 6.  I've tried the following:  $ yum install g++ $ yum install c++ $ yum install gcc-g++ $ yum install gcc-c++   and nothing gets installed. I've also tried:  $ yum search g++ $ yum search c++   No hits.  What's up?
124000
This question seems to have been asked  already. My IT department installed the OS so I don't know how to register it properly but I do have root access. Is there a way to get the same packages using the CentOS repositories maybe? I'd also like to install IceWM but without a compiler I can't even build it myself.
62127
So, I'm running linux Mint (but I guess the same applies to Ubuntu) and as is common knowledge, their TeX distribution tends to be slightly outdated. Now I can't have none of that and decide to install it with the install-tl from the TeXlive homepage. Somehow, I cannot install it as a normal user (this I find normal as it is installing in the root directory), so I proceed to install TeXlive   sudo perl ./install-tl   and add the paths to .bashrc. All is well and my TeXlive installation works. Except for the texhash option. Running it as a normal user is no problem, except that I installed TeXlive as root, and so running texhash as normal user doesn't do anything (directory not writable. Skipping...). No problem I think, I'll just do it as root. But somehow texhash isn't installed for root.  Now, texhash is somehow connected to updating the directory tree, but I don't really know what it does. I use it on my ~/texmf/ folder to add my packages to a global path (I think), but when looking at info for this question I see in a comment for  question that this is apparently not needed, though I don't understand what I'm to do now.  So if I'm not adding new packages from CTAN or updating, I really don't need texhash and all is good?   To summarize: I'd like to know:    Why should I need texhash? Can I avoid installing as root on linux Mint/ubuntu ( they say you don't have to be root, that it's even discouraged)? Should I somehow install texhash for root?   I realize this might be a vague question at best, but I didn't find an answer I readily understood, so I'd appreciate any thought on this.
123209
I'm trying to write a basic program in C using gedit or sublime text (which I prefer), but no matter what I do when I try to compile or run, or even while writing, I have no option to use 'stdio.h' or any similar package. Even when I start typing #include &lt;st the only word completion sublime suggests is 'struct'.  I've read dozens of threads, but all managed to fix this by installing gcc, which I've tried to reinstall multiple times, with no luck.  This is the output from gcc -v:  Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/7/lto-wrapper OFFLOAD_TARGET_NAMES=nvptx-none OFFLOAD_TARGET_DEFAULT=1 Target: x86_64-linux-gnu Configured with: ../src/configure -v --with-pkgversion='Ubuntu 7.2.0-8ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-7/README.Bugs --enable-languages=c,ada,c++,go,brig,d,fortran,objc,obj-c++ --prefix=/usr --with-gcc-major-version-only --program-suffix=-7 --program-prefix=x86_64-linux-gnu- --enable-shared --enable-linker-build-id --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --with-default-libstdcxx-abi=new --enable-gnu-unique-object --disable-vtable-verify --enable-libmpx --enable-plugin --enable-default-pie --with-system-zlib --with-target-system-zlib --enable-objc-gc=auto --enable-multiarch --disable-werror --with-arch-32=i686 --with-abi=m64 --with-multilib-list=m32,m64,mx32 --enable-multilib --with-tune=generic --enable-offload-targets=nvptx-none --without-cuda-driver --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu Thread model: posix gcc version 7.2.0 (Ubuntu 7.2.0-8ubuntu3) `   This is the code:   #include &lt;stdio.h&gt;  int main(void) { printf("hello, world\n"); }   When I compile using gcc, I get nothing, no error at least. but when I try to run using just ./hello.c this is what I get.
17968
It's tricky trying to stay within the good graces of Red Hat and still plan for system longevity...   I've been a proponent of  for over a year. My initial installations were based on information gleaned from online tutorials, like  and . This centered around the lxc-create, lxc-start|stop and lxc-destroy commands and modifying existing .  This works well and is happily running in production. However, I am bringing up some additional systems and decided to check Red Hat's current documentation regarding containers in EL6. I was surprised to see their official stance on this.   In , Red Hat describes LXC as a Technology Preview and .  Yet Oracle  in its Unbreakable Linux.  There appears to be some missing functionality in the libvirt method, but my initial approach with lxc-* commands was a bit of a manual process... I can't quite tell what's right or the "accepted" means of managing containers on EL6.   What's the conventional wisdom regarding LXC and RHEL-like systems today?  How are you implementing them in your organization?  Are there any advantages to one approach versus the other(s)? Can these coexist?
15725
I've been getting this undefined symbol building with this command line:  $ gcc test.cpp Undefined symbols:   "___gxx_personality_v0", referenced from:   etc...   test.cpp is simple and should build fine.  What is the deal?
122635
I've started installing Debian testing on amd64 and I've come to a screen asking me to install a kernel. It gives me a choice between linux-image-3.16-2-amd64, linux-image-amd64, and none.  What is the difference between these options? Which do I choose?
50816
I am trying to learn C++, but I can't even make the first (hello world) example from cplusplus.org work with g++ command or c++. I created a file just like the example and ran g++ myfile, then ./myfile.  I get a permission problem, then I use chmod +x myfile and the permission problem is gone but this problem happens:  gzuspower@gzuspower:~/Desktop$ ./4 ./4: line 1: //myfirst: No such file or directory ./4: line 4: syntax error near unexpected token `(' ./4: line 4: `int main ()'   I called my file 4 because it is my 4th attempt. This is on Xubuntu 16.04.The duplicate question answer did not work i tried .c ,.cpp ,as file extension and tried firstc++ (my first attempt file) instead of 4(my fourth attempt file) and nothing works. i'm going to try different form of hello-world code.
59065
I installed my Ubuntu in vmware, no I need install vmware tools, I got error:  Searching for a valid kernel header path... The path &quot;&quot; is not valid. Would you like to change it?[yes]  In CentOS, I run the following commands to resolve this issue: yum install gcc-c++ yum install kernel-devel yum install kernel-headers yum -y update kernel  But I don't know how to do in Ubuntu. I have tried the following commands but nothing changed sudo apt-get update  sudo-get install build-essential linux-header-$(uname -r) sudo ./vmware-uninstall-tools.pl sudo ./vmware-config-tools.pl sudo ./vmware-install.pl  Issue Changed: Ran sudo ./vmware-uninstall-tools.pl  and deleted the folder of /etc/vmware-tools then I ran  sudo ./vmware-install.pl  Now I can successfully install vmware-tools. After restart, I can see the folder /mnt/hgfs, but can't see my shared folder.
43636
Is there any Linux based compiler which supports graphics.h library? I want to implement graphic programs, so please kindly let me know if there is any such software.    If not then how  can I use it?
41025
I need to install a new TeX/LaTeX/ConTeXt package on my computer.  I'm running Ubuntu/Fedora/Slackware/Some-Version-Of Linux.  What are the possible ways to do this?    Note:&nbsp;&nbsp; We get a number of questions that essentially reduce to this one; it was felt a good idea to have one question-and-answer that can cover all the standard methods.  See  for the discussion.  The question-and-answer are CW so that more information can be easily added.  If you have information to add, please do so.  If you are unsure, leave a comment here or (preferably) in .  Comments on the question and answer will be periodically removed to ensure that the information is clear.
102784
So I'm working on a project and I wanted to use some C11 features for C. To use those features GCC 4.7 is required, so I went to synaptic and looked up 4.7, and I found the packages gcc-4.7-base so I installed it[1].   So now that gcc-4.7-base is installed I expected to be able to use 4.7, but no, when I do gcc --version it still shows 4.6.3 even more, when I try to directly call 4.7(via /usr/bin/gcc-4.7) it doesn't exist, though a gcc-4.6 executable does exist.  How do I "activate" GCC 4.7? I read , you do some crazy stuff with update-alternatives, but it doesn't work for me as the gcc-4.7 executable doesn't actually exist on my machine.   Notes: 1. I also saw gcc-4.6-base, so I figured I'd uninstall it, but synaptic attempted to remove every package I had installed and install a Java runtime, so for obvious reason I decided not to remove it.
57085
I occasionally update my kernel from this web site    I have been always downloading 3 deb files for installing  linux header all, linux image and linux headers. I noticed one more deb file recently for 64 bit kernel called Linux-image-extra.  I would like to know what does kernel file Linux-image-extra do and should I also install it?
104549
I am running Ubuntu 16.04 LTS and I want to install a newer version of GCC, specifically gcc-7 which released . There is a package for it in the , but the Ubuntu version listed next to it is 7-20170407-0ubuntu2 (I have no idea what this corresponds to). I tried following the instructions in   and  and had the same issues. They are from before gcc 7.1 officially had a release, so I am not sure if the instructions would change at all now that it is out?  Even after adding the ppa I get the following:  user@computer:~$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test user@computer:~$ sudo apt-get update user@computer:~$ sudo apt install gcc-7 Reading package lists... Done Building dependency tree        Reading state information... Done E: Unable to locate package gcc-7   Any idea on how I can install the new gcc? I am not looking to upgrade my distribution. I am also not above building from source, however that is kind of my last resort because managing that all by hand is just annoying.
102609
After recent software update I have found the following message from program glat-client in system logs of some systems:     This copy of GNU/Linux is not activated. See    for details.   What does it mean? Should I 'activate' my GNU/Linux copies?
109503
I tried many solutions to install update for my gcc compiler on debian server. None of them worked. I need the compiler update to use new features of c++11, as this provides a stable libcxx11 ABI, and stable support for C++11 (refer ). Specifically getting version `GLIBCXX_3.4.21' which is not included in my current compiler gcc version 4.9.2 (Debian 4.9.2-10).   Some pointers to solution will be helpful. Thanks in advance.  Some links to forum related to my issue which I already tried:      (not entirely related solution is for ubuntu, but I couldn't find gcc-5 in ftp server of debian yet)
74962
I've found myself in charge of installing some software on an old server running RHEL 5. Unfortunately, since it's just a development server now, it no longer rates a license. I'd like to continue using yum for dependency resolution, etc. My first thought was to just point yum at some CentOS repos, but some googling turned up this instead: . Is this sort of approach my best bet? If so, how much of the migration process is different for my scenario compared to the one in those instructions?
91154
Ok, I'm a total Linux noob. I was able to install 12.4 without issue, except that it says in the system settings that the graphics card/driver is "unknown".  I have NVIDIA GeForce FX 5200, and have not been able to get it installed. I've found the driver at NVIDIA but couldn't figure out how to actually install it. I found instructions that used apt-get to automatically find the current driver and install it, and that came close. At least then it showed up in the 3rd party drivers list. It said it was installed but not being used? And I was unable to find out why that might be, or how to get the system to use it  Two questions: 1. CAN/SHOULD my graphics card work with 12.4? 2. If so, HOW?  I'm running a 100% fresh install, so what's the step-by-step from there?