5/27/2020 Debian Install Pkg Tar Xz Format
A Debian package is a collection of files that allow for applications or libraries to be distributed via the Debian package management system. The aim of packaging is to allow the automation of installing, upgrading, configuring, and removing computer programs for Debian in.
![]() ![]()
If you want to install from sources by hand, the most difficult thing is often installing the right dependencies. If README or INSTALL does not list them, you can need to run the./configure script by hand (for autoconf based build systems). If it fails with 'checking for xyz: No', 'xyz not found' or similar, install the package libxyz-dev (on Debian based systems) and try again. If the package does not exists, you need either to find the correct package or to install the needed library by hand first.
Sometimes you have to select a specific library version.–Nov 2 '12 at 10:09. Firstly, according to the, the location of this installed package should be /opt if it is a binary install and /usr/local if it's a from source install. Pure binariesThese are ready to use binaries. Normally they just need to be extracted to be installed. A binary package is going to be easy:. sudo tar -directory=/opt -xvf.tar.bz2 gz.
add the directory to your path: export PATH=$PATH:/opt/packagename/binand you are done. From sourcesA source package is going to be more troublesome (by far) and through they can roughly be processed with the method below, each package is different:. download the package to /usr/local/src. tar xf.tar.bz2 gz. cd.
read the README file (this almost certainly exists). most Open Source projects use autoconf/automake, the instructions should be in the README. Probably this step will go:./configure && make && make install (run the commands separately for sanity if something goes wrong though).If there's any problems in the install then you'll have to ask specific questions.
You might have problems of incorrect versions of libraries or missing dependencies. There's a reason that Debian packages everything up for you. And there is a reason Debian stable runs old packages - finding all the corner cases of installing packages on more than a dozen different architectures and countless different hardware/systems configurations is difficult. When you install something on your own you might run into one of these problems! Let me illustrate this with an example, say you wish to install a package abc.The dependencies of the package abc may be identified by reading its documentation. You should resolve the dependencies(required libraries etc) prior to installation for a smooth experience.Before a gcc 4.7.2 build the g, m4, gawk, gcc-multilib,gmp, mpfr, and mpc must be built.Then comes the building from source part for which the first step is always extraction.
This can be done by using the tar command or by the simple GUI way. Once you have the extracted files in a folder you must browse to that folder using the cd command, for example if the contents are in Downloads then:$cd Downloads/abcNow you need to run./configure. Specify the installation directory by using the -prefix= option with configure.Firstly, according to the File System Hierarchy Standards, thelocation of this installed package should be /opt if it is a binaryinstall and /usr/local if it's a from source install.so if you are installing to the /usr/abc directory you will supply the option -prefix=/usr/abc with the./configure instruction.
$./configure -prefix=/usr/abc-prefix= is not the only thing you might want to specify though, you might want to supply other information for a successful compilation like the type of your system with -build=x8664-linux-gnu for 64 bit, and -build=i386-linux-gnu for a 32 bit system. It is wise to read the README in the extracted files as it may carry the information about which options to specify with the./configure command.After the./configure run the make command, and subsequently the make install.Post installation you should specify the library path, shell/environment variables using the export command. Export PATH=/usr/abc/bin:$PATH.
2.2 Installing MySQL on Unix/Linux Using Generic BinariesOracle provides a set of binary distributions of MySQL. Theseinclude generic binary distributions in the form of compressedtar files (files with a.tar.xz extension) for a number of platforms,and binaries in platform-specific package formats for selectedplatforms.This section covers the installation of MySQL from a compressedtar file binary distribution on Unix/Linuxplatforms. For other platform-specific binary package formats, seethe other platform-specific sections in this manual.
For example,for Windows distributions, see.If you have previously installed MySQL using your operatingsystem native package management system, such as Yum or APT,you may experience problems installing using a native binary.Make sure your previous MySQL installation has been removedentirely (using your package management system), and that anyadditional files, such as old versions of your data files,have also been removed. You should also check forconfiguration files such as /etc/my.cnfor the /etc/mysql directory and deletethem.For information about replacing third-party packages withofficial MySQL packages, see the relatedor.MySQL has a dependency on the libaiolibrary. Data directory initialization and subsequent serverstartup steps will fail if this library is not installedlocally. If necessary, install it using the appropriatepackage manager. DirectoryContents of Directorybinserver, client and utility programsdocsMySQL manual in Info formatmanUnix manual pagesincludeInclude (header) fileslibLibrariesshareError messages, dictionary, and SQL for database installationsupport-filesMiscellaneous support filesDebug versions of the binary are availableas.
![]()
To compile your own debugversion of MySQL from a source distribution, use the appropriateconfiguration options to enable debugging support. See.To install and use a MySQL binary distribution, the command sequencelooks like this:shell groupadd mysqlshell useradd -r -g mysql -s /bin/false mysqlshell cd /usr/localshell tar xvf /path/to/mysql-VERSION-OS.tar.xzshell ln -s full-path-to-mysql-VERSION-OS mysqlshell cd mysqlshell mkdir mysql-filesshell chown mysql:mysql mysql-filesshell chmod 750 mysql-filesshell bin/mysqld -initialize -user=mysqlshell bin/mysqlsslrsasetupshell bin/mysqldsafe -user=mysql Next command is optionalshell cp support-files/mysql.server /etc/init.d/mysql.server. NoteThis procedure assumes that you have root(administrator) access to your system. Alternatively, you canprefix each command using the sudo (Linux) orpfexec (Solaris) command.The mysql-files directory provides a convenientlocation to use as the value for thesecurefilepriv system variable, which limitsimport and export operations to a specific directory.
See.A more detailed version of the preceding description for installinga binary distribution follows.Create a mysql User and GroupIf your system does not already have a user and group to use forrunning, you may need to create them. Thefollowing commands add the mysql group and themysql user. You might want to call the user andgroup something else instead of mysql.
If so,substitute the appropriate name in the following instructions. Thesyntax for useradd andgroupadd may differ slightly on differentversions of Unix/Linux, or they may have different names such asadduser and addgroup.shell groupadd mysqlshell useradd -r -g mysql -s /bin/false mysql. NoteBecause the user is required only for ownership purposes, notlogin purposes, the useradd command uses the-r and -s /bin/false options tocreate a user that does not have login permissions to your serverhost. Omit these options if your useradd doesnot support them.Obtain and Unpack the DistributionPick the directory under which you want to unpack the distributionand change location into it.
The example here unpacks thedistribution under /usr/local. Theinstructions, therefore, assume that you have permission to createfiles and directories in /usr/local. If thatdirectory is protected, you must perform the installation asroot.shell cd /usr/localObtain a distribution file using the instructions in. For a given release, binarydistributions for all platforms are built from the same MySQL sourcedistribution.Unpack the distribution, which creates the installation directory.tar can uncompress and unpack the distribution ifit has z option support:shell tar xvf /path/to/mysql-VERSION-OS.tar.xzThe tar command creates a directory namedmysql- VERSION- OS.To install MySQL from a compressed tar filebinary distribution, your system must have GNU XZUtils to uncompress the distribution and a reasonabletar to unpack it. NoteThe compression algorithm changed from Gzip to XZ in MySQL Server8.0.12; and the generic binary's file extension changed from.tar.gz to.tar.xz.GNU tar is known to work.
The standardtar provided with some operating systems is notable to unpack the long file names in the MySQL distribution. Youshould download and install GNU tar, or ifavailable, use a preinstalled version of GNU tar. Usually this isavailable as gnutar, gtar, oras tar within a GNU or Free Software directory,such as /usr/sfw/bin or/usr/local/bin. GNU tar isavailable from.If your tar does not support thexz format then use the xzcommand to unpack the distribution and tar tounpack it. Replace the preceding tar command withthe following alternative command to uncompress and extract thedistribution:shell xz -dc /path/to/mysql-VERSION-OS.tar.xz tar xNext, create a symbolic link to the installation directory createdby tar:shell ln -s full-path-to-mysql-VERSION-OS mysqlThe ln command makes a symbolic link to theinstallation directory. This enables you to refer more easily to itas /usr/local/mysql. To avoid having to typethe path name of client programs always when you are working withMySQL, you can add the /usr/local/mysql/bindirectory to your PATH variable:shell export PATH=$PATH:/usr/local/mysql/binPerform Postinstallation SetupThe remainder of the installation process involves settingdistribution ownership and access permissions, initializing the datadirectory, starting the MySQL server, and setting up theconfiguration file.
For instructions, see.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |