Home IT Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu How to install Pacman     - Lenovo Ultrabooks Ubuntu system can not open the wireless hardware switch solutions (Linux)

- Oracle 11g RAC root.sh execution error second node failure example (Database)

- Kali Linux virtualbox rc = Error 1908 workaround (Linux)

- Java development specifications summary (Programming)

- Java Database Programming JDBC configuration (Programming)

- Disk Management LVM (Linux)

- Java, extends and implements Usage (Programming)

- Python maketrans () method (Programming)

- PHP interview questions of design patterns (Programming)

- C ++ 11 feature: decltype keywords (Programming)

- Linux boot process and run level (Linux)

- Enable Intel Rapid Start in GNU / Linux (Linux)

- Kali Linux resolve GPG error KEYEXPIRED 1425567400 (Linux)

- Oracle LONG RAW BLOB CLOB type of presentation (Database)

- Using Java to build micro-services (Server)

- Oracle Enterprise Linux 64-bit install apache-tomcat-7.0.53 step (Server)

- Shell script to crawl through AWR SQL Report Problems (Database)

- CentOS7 virtual machine creation failed Solution (Linux)

- Android source code compiled fatal error solutions (Programming)

- grep regular expression (Linux)

 
         
  Ubuntu How to install Pacman
     
  Add Date : 2018-11-21      
         
       
         
  1, Wget 'ftp://ftp.archlinux.org/other/pacman/pacman-4.1.2.tar.gz' Download the package
 2, tar xvf pacman-4.1.2.tar.gz, decompression software
 3, cd pacman-4.1.2 /, into the code, implementation. / Configure, suggesting that there is no libarchive
 4, the implementation of sudo apt-get libarchive-dev install libarchive
 5, re-implementation. / Configure, through
 6, the implementation of make, error
 -------------------------------------------------- -----------------------------
  CC libalpm_la-be_sync.lo
 Be_sync.c: In function '_alpm_validate_filename':
 Be_sync.c: 499: error: 'PATH_MAX' undeclared (first use in this function)
 Be_sync.c: 499: error: (Each undeclared identifier is reported only once
 Be_sync.c: 499: error: for each function it appears in.)
 Make [3]: *** [libalpm_la-be_sync.lo] Error 1
 Make [2]: *** [all-recursive] Error 1
 Make [1]: *** [all-recursive] Error 1
 Make: *** [all] Error 2
 -------------------------------------------------- ------------------------------
 7, gedit lib / libalpm / be_sync.c, code files, find the code
 -------------------------------------------------- -----------------------------
 Static int _ alpm_validate_filename (alpm_db_t * db, const char * pkgname,
        Const char * filename)
 {
    Size_t len = strlen (filename);
 
    If (filename [0] == '.') {
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is illegal \ n"), db-> treename, pkgname);
        Return -1;
    } Else if (memchr (filename, '/', len)! = NULL) {
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is illegal \ n"), db-> treename, pkgname);
        Return -1;
    }}
Else if (len> PATH_MAX) {
 
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is too long \ n"), db-> treename, pkgname);
        Return -1;
 
    }}
    Return 0;
 }}
 -------------------------------------------------- -----------------------------
 Modify as follows
 -------------------------------------------------- -----------------------------
 Static int _ alpm_validate_filename (alpm_db_t * db, const char * pkgname,
        Const char * filename)
 {
    Size_t len = strlen (filename);
 
    If (filename [0] == '.') {
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is illegal \ n"), db-> treename, pkgname);
        Return -1;
    } Else if (memchr (filename, '/', len)! = NULL) {
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is illegal \ n"), db-> treename, pkgname);
        Return -1;
    }}
/ *
 Else if (len> PATH_MAX) {
 
        Errno = EINVAL;
        _alpm_log (db-> handle, ALPM_LOG_ERROR, _ ( "% s database is inconsistent: filename"
                    "Of package% s is too long \ n"), db-> treename, pkgname);
        Return -1;
 
    }}
 * /
    Return 0;
 }}
 -------------------------------------------------- -----------------------------

 Save, exit

7, the implementation of make && make install, waiting for the installation is complete.
     
         
       
         
  More:      
 
- Nginx Performance Tuning Guidelines (Server)
- Modify Linux terminal prompt path length (Linux)
- VMware Workstation virtual machine Ubuntu achieve shared with the host (Linux)
- Download Manager uGet 2.0 installed in Debian, Ubuntu, Linux Mint and Fedora (Linux)
- Linux Monitoring Command (Linux)
- Implement binary search algorithm in C language (Programming)
- 10 useful Linux command line tips (Linux)
- GCC library link order problems (Programming)
- Ubuntu installation 2.10.x version of Scala (Linux)
- Java development specifications summary (Programming)
- apt-get and apt-cache show command examples (Linux)
- SVN common commands (Linux)
- 10 Nginx safety tips (Linux)
- DOM event handlers add notes (Programming)
- C ++ virtual functions Classic Insights (Programming)
- Linux Study of --CentOS create local yum repository (Linux)
- CentOS6 5 Configure SSH password Free (Linux)
- PostgreSQL vacuum principle of a function and parameters (Database)
- NaSC using simple mathematical operations on Ubuntu and Elementary OS (Linux)
- Python regular expressions: how to use regular expressions (Programming)
     
           
     
  CopyRight 2002-2016 newfreesoft.com, All Rights Reserved.