linux

    技术2026-01-27  8

    ID = linux_ask_03

    文章目录

    QuestionAnswerStep1: extract the fileStep2: install[2]More correct way?My exampleStep1: extract pycharm-community-2020.1.2Step2: follow `Install-Linux-tar.txt` Reference

    Question

    How to install tar.gz file in Linux?

    Answer

    $ ./configure + $ make + $ make install

    Follow this procedure to make it:

    Step1: extract the file

    To extract it, execute the command:$ tar -xf <filename.tar.gz>

    $ tar -xf pycharm-community-2020.1.2.tar.gz Getting no info. means it is done successfully.

    Step2: install[2]

    $ ./configure $ make $ sudo make install

    Where,

    ./configure will configure the software to ensure your system has the necessary functionality and libraries to successfully compile the packagemake will compile all the source files into executable binaries.Finally, make install will install the binaries and any supporting files into the appropriate locations.

    More correct way?

    I tried to install pycharm, but got failed.

    ~/Downloads/pycharm-community-2020.1.2$ ./configure bash: ./configure: No such file or directory ~/Downloads/pycharm-community-2020.1.2$ make make: *** No targets specified and no makefile found. Stop. ~/Downloads/pycharm-community-2020.1.2$ sudo make install make: *** No rule to make target 'install'. Stop.

    And my recommendation is to follow the installation instruction which is usually inside the extracted folder, similar to README.

    In conclusion, the more practical procedure is: Step1: extract the file Step2: follow the installation instruction

    This is my record of installing pycharm after got failed based on common solution.

    My example

    Step1: extract pycharm-community-2020.1.2

    $ tar -xf pycharm-community-2020.1.2.tar.gz $ cd pycharm-community-2020.1.2 $ ls bin help Install-Linux-tar.txt lib plugins build.txt index jbr license product-info.json

    Then, open Install-Linux-tar.txt and go to next step.

    Step2: follow Install-Linux-tar.txt

    guide:

    To start the application, open a console, cd into “{installation home}/bin” and type: ./pycharm.sh This will initialize various configuration files in the configuration directory: ~/.config/JetBrains/PyCharmCE2020.1.

    record:

    $ cd bin $ ./pycharm.sh OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release. ...

    The installation was done.

    Reference

    [1] 如何使用sudo命令安装.tar.gz? [2] How to install Linux / UNIX *.tar.gz tarball files

    Processed: 0.024, SQL: 9