• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

How to Launch Gcc in a Libertine Container

Scheduled Pinned Locked Moved Support
5 Posts 4 Posters 493 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      mcappa2
      last edited by 28 Oct 2020, 15:19

      I am new here, so this may have already been discussed. I have created a libertine container in order to install sqlite3 and gcc packages. I also installed g++ and build essential in the container.
      From the terminal I can launch sqlite3 and vim 3 editor.. However, I cannot launch gcc. It always gives a bash error command not found. In the container, there are no errors and the packages are all installed successfully.
      What am I missing... how do I run Gcc. I have a very small program to comp
      I am using the latest ubuntu on Nexus 5 phone.

      G 1 Reply Last reply 29 Oct 2020, 20:23 Reply Quote 0
      • T Offline
        TotalSonic
        last edited by 28 Oct 2020, 17:35

        Is gcc a command line program? If so in Terminal command would be
        libertine-launch -i xenial gcc (if Libertine container name is set as default, otherwise change "xenial" to the name you created), with any variable command you need for the command line app appended at the end of that command.

        Best regards,
        Steve Berson

        D 1 Reply Last reply 28 Oct 2020, 18:02 Reply Quote 0
        • D Offline
          dobey @TotalSonic
          last edited by 28 Oct 2020, 18:02

          @TotalSonic It's a compiler, so not something you'd really want to just run with libertine-launch as such. Instead you'd want to use libertine-launch -i xenial bash for example to get a shell inside the container, and then use vim or other CLI tools (such as gcc).

          M 1 Reply Last reply 28 Oct 2020, 19:09 Reply Quote 1
          • M Offline
            mcappa2 @dobey
            last edited by 28 Oct 2020, 19:09

            @dobey Thanks, for the first time I have been able to run the compiler.
            Now I need to work thru the compiler errors.

            1 Reply Last reply Reply Quote 1
            • G Offline
              Giiba @mcappa2
              last edited by Giiba 29 Oct 2020, 20:23

              @mcappa2
              I played with this a bit to compile Rust code. You can find my results here:
              https://forums.ubports.com/topic/3581/compiling-rust-code-on-ut

              The most important part was putting files in a directory that Libertine can access; ~/Documents is an easy choice for that as it is simple to locate in either system.

              1 Reply Last reply Reply Quote 1
              5 out of 5
              • First post
                5/5
                Last post