CN106951265B - Development environment building method and device - Google Patents

Development environment building method and device Download PDF

Info

Publication number
CN106951265B
CN106951265B CN201710197713.5A CN201710197713A CN106951265B CN 106951265 B CN106951265 B CN 106951265B CN 201710197713 A CN201710197713 A CN 201710197713A CN 106951265 B CN106951265 B CN 106951265B
Authority
CN
China
Prior art keywords
development environment
environment
script
type
development
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710197713.5A
Other languages
Chinese (zh)
Other versions
CN106951265A (en
Inventor
张磊
张文明
陈少杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southern Power Grid Internet Service Co ltd
Original Assignee
Wuhan Douyu Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Douyu Network Technology Co Ltd filed Critical Wuhan Douyu Network Technology Co Ltd
Priority to CN201710197713.5A priority Critical patent/CN106951265B/en
Publication of CN106951265A publication Critical patent/CN106951265A/en
Application granted granted Critical
Publication of CN106951265B publication Critical patent/CN106951265B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/20Software design
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention provides a method and a device for building a development environment, which are applied to a Linux system, wherein the development environment comprises a Reactnative development environment, and the method comprises the following steps: acquiring and executing a preset environment building script; downloading an installation configuration file of a first type development environment, and installing or configuring the installation configuration file, wherein the first type development environment comprises a development environment which is not built in the Linux system; installing and enabling a second type development environment, wherein the second type development environment comprises a development environment built in the Linux system; and initializing the development tool to complete the construction of the development environment. Therefore, the setting up of the ReactNative development environment is automatically completed by executing the preset environment setting-up script, so that the manual operation is reduced, the setting-up efficiency of the development environment is improved, and the error probability of the setting-up of the development environment is greatly reduced.

Description

Development environment building method and device
Technical Field
The invention relates to the technical field of development platforms, in particular to a development environment building method and device.
Background
The ReactNative development environment is a set of framework for developing Android application programs by using a JavaScript language provided by facebook company, and can be used for constructing an interface. The ReactNative development environment needs to depend on the cooperation of a plurality of development environments, and in the prior art, when the ReactNative development environment is built, downloading, installing and configuring of each development environment are carried out in a manual mode, the building process of the development environment is complex, a large amount of manpower and material resources are needed, and errors are easy to occur in the building process.
Disclosure of Invention
In order to overcome the defects in the prior art, the invention aims to provide a development environment construction method which is applied to a Linux system, wherein the development environment comprises a ReactNative development environment, and the method comprises the following steps:
acquiring and executing a preset environment building script;
downloading an installation configuration file of a first type development environment, and installing or configuring the installation configuration file, wherein the first type development environment comprises a development environment which is not built in the Linux system;
installing and starting the second type development environment;
and initializing the development tool to complete the construction of the development environment.
Further, in the above method, the method further comprises:
and generating the environment construction script according to the needs of the ReactNative development environment, wherein the environment construction script comprises an instruction for downloading, installing or configuring the first type development environment and an instruction for installing and starting the second type development environment.
Further, in the above method, the downloading of the installation configuration file of the first type development environment includes:
and executing a wget instruction in the environment building script, and acquiring the installation configuration file of the first type development environment from a specified network path.
Further, in the above method, the first type development environment comprises a JDK development environment; the downloading of the installation configuration file of the first type development environment and the installation or configuration steps include:
downloading an installation configuration file of the JDK development environment;
executing a tar instruction in the environment building script, and connecting the installation configuration file of the JDK development environment to a specified installation path;
and executing an echo instruction in the environment building script, and configuring parameters in the JDK development environment.
Further, in the above method, the first type of development environment comprises an android sdk development environment; the downloading of the installation configuration file of the first type development environment and the installation or configuration steps include:
downloading an installation configuration file of the android SDK development environment;
executing an unship instruction in the environment building script, and connecting the installation configuration file of the android SDK development environment to a specified installation path;
and executing an echo instruction in the environment building script, and configuring parameters in the android SDK development environment.
Further, in the above method, the second type development environment comprises a Python development environment; the step of installing and enabling the second type development environment comprises the following steps:
and executing a sudo instruction in the environment building script, and installing Python2.7, Python2.7-dev and Python-pip installation configuration files.
Further, in the above method, the Linux system includes a Linux system based on an Ubuntu system, and the second type development environment includes a Nodejs development environment; the step of installing and enabling the second type development environment comprises the following steps:
executing an apt-get update instruction in the environment building script, and upgrading an apt-get tool warehouse;
executing apt-get install curl in the environment construction script, and installing and starting a curl tool;
and executing a curl instruction in the environment building script, and installing a configuration file in a Nodejs development environment in the Linux system through a curl tool.
Further, in the above method, the step of initializing the development tool includes:
and executing the npm instruction in the environment building script, and installing a react-native-cli tool.
Another object of the present invention is to provide a development environment construction apparatus, applied to a Linux system, wherein the development environment includes a ReactNative development environment, and the apparatus includes:
the script acquisition module is used for acquiring and executing a preset environment construction script;
the first installation module is used for downloading an installation configuration file of a first type development environment and carrying out installation or configuration, wherein the first type development environment comprises a development environment which is not arranged in the Linux system;
the second installation module is used for installing and starting the second type development environment;
and the initialization module is used for initializing the development tool to complete the construction of the development environment.
Further, in the above apparatus, the apparatus further comprises:
and the script generating module is used for generating the environment construction script according to the needs of the ReactNative development environment, wherein the environment construction script comprises an instruction for downloading, installing or configuring the first type development environment and an instruction for installing and starting the second type development environment.
Compared with the prior art, the invention has the following beneficial effects:
according to the development environment construction method and device provided by the invention, the downloading, installation or configuration of the first type development platform and the installation and starting of the second type development platform are automatically executed by running the preset environment construction script, and the starting of the development tool is automatically executed. Therefore, the setting up of the ReactNative development environment is automatically completed by executing the preset environment setting-up script, so that the manual operation is reduced, the setting-up efficiency of the development environment is improved, and the error probability of the setting-up of the development environment is greatly reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a schematic diagram of an electronic terminal according to an embodiment of the present invention;
fig. 2 is a schematic flow chart of a development environment construction method provided by an embodiment of the present invention;
fig. 3 is one of schematic diagrams of a development environment construction apparatus according to an embodiment of the present invention;
fig. 4 is a second schematic diagram of a development environment building apparatus according to an embodiment of the present invention.
Icon: 100-an electronic terminal; 110-a development environment setup device; 111-script acquisition module; 112-a first installation module; 113-a second mounting module; 114-an initialization module; 115-script generation module; 120-a memory; 130-a processor.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present invention, it should be noted that the terms "first", "second", "third", and the like are used only for distinguishing the description, and are not intended to indicate or imply relative importance.
In the description of the present invention, it should also be noted that, unless otherwise explicitly specified or limited, the terms "disposed," "mounted," "connected," and "connected" are to be construed broadly and may, for example, be fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In this embodiment, the method and the device provided by the embodiment are applied to the construction of a ReactNative development environment on an electronic terminal of a Linux system.
In this embodiment, the electronic terminal 100 may be, but is not limited to, a server, a Personal Computer (PC), a tablet computer, a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a smart phone, and the like.
Referring to fig. 1, fig. 1 is a block diagram of an electronic terminal 100 according to the present embodiment. The electronic terminal 100 includes a development environment construction apparatus 110, a memory 120, and a processor 130.
The memory 120 and the processor 130 are electrically connected to each other directly or indirectly to realize data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The development environment construction apparatus 110 includes at least one software function module that can be stored in the memory 120 in the form of software or firmware (firmware) or solidified in an Operating System (OS) of the electronic terminal 100. The processor 130 is configured to execute executable modules stored in the memory 120, such as software functional modules and computer programs included in the development environment construction apparatus 110.
The Memory 120 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 120 is used for storing a program, and the processor 130 executes the program after receiving the execution instruction.
The processor 130 may be an integrated circuit chip having signal processing capabilities. The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP)), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Referring to fig. 2, fig. 2 is a flowchart of a development environment construction method applied to the electronic terminal 100 shown in fig. 1, and the method including various steps will be described in detail below.
And step S110, acquiring and executing a preset environment building script.
Since the ReactNative development environment needs to depend on the cooperation of a plurality of sets of development environments, in this embodiment, the environment construction script is generated according to the needs of the ReactNative development environment, and the environment construction script includes an instruction for downloading, installing or configuring the first type development environment and an instruction for installing and enabling the second type development environment, where the first type development environment includes a development environment that is not built in the Linux system, and the second type development environment includes a development environment that is built in the Linux system.
Further, in this embodiment, the environment building script may be a Shell script.
And step S120, downloading the installation configuration file of the first type development environment, and installing or configuring.
In an implementation manner of this embodiment, the installation configuration file of the first type development environment may be obtained from a network path specified by the environment setup script. The electronic terminal 100 executes the instruction in the environment construction script, and acquires the installation configuration file of the first type development environment from the specified network path.
In another implementation manner of this embodiment, the first type development environment may be obtained from a local memory of the electronic terminal 100, where the environment building script is executed.
Specifically, in this example, the first type development environment includes a JDK development environment, where the JDK is a software development kit in Java language, and is mainly used for Java applications on mobile devices and embedded devices. JDKs are the core of the entire JAVA development, and contain the runtime environment of JAVA, JAVA facilities and JAVA-based class libraries.
The electronic terminal 100 downloads the installation configuration file of the JDK development environment first.
For example, in this embodiment, the electronic terminal 100 may execute the following codes in the environment building script, and download the installation configuration file of the JDK development environment from a specified network path.
wget http://xxx.xxx.xxx/……/JDK-8u121-Linux-x64.tar.gz~/Download
In the above instruction, -/Download represents downloading the installation configuration file of the JDK development environment to a Download folder of a root directory of the Linux system.
After completing the installation configuration file of the JDK development environment, the electronic terminal 100 executes a tar instruction in the environment building script, and connects the installation configuration file of the JDK development environment to a specified installation path.
For example, in this embodiment, the electronic terminal 100 may execute the following instructions in the environment building script to decompress and install the installation configuration file of the JDK development environment.
tar zxvf~/Download/JDK-8u121-Linux-x64.tar.gz-C/opt/
In the above command, tar denotes a tool for compressing and compressing a file. zxvf is the parameter information required by the tar tool to represent the decompressed file and to print the information in the decompression process to the console. And the/Download/JDK-8 u121-Linux-x64.tar.gz represents the storage address of the installation configuration file of the JDK development environment. C represents the directory name that needs to be decompressed to the formulated directory followed by C,/opt represents the location information to which JDK-8u121-Linux-x64.tar. gz file is eventually decompressed.
After the electronic terminal 100 completes decompression and installation of the JDK development environment, it executes an echo instruction in the environment building script to configure parameters in the JDK development environment.
For example, in this embodiment, the electronic terminal 100 may execute the following instructions in the environment building script to configure the parameters of the JDK development environment.
echo"export JAVA_HOME=/opt/JDK-8u121-Linux-x64/">>~/.bashrc
echo"export PATH=$PATH:$JAVA_HOME/bin">>~/.bashrc
In the above instruction, echo is an output statement in Linux, and can output a fixed character string to a file or a console or the like. Export indicates that a global variable is declared in a parameter of the JDK development environment, where a global variable JAVA _ HOME is declared and the value of JAVA _ HOME is set to/opt/JDK-8 u121-Linux-x 64/. > > -/. bashrc indicates that the files are written into the bashrc in an additional mode, wherein the bashrc files are environment configuration files in the Linux system. The value of the original variable of the PATH in the system is denoted as $ PATH in the PATH followed by the second value, and the value of the JAVA _ HOME variable defined above is denoted as $ PATH.
Specifically, in this embodiment, the first type development environment includes an Android sdk development environment, and the Android sdk development environment refers to an Android development environment.
The electronic terminal 100 downloads the installation configuration file of the android sdk development environment.
For example, in this embodiment, the electronic terminal 100 may execute the following codes in the environment building script, and download the installation configuration file of the android sdk development environment from a specified network path.
wget http://xxx.xxx.xxx/……/tools_r25.2.3-Linux.zip~/Download
After completing the installation configuration file of the JDK development environment, the electronic terminal 100 executes an unship instruction in the environment construction script, and connects the installation configuration file of the android sdk development environment to a specified installation path.
For example, in this embodiment, the electronic terminal 100 may execute the following instructions in the environment building script to decompress and install the installation configuration file of the android sdk development environment.
unzip~/Download/tools_r25.2.3-Linux.zip-d/opt/
In the above instruction, the unzip command is represented by unzip, and the unzip command is an open source tool, and the main function is used for decompressing zip files. -d indicates that the zip package is to be decompressed to the specified path,/opt/indicates that the installation configuration file is to be decompressed under/opt/directory.
After the electronic terminal 100 completes decompression and installation of the JDK development environment, it executes an echo instruction in the environment building script, and configures parameters in the android sdk development environment.
For example, in this embodiment, the electronic terminal 100 may execute the following instructions in the environment building script to configure parameters of the android sdk development environment.
echo"ANDROID_HOME=/opt/androidSDK/">>~/.bashrc
echo
"PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools"
Specifically, in this embodiment, the Linux system includes an Ubuntu system-based Linux system, and the first type development environment includes a Nodejs development environment. The configuration file installed in the Ubuntu system is managed through the apt-get tool, a curl tool is needed when the Nodejs development environment is installed, the curl tool does not contain the found operating system by default, and therefore the curl tool needs to be installed firstly and then the installation environment of the Nodejs is installed through the curl tool.
And the electronic terminal 100 executes the apt-get update instruction in the environment construction script and upgrades the apt-get tool warehouse.
For example, in this embodiment, the electronic terminal 100 may execute the following instructions in the environment construction script to perform the upgrade of the apt-get tool repository.
apt-get update
After the upgrade is completed, the electronic terminal 100 executes the apt-get install curl in the environment building script, and installs and starts a curl tool.
For example, in this embodiment, the electronic terminal 100 may execute the following instruction in the environment construction script to install an enabled curl tool.
apt-get install curl
After the starting of the curl tool is completed, the electronic terminal 100 executes a curl instruction in the environment building script, and installs the Nodejs development environment in the Linux system by using a curl tool installation configuration file.
For example, in this embodiment, the electronic terminal 100 may execute the following instructions in the environment construction script to install the Nodejs development environment.
curl-sL https://xxx.xxx.xxx/setup|sudo bash-
In the above instructions, the current-sL https:// xxx. xxx/setup represents downloading Nodejs's configuration file setup from https:// xxx. xxx.xxx/download Nodejs. After downloading the setup configuration file through the crul tool, handing the configuration file to the current Shell environment and executing the configuration file. In the above code, | sudo bash-indicates that setup, which is a script file, is executed to install the Nodejs development environment.
And step S130, installing and enabling the second type development environment.
Specifically, in this embodiment, the second type development environment includes a Python development environment, and three Python-related tools, specifically including Python2.7, Python2.7-dev, and Python-pip, need to be installed in the step of installing and enabling the Python development environment. The general function of these three tools is described below.
Python2.7 indicates that the Python2 version package is installed, and the Python2 version is required to be used instead of the Python3 version in this step, so that Python2.7 is required to be installed.
Python2.7-dev is a package of developers added to Python2.7, and tool functions of additional developers added to the installation configuration file are often used in development. So the python2.7-dev package needs to be installed in this step.
The Python-pip is a package management tool in the Python environment, and related components in the Python environment can be installed through the Python-pip tool, which is also a package management tool that must be used in the ReactNative environment.
And the electronic terminal 100 executes the sudo instruction in the environment building script and installs the Python2.7, Python2.7-dev and Python-pip installation configuration files.
For example, in this embodiment, the electronic terminal 100 may execute the following instructions in the environment building script to enable installation of the Python development environment.
sudo apt-get install Python2.7Python2.7-dev Python-pip
The 3 Python-related packages can be installed and enabled by executing the apt-get install.
And step S140, initializing the development tool to complete the construction of the development environment.
Specifically, the electronic terminal 100 executes the npm command in the environment construction script and installs a react-native-cli tool.
The basic development environment is well established, and the electronic terminal 100 is automatically initialized through the shell script. When installing the ReactNative environment, npm commands are needed, and the commands are self-contained command tools in the Nodejs development environment installed above. The required ReactNative environment then needs to be installed npm.
For example, in this embodiment, the electronic terminal 100 may execute the following instructions in the environment construction script to install the ReactNative environment.
npm install-g react-native-cli
In the above instructions, npm is a tool in the Nodejs development environment, and is used for installing the tool in Nodejs. The actual-g reactive-native-cli indicates that a reactive-native-cli tool set needs to be installed, the reactive-native-cli tool set is a necessary tool set for the ReactNative, and the whole ReactNative development environment is configured after the reactive-native-cli tool set is installed.
Referring to fig. 3, the embodiment further provides a development environment building apparatus 110 applied to the electronic terminal 100 shown in fig. 1, the apparatus includes: script acquisition module 111, first installation module 112, second installation module 113, and
the script obtaining module 111 is configured to obtain and execute a preset environment construction script;
the first installation module 112 is configured to download an installation configuration file of a first type development environment, and perform installation or configuration, where the first type development environment includes a development environment that is not built in the Linux system;
the second installation module 113 is configured to enable installation of a second type development environment;
and the initialization module 114 is used for initializing the development tool to complete the construction of the development environment.
Further, referring to fig. 4, in the above apparatus, the apparatus further includes a script generating module 115.
The script generating module 115 is configured to generate the environment construction script according to the needs of the ReactNative development environment, where the environment construction script includes an instruction for downloading, installing, or configuring the first type development environment, and an instruction for installing and enabling the second type development environment.
In summary, according to the development environment construction method and apparatus provided by the present invention, the downloading, installation or configuration of the first type development platform and the installation and activation of the second type development platform are automatically executed by running the preset environment construction script, and the activation of the development tool is automatically executed. Therefore, the setting up of the ReactNative development environment is automatically completed by executing the preset environment setting-up script, so that the manual operation is reduced, the setting-up efficiency of the development environment is improved, and the error probability of the setting-up of the development environment is greatly reduced.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (3)

1. A development environment construction method is applied to a Linux system and is characterized in that the development environment comprises a ReactNative development environment, and the method comprises the following steps:
generating an environment building script according to the requirement of the Reactnative development environment;
the environment construction script comprises an instruction for downloading, installing or configuring the first type development environment;
and instructions to install the second type of development environment;
acquiring and executing a preset environment building script;
downloading an installation configuration file of the first type development environment, and installing or configuring, and specifically comprising:
executing the instruction in the environment building script, and acquiring the installation configuration file of the first type development environment from a specified network path;
the first type of development environment comprises a development environment that is not built into the Linux system;
the first type of development environment comprises a JDK development environment;
downloading an installation configuration file of the JDK development environment;
executing a tar instruction in the environment building script, and connecting the installation configuration file of the JDK development environment to a specified installation path;
executing an echo instruction in the environment building script, and configuring parameters in the JDK development environment;
the first type of development environment comprises an android SDK development environment;
downloading an installation configuration file of the android SDK development environment;
executing an unship instruction in the environment building script, and connecting the installation configuration file of the android SDK development environment to a specified installation path;
executing an echo instruction in the environment building script, and configuring parameters in the android SDK development environment;
the first type development environment comprises a Nodejs development environment;
executing an apt-get update instruction in the environment building script, and upgrading an apt-get tool warehouse;
executing apt-get install curl in the environment building script, and installing and starting a curl tool;
executing a curl instruction in the environment construction script, and installing a Nodejs development environment in which a configuration file is contained in the Linux system through a curl tool;
installing and enabling a second type development environment, wherein the second type development environment comprises a development environment built in the Linux system;
the second type of development environment comprises a Python development environment;
the step of installing and enabling the second type development environment comprises the following steps: executing a sudo instruction in the environment building script, and installing Python2.7, Python2.7-dev and Python-pip installation configuration files;
initializing a development tool to complete the construction of a development environment, and specifically comprising:
and executing the npm instruction in the environment building script, and installing a react-native-cli tool.
2. The method according to claim 1, wherein the Linux system comprises a Ubuntu system based Linux system.
3. A development environment construction apparatus applied to a Linux system and configured to execute the development environment construction method according to any one of claims 1 to 2, wherein the development environment includes a ReactNative development environment, the apparatus comprising:
the script generating module is used for generating the environment construction script according to the requirement of the ReactNative development environment, and the environment construction script comprises an instruction for downloading, installing or configuring the first type development environment and an instruction for installing and starting the second type development environment;
the script acquisition module is used for acquiring and executing a preset environment construction script;
the first installation module is used for downloading an installation configuration file of a first type development environment and carrying out installation or configuration, wherein the first type development environment comprises a development environment which is not arranged in the Linux system;
the second installation module is used for installing and starting the second type development environment; and the initialization module is used for initializing the development tool to complete the construction of the development environment.
CN201710197713.5A 2017-03-29 2017-03-29 Development environment building method and device Active CN106951265B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710197713.5A CN106951265B (en) 2017-03-29 2017-03-29 Development environment building method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710197713.5A CN106951265B (en) 2017-03-29 2017-03-29 Development environment building method and device

Publications (2)

Publication Number Publication Date
CN106951265A CN106951265A (en) 2017-07-14
CN106951265B true CN106951265B (en) 2022-01-04

Family

ID=59475342

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710197713.5A Active CN106951265B (en) 2017-03-29 2017-03-29 Development environment building method and device

Country Status (1)

Country Link
CN (1) CN106951265B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109471797A (en) * 2018-10-23 2019-03-15 深圳市佰仟金融服务有限公司 A kind of environment configurations management method, system and terminal device
CN114168112A (en) * 2021-12-09 2022-03-11 深圳创维智慧科技有限公司 Application development method, system, device and computer readable storage medium
CN116185435B (en) * 2023-02-22 2024-03-26 太极计算机股份有限公司 Scaffold-based software development environment development method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186376A (en) * 2011-12-30 2013-07-03 百度在线网络技术(北京)有限公司 Method, device and equipment for establishing or updating software development environment
CN103368970A (en) * 2013-07-23 2013-10-23 江苏君立华域信息安全技术有限公司 Automation security detection method for network target
CN104809015A (en) * 2015-05-05 2015-07-29 浪潮电子信息产业股份有限公司 Method for automatically deploying Oracle rac environment based on Linux system
CN106020921A (en) * 2016-05-16 2016-10-12 广东天波信息技术股份有限公司 Peripheral application transplantation method and system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130018719A1 (en) * 2011-07-13 2013-01-17 Comscore, Inc. Analyzing effects of advertising
CN103257852B (en) * 2012-02-17 2017-08-04 阿里巴巴集团控股有限公司 The method and apparatus that a kind of development environment of distribution application system is built
CN105867894A (en) * 2015-11-18 2016-08-17 乐视致新电子科技(天津)有限公司 Automatic creating method and system of development environment
CN106445583B (en) * 2016-08-31 2020-03-31 广州品唯软件有限公司 Page display method, equipment and system
CN106528079A (en) * 2016-09-23 2017-03-22 北京五八信息技术有限公司 Method and device for monitoring running state of React Native code

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186376A (en) * 2011-12-30 2013-07-03 百度在线网络技术(北京)有限公司 Method, device and equipment for establishing or updating software development environment
CN103368970A (en) * 2013-07-23 2013-10-23 江苏君立华域信息安全技术有限公司 Automation security detection method for network target
CN104809015A (en) * 2015-05-05 2015-07-29 浪潮电子信息产业股份有限公司 Method for automatically deploying Oracle rac environment based on Linux system
CN106020921A (en) * 2016-05-16 2016-10-12 广东天波信息技术股份有限公司 Peripheral application transplantation method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
React-Native开发之Ubuntu16.04配置环境;Maze-Mozo;《https://blog.csdn.net/zhongyanfu0/article/details/52967453》;20161029;1-8 *

Also Published As

Publication number Publication date
CN106951265A (en) 2017-07-14

Similar Documents

Publication Publication Date Title
CN108037961B (en) Application program configuration method, device, server and storage medium
CN106796508B (en) Fast deployment on cloud platforms
CN108830720B (en) Intelligent contract running method, device, system and computer readable storage medium
CN107450941B (en) Automatic packaging method, device, storage medium and computer equipment
US20170277524A1 (en) Dynamic container deployment with parallel conditional layers
CN106911500B (en) Physical machine configuration method and device and physical machine
WO2017157178A1 (en) Mobile terminal application update method and device
CN109766099B (en) Front-end source code compiling method and device, storage medium and computer equipment
CN103838573A (en) Application program generation method and device
CN106951265B (en) Development environment building method and device
CN111897520A (en) Front-end project framework construction method and device, computer equipment and storage medium
US9830136B2 (en) Method and apparatus for firmware virtualization
CN108563440B (en) Automatic adding method and device of list controller codes and readable storage medium
US20200183683A1 (en) Application architecture generation
US9116808B2 (en) Method and system for determining device configuration settings
US20190073198A1 (en) Multi-flavored software execution from a singular code base
US20170168923A1 (en) System and method for creating a test application
KR102141749B1 (en) APP program execution method and device
CN108037914B (en) Method and device for developing android native system by combining js
CN114816475A (en) Method, device, equipment and medium for updating embedded operating system
CN111273940B (en) Method and device for uploading program file to code warehouse
CN109976728B (en) Method and device for generating native application program and mobile terminal
CN115269442B (en) Debugging method and tool based on graphic interface architecture and management project
CN113805878B (en) Plug-in engineering method, device, computer system and medium
US11900091B2 (en) Extensible upgrade and modification as a service

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20231110

Address after: Room 606-609, Compound Office Complex Building, No. 757, Dongfeng East Road, Yuexiu District, Guangzhou, Guangdong Province, 510699

Patentee after: China Southern Power Grid Internet Service Co.,Ltd.

Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building

Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right