Default compiler

Is there a standard compiler provided with the install of openSUSE?
Like gcc…

regards,
Jo

I found the gcc compiler.

But i try to install ‘nano’ and when i run the configure file it cant find the path of the compiler.

How can I change this path?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[vampird@Sharwyn]:~$ gcc -v
Using built-in specs.
Target: x86_64-suse-linux
Configured with: …/configure --prefix=/usr --infodir=/usr/share/info

  • –mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
  • –enable-languages=c,c++,objc,fortran,obj-c++,java,ada
  • –enable-checking=release --with-gxx-include-dir=/usr/include/c++/4.4
  • –enable-ssp --disable-libssp --with-bugurl=http://bugs.opensuse.org/
  • –with-pkgversion=‘SUSE Linux’ --disable-libgcj --disable-libmudflap
  • –with-slibdir=/lib64 --with-system-zlib --enable-__cxa_atexit
  • –enable-libstdcxx-allocator=new --disable-libstdcxx-pch
  • –enable-version-specific-runtime-libs --program-suffix=-4.4
  • –enable-linux-futex --without-system-libunwind --with-arch-32=i586
  • –with-tune=generic --build=x86_64-suse-linux
    Thread model: posix
    gcc version 4.4.1 [gcc-4_4-branch revision 150839] (SUSE Linux)
    [vampird@Sharwyn]:~$

but you may install it from media, zypper in gcc


VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkvHZb8ACgkQJQ+0ABWtaVntMwCgjcDGbBfaMxyGDvdXcIx5E+xz
+V8AoKw5scxgI2T7+wQxgZF/yMakJozS
=i2tE
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Are you trying to compile nano?


VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkvHZvIACgkQJQ+0ABWtaVmV7ACg1zU2PJ17KyNLGAoLSpDTOLfo
25oAoOgekw3iCs62eT2+yLXA7+vqpCdm
=PEwv
-----END PGP SIGNATURE-----

Where can I find the zypper in gcc?

Thats what the manual say.

First run configure file and then use the make and make install.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In Control01 wrote:
>
> Where can I find the zypper in gcc?
>
>

  • From a terminal type “zypper in gcc” to install the gcc compiler if you
    don’t have it yet

VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkvHa2gACgkQJQ+0ABWtaVlJ/ACfTSr7TeGEbEho8YOq8Neo9jWl
begAn3kpuLfN5UMdex7Sd42Dmv/zEv3I
=GpgA
-----END PGP SIGNATURE-----

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

In Control01 wrote:
>
> VampirD;2153184 Wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>> Are you trying to compile nano?
>>
>>
>
> Thats what the manual say.
>
> First run configure file and then use the make and make install.
>
>
I suggest you to first use the packed version of a software and if there
isn’t, compile it
Once again, “zypper in nano” will install it


VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkvHa8oACgkQJQ+0ABWtaVn8qACgrqyLEzqc99syN2H0+QSpdqnl
W0UAmwQWnlbiNk0P6XbI8kchRLynviUV
=YR+c
-----END PGP SIGNATURE-----

Root privileges are required for installing.

Where do I set those priveleges.

I try to install it from a my /home/ directory.

Do I need to extract ‘nano.tar’ to my root directory?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

if you need root privileges for the command “command” use “su -c command”


VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkvHcF8ACgkQJQ+0ABWtaVmSyACcCUYkU11OwlQVl/bP5iD443E6
OJwAoNXqo1UKH0KWmisxlmzYqtRvhGt3
=PvPX
-----END PGP SIGNATURE-----

Those not work. Still no privileges.:frowning:

configure error: no acceptable C compiler found in $PATH.

Can i just change that path to the compiler like gcc?

If you can not handle the command line install it via Yast.

Nice pint and click interface.

The su command given was an example you don’t type “command” you type the command you want to run as root. you will be prompted for the root password.

note the password does NOT echo

It might be easier for you to just become root while you need to be. type

su -

then enter the root password note the password does NOT echo.
You will be root until you type exit or close the console

Did you install the gcc compiler it is NOT installed by default you must install it.

Also you can get nano from the repositories no need to compile it,

:stuck_out_tongue: Yes off course. I typed su -c.

I can c the gcc in the usr directory. Is it not installed then?

Where I find nano on the repository? Its like an rpm then?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Please, open a terminal and type:
su -c “zypper in gcc nano”
it will prompt you for the root password, type it (no echo displayed)
and then it will install gcc and nano for you from the rpm repository


VampirD

Microsoft Windows is like air conditioning
Stops working when you open a window.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/

iEYEARECAAYFAkvITSsACgkQJQ+0ABWtaVk8ZACfVTJelhEbTBn8n1x+2KxdMcuC
jhoAoKw70I4n+XBDRYtxwnYWVumyM7uq
=Lo/m
-----END PGP SIGNATURE-----

Why are you trying to /downloading/compiling nano yourself? Throw away what you down loaded.

Start YaST > Software > Software management (it will ask for the root password). Then type nano in the search field, click search. At right the nano package will show. Click in the box toi get it checked and continue right down. It will then install.

This is the normal way to install any software on openSUSE. Only when software is nout found in the standard repos go and search (with e.g. webpin) for it in other repos. When that fails, try to find an RPM. When that fails try to download/compile. THUS ONLY WHEN ALL ELSE FAILS it comes to compiling yourself.

Ah :slight_smile: Tnx! Ok… I read somewhere u had to build ur own executables.
I never read bout the repos or YaST.

webpin? Where I find that?

In Yast…

Or here: Webpin

Or use this one: Software.openSUSE.org

And please go to the main page of these Forums and look after the sticky thread for new users.