Announcement

Collapse
No announcement yet.

(SOLVED) How to un-tar a .tar.gz

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    Re: How to un-tar a .tar.gz

    It's alright.

    Whether Ubuntu or Kubuntu, the tar command is the same; it's the same command line.

    First: cd to the directory where the 120176-kopete-mxit-0.02.tar.gz file is located. Then enter:
    Code:
    ls -al 120176-kopete-mxit-0.02.tar.gz
    Print the output here in a "code" box.
    The next brick house on the left
    Intel i7 11th Gen | 16GB | 1TB | KDE Plasma 5.27.11​| Kubuntu 24.04 | 6.8.0-31-generic



    Comment


      #17
      Re: How to un-tar a .tar.gz

      Originally posted by snowflake_nz
      Hi there

      i was hoping to un-tar it, but I just keep getting errors. It's frustrating especially when I pretty okay with Kubuntu, but I've got no clue as how to untar 1 file.
      Perhaps I should just stick to Ubuntu?
      Hi Snowflake,

      Didn't you successfully untar the file?
      tanya@tanya-laptop:~/Downloads$ mkdir build
      mkdir: cannot create directory `build': File exists
      tanya@tanya-laptop:~/Downloads$ cd build
      tanya@tanya-laptop:~/Downloads/build$ cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix` ..
      CMake Error: The source directory "/home/tanya/Downloads" does not appear to contain CMakeLists.txt.
      Specify --help for usage, or press the help button on the CMake GUI.
      I opened up the tar file in Ark and took a look at it. It does have appropriate CMakeLists.txt files. I also noticed that it does NOT have a top directory, so when it was untarred it filled your ~/Downloads directory:

      --/Downloads
      ----/icons
      ----/mxit
      ----/src
      ----/ui
      ----CMakeLists.txt
      ----COPYING
      ----README
      ----TODO
      which pretty much cluttered up your Downloads directory. Most well packaged tar balls include a top directory into which the package is installed, or the developer expects the user to create a suitable sub-directory into which to unpack the code. Something like this:

      --/Downloads
      ----/kopete_mxit (or something like that)
      ------/icons
      ------/mxit
      ------/src
      ------/ui
      ------CMakeLists.txt
      ------COPYING
      ------README
      ------TODO
      You have created "build" as a sub-directory, which is what the README said to do,

      mkdir build

      so your situation is like the first quotation block, plus the build directory:

      --/Downloads
      ----/build
      ----/icons
      ----/mxit
      ----/src
      ----/ui
      ----CMakeLists.txt
      ----COPYING
      ----README
      ----TODO
      What I am not showing are any other files or directories you may have residing under ~/Download.
      You entered the "build" directory
      cd build
      and executed:
      cmake -DCMAKE_INSTALL_PREFIX=`kde4-config --prefix`
      which gave you the following error:
      CMake Error: The source directory "/home/tanya/Downloads" does not appear to contain CMakeLists.txt.
      You were in the "build" sub-directory under the "Downloads" directory when you issued the "cmake" command, and it backed up one directory (which would be the "Downloads" directory) and looked for CMakeLists.txt file. That file is, or should have been, there. My conclusion is that either the untarring of the tar file didn't completely do its job or that CMakeList.txt file was inadvertently deleted.

      But, there is another problem. The CMakeLists.txt (shown in the first block above) exists and contains:
      PROJECT(kopete_mxit)

      find_package(KDE4 REQUIRED)
      find_package(Qt4 REQUIRED)
      INCLUDE_DIRECTORIES(${QT4_INCLUDE_DIR})
      INCLUDE_DIRECTORIES(${QT_QTCORE_INCLUDE_DIR})
      INCLUDE_DIRECTORIES(${QT_QTGUI_INCLUDE_DIR})
      INCLUDE_DIRECTORIES(${QT_QTNETWORK_INCLUDE_DIR})
      INCLUDE_DIRECTORIES(${KDE4_INCLUDE_DIR})
      INCLUDE_DIRECTORIES(${KDE4_INCLUDES})

      include (KDE4Defaults)
      include (MacroLibrary)

      find_path(KOPETE_INCLUDE_DIR

      NAME kopeteversion.h
      PATH_SUFFIXES kopete
      HINTS
      ${INCLUDE_INSTALL_DIR}
      ${KDE4_INCLUDE_DIR}
      )

      add_subdirectory(icons)

      include_directories(
      ${KOPETE_INCLUDE_DIR}
      ${KOPETE_INCLUDE_DIR}/ui
      )

      set(kopete_mxit_PART_SRCS
      src/mxituserinfo.cpp
      src/mxitcontact.cpp
      src/mxitaccount.cpp
      src/mxitprotocol.cpp
      src/mxitaddcontactpage.cpp
      src/mxiteditaccountwidget.cpp
      src/mxitchatsession.cpp
      )

      set(mxit_protocol_SRCS
      mxit/markup.cpp
      mxit/handshaker.cpp
      mxit/http.cpp
      mxit/tcp.cpp
      mxit/aes.cpp
      mxit/chatservice.cpp
      mxit/packetgenerator.cpp
      mxit/responsehandler.cpp
      mxit/queuemanager.cpp
      )

      kde4_add_ui_files(kopete_mxit_PART_SRCS
      ui/addcontact.ui
      ui/editaccount.ui
      ui/editmxitaccount.ui
      ui/showuserinfo.ui
      ui/mxitregister.ui
      )

      kde4_add_plugin(kopete_mxit ${kopete_mxit_PART_SRCS} ${mxit_protocol_SRCS})
      target_link_libraries(kopete_mxit ${KDE4_KIO_LIBS} kopete
      ${QT_QTNETWORK_LIBRARY} ${QT_QTGUI_LIBRARY} ${QT_CORE_LIBRARY})

      install(TARGETS kopete_mxit DESTINATION ${PLUGIN_INSTALL_DIR})

      install( FILES src/kopete_mxit.desktop src/mxit.protocol DESTINATION ${SERVICES_INSTALL_DIR})
      This file shows that CMakeLists.txt expects to find
      find_path(KOPETE_INCLUDE_DIR[/b]
      NAME kopeteversion.h
      If you do a "locate kopeteversion.h" to look for that header file you'll discover that it doesn't exist on your system (or at least it doesn't exist on mine, and it is setup to do development work) and compiling. That header file isn't on your system and it isn't on mine. Also, it isn't in the tar package that you untarred. The package developer is expecting that you have installed the kopete source code package. That package is here but I don't think that is a path you want to go down.

      If Ubuntu already has MXIT installed, or easily installed from its repository, and that package is necessary for you, then Ubuntu is your solution.
      "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
      – John F. Kennedy, February 26, 1962.

      Comment


        #18
        Re: How to un-tar a .tar.gz

        Hi GreyGeek

        thank you so much for all the trouble you went to.
        I'm going to file this as unsolvable. I'll rather use Pidgin which as Mxit-plugin already installed without doing anything extra.

        Thanks to all who tried to help

        Comment


          #19
          Re: (UNSOVABLE) How to un-tar a .tar.gz

          From the developer:

          This code is alpha quality-use at your own risk
          Not really something that (I) would recommend an inexperienced user deal with.
          Using Kubuntu Linux since March 23, 2007
          "It is a capital mistake to theorize before one has data." - Sherlock Holmes

          Comment


            #20
            Re: (UNSOVABLE) How to un-tar a .tar.gz

            Hi Snowhog

            figured as much. So I've filed it. And leave it. Will use Ubuntu as it's a bit more newbie-friendlier than Kubuntu. Pity though coz I really like the Kubuntu interface

            Comment


              #21
              Re: (UNSOVABLE) How to un-tar a .tar.gz

              You can always install pidgen in KDE. It will bring a lot of Gnome libraries, but, if you desire the KDE look of Kubuntu, this is a 'solution.'
              Using Kubuntu Linux since March 23, 2007
              "It is a capital mistake to theorize before one has data." - Sherlock Holmes

              Comment


                #22
                Re: (UNSOVABLE) How to un-tar a .tar.gz

                I've tried Pidgin with all the libraries, but there are some other issues I'm having with sound now too.
                Perhaps Sit and figure it out all later.

                Txs a million

                Comment


                  #23
                  Re: (UNSOVABLE) How to un-tar a .tar.gz

                  WHOA!!

                  Don't leave. I just had the same problem with a .tar.gz file, and the OS could not find the file.

                  What I did was reach back into the vaults of my old brain and pulled the following out:

                  After playing with permissions, and every other darned thing, I finally remembered GUNZIP.

                  Code:
                  gunzip 120176-kopete-mxit-0.02.tar.gz
                  followed by
                  Code:
                  tar -xvf 120176-kopete-mxit-0.02.tar
                  Some .gz files cannot be unzipped with tar, they must first be gunzipped.
                  The next brick house on the left
                  Intel i7 11th Gen | 16GB | 1TB | KDE Plasma 5.27.11​| Kubuntu 24.04 | 6.8.0-31-generic



                  Comment


                    #24
                    Re: (UNSOVABLE) How to un-tar a .tar.gz

                    Hi jglen490

                    It seems everything is hopeless. Here's the output

                    tanya@tanya-laptop:~$ gunzip 120176-kopete-mxit-0.02.tar.gz
                    gzip: 120176-kopete-mxit-0.02.tar.gz: No such file or directory
                    tanya@tanya-laptop:~$ tar -xvf 120176-kopete-mxit-0.02.tar
                    tar: 120176-kopete-mxit-0.02.tar: Cannot open: No such file or directory
                    tar: Error is not recoverable: exiting now

                    Comment


                      #25
                      Re: (UNSOVABLE) How to un-tar a .tar.gz

                      Originally posted by snowflake_nz
                      tanya@tanya-laptop:~$ gunzip 120176-kopete-mxit-0.02.tar.gz
                      gzip: 120176-kopete-mxit-0.02.tar.gz: No such file or directory
                      try:

                      find . -name 120176-kopete-mxit-0.02.tar.gz

                      this command will print location for your download in case it successully saved in your home directory.

                      or also the same with listing contents:

                      tar zltvf `find ~/ -name 120176-kopete-mxit-0.02.tar.gz`

                      if no contents printed, and you have much time to wait, then try the following:

                      tar zltvf `find / -name 120176-kopete-mxit-0.02.tar.gz`

                      this last command will look all your (k)ubuntu install over around and inside.

                      If last fails - there is no hope at all, since there is no such file, indeed.

                      Comment


                        #26
                        Re: (UNSOVABLE) How to un-tar a .tar.gz

                        Originally posted by molostoff
                        Originally posted by snowflake_nz
                        tanya@tanya-laptop:~$ gunzip 120176-kopete-mxit-0.02.tar.gz
                        gzip: 120176-kopete-mxit-0.02.tar.gz: No such file or directory
                        Here's the output for the first command
                        tanya@tanya-laptop:~$ find . -name 120176-kopete-mxit-0.02.tar.gz
                        ./Downloads/120176-kopete-mxit-0.02.tar.gz


                        and the 2nd command
                        tanya@tanya-laptop:~$ tar zltvf `find ~/ -name 120176-kopete-mxit-0.02.tar.gz`
                        -rwxrwxr-x root/root 1514 2010-02-20 07:32 CMakeLists.txt
                        -rwxrwxr-x root/root 553 2010-02-20 07:32 COPYING
                        -rwxrwxr-x root/root 186 2010-02-20 07:32 README
                        -rwxrwxr-x root/root 323 2010-02-20 07:32 TODO
                        drwxrwxr-x root/root 0 2010-02-20 07:32 icons/
                        -rwxrwxr-x root/root 62 2010-02-20 07:32 icons/CMakeLists.txt
                        -rwxrwxr-x root/root 490 2010-02-20 07:32 icons/ox16-action-mxit_online.png
                        -rwxrwxr-x root/root 490 2010-02-20 07:32 icons/ox16-app-mxit_protocol.png
                        -rwxrwxr-x root/root 876 2010-02-20 07:32 icons/ox22-app-mxit_protocol.png
                        -rwxrwxr-x root/root 1689 2010-02-20 07:32 icons/ox48-app-mxit_protocol.png
                        drwxrwxr-x root/root 0 2010-02-20 07:32 mxit/
                        -rwxrwxr-x root/root 26128 2010-02-20 07:32 mxit/aes.cpp
                        -rwxrwxr-x root/root 1693 2010-02-20 07:32 mxit/aes.h
                        -rwxrwxr-x root/root 24854 2010-02-20 07:32 mxit/chatservice.cpp
                        -rwxrwxr-x root/root 6227 2010-02-20 07:32 mxit/chatservice.h
                        -rwxrwxr-x root/root 1628 2010-02-20 07:32 mxit/global.h
                        -rwxrwxr-x root/root 4224 2010-02-20 07:32 mxit/handshaker.cpp
                        -rwxrwxr-x root/root 1503 2010-02-20 07:32 mxit/handshaker.h
                        -rwxrwxr-x root/root 1417 2010-02-20 07:32 mxit/http.cpp
                        -rwxrwxr-x root/root 1317 2010-02-20 07:32 mxit/http.h
                        -rwxrwxr-x root/root 13790 2010-02-20 07:32 mxit/markup.cpp
                        -rwxrwxr-x root/root 1957 2010-02-20 07:32 mxit/markup.h
                        -rwxrwxr-x root/root 6334 2010-02-20 07:32 mxit/packetgenerator.cpp
                        -rwxrwxr-x root/root 1916 2010-02-20 07:32 mxit/packetgenerator.h
                        -rwxrwxr-x root/root 5424 2010-02-20 07:32 mxit/queuemanager.cpp
                        -rwxrwxr-x root/root 1710 2010-02-20 07:32 mxit/queuemanager.h
                        -rwxrwxr-x root/root 4979 2010-02-20 07:32 mxit/responsehandler.cpp
                        -rwxrwxr-x root/root 1912 2010-02-20 07:32 mxit/responsehandler.h
                        -rwxrwxr-x root/root 2982 2010-02-20 07:32 mxit/tcp.cpp
                        -rwxrwxr-x root/root 1450 2010-02-20 07:32 mxit/tcp.h
                        drwxrwxr-x root/root 0 2010-02-20 07:32 src/
                        -rwxrwxr-x root/root 530 2010-02-20 07:32 src/kopete_mxit.desktop
                        -rwxrwxr-x root/root 177 2010-02-20 07:32 src/mxit.protocol
                        -rwxrwxr-x root/root 31340 2010-02-20 07:32 src/mxitaccount.cpp
                        -rwxrwxr-x root/root 4867 2010-02-20 07:32 src/mxitaccount.h
                        -rwxrwxr-x root/root 1990 2010-02-20 07:32 src/mxitaddcontactpage.cpp
                        -rwxrwxr-x root/root 1494 2010-02-20 07:32 src/mxitaddcontactpage.h
                        -rwxrwxr-x root/root 5126 2010-02-20 07:32 src/mxitchatsession.cpp
                        -rwxrwxr-x root/root 1500 2010-02-20 07:32 src/mxitchatsession.h
                        -rwxrwxr-x root/root 5247 2010-02-20 07:32 src/mxitcontact.cpp
                        -rwxrwxr-x root/root 2167 2010-02-20 07:32 src/mxitcontact.h
                        -rwxrwxr-x root/root 10664 2010-02-20 07:32 src/mxiteditaccountwidget.cpp
                        -rwxrwxr-x root/root 2002 2010-02-20 07:32 src/mxiteditaccountwidget.h
                        -rwxrwxr-x root/root 5242 2010-02-20 07:32 src/mxitprotocol.cpp
                        -rwxrwxr-x root/root 2859 2010-02-20 07:32 src/mxitprotocol.h
                        -rwxrwxr-x root/root 4306 2010-02-20 07:32 src/mxituserinfo.cpp
                        -rwxrwxr-x root/root 1418 2010-02-20 07:32 src/mxituserinfo.h
                        drwxrwxr-x root/root 0 2010-02-20 07:32 ui/
                        -rwxrwxr-x root/root 2338 2010-02-20 07:32 ui/addcontact.ui
                        -rwxrwxr-x root/root 2740 2010-02-20 07:32 ui/editaccount.ui
                        -rwxrwxr-x root/root 2826 2010-02-20 07:32 ui/editmxitaccount.ui
                        -rwxrwxr-x root/root 5437 2010-02-20 07:32 ui/mxitregister.ui
                        -rwxrwxr-x root/root 4557 2010-02-20 07:32 ui/showuserinfo.ui
                        tanya@tanya-laptop:~$


                        try:

                        find . -name 120176-kopete-mxit-0.02.tar.gz

                        this command will print location for your download in case it successully saved in your home directory.

                        or also the same with listing contents:

                        tar zltvf `find ~/ -name 120176-kopete-mxit-0.02.tar.gz`

                        Comment


                          #27
                          Re: (UNSOVABLE) How to un-tar a .tar.gz

                          Originally posted by snowflake_nz

                          Here's the output for the first command
                          tanya@tanya-laptop:~$ find . -name 120176-kopete-mxit-0.02.tar.gz
                          ./Downloads/120176-kopete-mxit-0.02.tar.gz
                          Okey, Now just use this

                          tar zxvf ~/Downloads/120176-kopete-mxit-0.02.tar.gz

                          this will unpack everything just into your home dir. If this is undesirable for you, do before that

                          mkdir ~/DesirableDir
                          cd ~/DesirableDir;
                          tar zxvf ~/Downloads/120176-kopete-mxit-0.02.tar.gz

                          and everything will be OK.

                          Comment


                            #28
                            Re: (UNSOVABLE) How to un-tar a .tar.gz

                            Originally posted by snowflake_nz
                            The file is 120176-kopete-mxit-0.02.tar.gz and is located in /home/downloads
                            If we all had read this closer, we would have noted that the above stated location is incorrect. The file is actually in:

                            ~/Downloads (~/ is short had for /home/USER_NAME). From the console, initially, all you had to do was:

                            cd Downloads
                            tar zltvf 120176-kopete-mxit-0.02.tar.gz

                            Using Kubuntu Linux since March 23, 2007
                            "It is a capital mistake to theorize before one has data." - Sherlock Holmes

                            Comment


                              #29
                              Re: (UNSOVABLE) How to un-tar a .tar.gz

                              IOW, capital letters are different from lower case in *nix. So: "Downloads" with a capital.

                              Comment


                                #30
                                Re: (UNSOVABLE) How to un-tar a .tar.gz

                                Still didn't work.
                                I'm going to stick to Pidgin.
                                Thanks anyways

                                Comment

                                Working...
                                X