rvm install <anyruby> fails with configure: error: cannot run C compiled programs

I tried installing build-essential, g++ now getting this error from ~/.rvm/log/configure.log

[2016-12-17 14:17:50] ./configure current path: /home/myusername/.rvm/src/ruby-2.3.3 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/myusername/.rvm/bin command(4): ./configure --prefix=/home/myusername/.rvm/rubies/ruby-2.3.3 --disable-install-doc --enable-shared checking for ruby… false checking build system type… x86_64-pc-linux-gnu checking host system type… x86_64-pc-linux-gnu checking target system type… x86_64-pc-linux-gnu checking for gcc… gcc checking whether the C compiler works… yes checking for C compiler default output file name… a.out checking for suffix of executables… checking whether we are cross compiling… configure: error: in /home/myusername/.rvm/src/ruby-2.3.3': configure: error: cannot run C compiled programs. If you meant to cross compile, use–host’. See `config.log’ for more details

Have you got a file ~/.rvmrc? If so what is in it?

Paste here the results of rvm info

Colin

no i don’t have .rvmrc anywhere

Because you top posted instead of inserting your reply inline you failed, I presume, to notice my second question.

Colin

Actually I’ve been very good about it I just forgot with of all people you, the only one who cares Story of my life There’s no such file so there’s nothing in it

So do you have any more ideas?

> no i don't have .rvmrc anywhere > >> >> > configure: error: cannot run C compiled programs. If you meant to cross >> > compile, use--host >> >> >> Have you got a file ~/.rvmrc? If so what is in it? >> >> Paste here the results of rvm info

Because you top posted instead of inserting your reply inline you failed, I presume, to notice my second question.

Colin

So do you have any more ideas?

The second question was "paste here the results of `rvm info`?", so if you run that, maybe you can see some more debugging data.

Walter

My next step would be to continue down the rabbit hole & check config.log

Fred

@Fugee did you resolve this problem?

Colin