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 922 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

      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 Reply Quote 0
      • TotalSonicT Offline
        TotalSonic
        last edited by

        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

        dobeyD 1 Reply Last reply Reply Quote 0
        • dobeyD Offline
          dobey @TotalSonic
          last edited by

          @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 Reply Quote 1
          • M Offline
            mcappa2 @dobey
            last edited by

            @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

              @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

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post