Skip to content

Instantly share code, notes, and snippets.

@Gnimuc
Last active February 12, 2017 08:17
Show Gist options
  • Save Gnimuc/6ff93b086f37e05bb2c97af8562f30d3 to your computer and use it in GitHub Desktop.
Save Gnimuc/6ff93b086f37e05bb2c97af8562f30d3 to your computer and use it in GitHub Desktop.

Yum

shell> cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core) 

julia> versioninfo()
Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
  System: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, ivybridge)

julia> Pkg.clone("https://github.com/Gnimuc/FreeType.jl.git")
INFO: Initializing package repository /root/.julia/v0.5
INFO: Cloning METADATA from https://github.com/JuliaLang/METADATA.jl
INFO: Cloning FreeType from https://github.com/Gnimuc/FreeType.jl.git
INFO: Computing changes...
INFO: Cloning cache of Compat from https://github.com/JuliaLang/Compat.jl.git
INFO: Installing Compat v0.17.0
INFO: Package database updated

julia> Pkg.checkout("FreeType", "gnimuc/patch-1")
INFO: Checking out FreeType gnimuc/patch-1...
INFO: Pulling FreeType latest gnimuc/patch-1...
INFO: Cloning cache of BinDeps from https://github.com/JuliaLang/BinDeps.jl.git
INFO: Cloning cache of SHA from https://github.com/staticfloat/SHA.jl.git
INFO: Cloning cache of URIParser from https://github.com/JuliaWeb/URIParser.jl.git
INFO: Installing BinDeps v0.4.5
INFO: Installing SHA v0.3.1
INFO: Installing URIParser v0.1.8

julia> Pkg.build("FreeType")
INFO: Building FreeType
Installing dependency freetype via `sudo yum install freetype`:
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.raystedman.net
 * extras: mirror.nexcess.net
 * updates: mirror.pac-12.org
Resolving Dependencies
--> Running transaction check
---> Package freetype.x86_64 0:2.4.11-12.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================
 Package                           Arch                            Version                                 Repository                     Size
===============================================================================================================================================
Installing:
 freetype                          x86_64                          2.4.11-12.el7                           base                          391 k

Transaction Summary
===============================================================================================================================================
Install  1 Package

Total download size: 391 k
Installed size: 878 k
Is this ok [y/d/N]: Exiting on user command
Your transaction was saved, rerun it with:
 yum load-transaction /tmp/yum_save_tx.2017-02-12.07-10.VvapJM.yumtx
==============================================================[ ERROR: FreeType ]==============================================================

LoadError: failed process: Process(`sudo yum install freetype`, ProcessExited(1)) [1]
while loading /root/.julia/v0.5/FreeType/deps/build.jl, in expression starting on line 24

===============================================================================================================================================

===============================================================[ BUILD ERRORS ]================================================================

WARNING: FreeType had build errors.

 - packages with build errors remain installed in /root/.julia/v0.5
 - build the package(s) and all dependencies with `Pkg.build("FreeType")`
 - build a single package by running its `deps/build.jl` script

===============================================================================================================================================

manually install:

shell> sudo yum install freetype
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
 * base: mirror.raystedman.net
 * extras: mirror.nexcess.net
 * updates: mirror.pac-12.org
Resolving Dependencies
--> Running transaction check
---> Package freetype.x86_64 0:2.4.11-12.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===============================================================================================================================================
 Package                           Arch                            Version                                 Repository                     Size
===============================================================================================================================================
Installing:
 freetype                          x86_64                          2.4.11-12.el7                           base                          391 k

Transaction Summary
===============================================================================================================================================
Install  1 Package

Total download size: 391 k
Installed size: 878 k
Is this ok [y/d/N]: y
Downloading packages:
freetype-2.4.11-12.el7.x86_64.rpm                                                                                       | 391 kB  00:00:05     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : freetype-2.4.11-12.el7.x86_64                                                                                               1/1 
  Verifying  : freetype-2.4.11-12.el7.x86_64                                                                                               1/1 

Installed:
  freetype.x86_64 0:2.4.11-12.el7                                                                                                              

Complete!

julia> Pkg.build("FreeType")
INFO: Building FreeType

julia> Pkg.test("FreeType")
INFO: Testing FreeType
INFO: FreeType tests passed

Apt

shell> cat /etc/debian_version
8.7

julia> versioninfo()
Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
  System: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, ivybridge)

julia> Pkg.clone("https://github.com/Gnimuc/FreeType.jl.git")
# nothing special
julia> Pkg.checkout("FreeType", "gnimuc/patch-1")
# nothing special

julia> Pkg.build("FreeType")
INFO: Building FreeType
Installing dependency libfreetype6 via `sudo apt-get install libfreetype6`:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libpng12-0
The following NEW packages will be installed:
  libfreetype6 libpng12-0
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 639 kB of archives.
After this operation, 1184 kB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
==============================================================[ ERROR: FreeType ]==============================================================

LoadError: failed process: Process(`sudo apt-get install libfreetype6`, ProcessExited(1)) [1]
while loading /root/.julia/v0.5/FreeType/deps/build.jl, in expression starting on line 24

===============================================================================================================================================

===============================================================[ BUILD ERRORS ]================================================================

WARNING: FreeType had build errors.

 - packages with build errors remain installed in /root/.julia/v0.5
 - build the package(s) and all dependencies with `Pkg.build("FreeType")`
 - build a single package by running its `deps/build.jl` script

===============================================================================================================================================

manually install:

shell> sudo apt-get install libfreetype6
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  libpng12-0
The following NEW packages will be installed:
  libfreetype6 libpng12-0
0 upgraded, 2 newly installed, 0 to remove and 2 not upgraded.
Need to get 639 kB of archives.
After this operation, 1184 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.debian.org/debian/ jessie/main libpng12-0 amd64 1.2.50-2+deb8u3 [173 kB]
Get:2 http://deb.debian.org/debian/ jessie/main libfreetype6 amd64 2.5.2-3+deb8u1 [466 kB]
Fetched 639 kB in 5s (118 kB/s)       
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libpng12-0:amd64.
(Reading database ... 8180 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.50-2+deb8u3_amd64.deb ...
Unpacking libpng12-0:amd64 (1.2.50-2+deb8u3) ...
Selecting previously unselected package libfreetype6:amd64.
Preparing to unpack .../libfreetype6_2.5.2-3+deb8u1_amd64.deb ...
Unpacking libfreetype6:amd64 (2.5.2-3+deb8u1) ...
Setting up libpng12-0:amd64 (1.2.50-2+deb8u3) ...
Setting up libfreetype6:amd64 (2.5.2-3+deb8u1) ...
Processing triggers for libc-bin (2.19-18+deb8u7) ...

julia> Pkg.build("FreeType")
INFO: Building FreeType

julia> Pkg.test("FreeType")
INFO: Testing FreeType
INFO: FreeType tests passed

Zypper

shell> cat /etc/SuSE-release
openSUSE 42.2 (x86_64)
VERSION = 42.2
CODENAME = Malachite
# /etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead

julia> versioninfo()
Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
  System: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, ivybridge)

julia> Pkg.clone("https://github.com/Gnimuc/FreeType.jl.git")
# nothing special

julia> Pkg.checkout("FreeType", "gnimuc/patch-1")
# nothing special

julia> Pkg.build("FreeType")
INFO: Building FreeType
Installing dependency freetype2 via `sudo zypper install freetype2`:
Loading repository data...
Reading installed packages...
'freetype2' not found in package names. Trying capabilities.
Resolving package dependencies...

The following 2 NEW packages are going to be installed:
  libfreetype6 libpng16-16

2 new packages to install.
Overall download size: 507.0 KiB. Already cached: 0 B. After the operation, additional 1.2 MiB will be used.
Continue? [y/n/? shows all options] (y): Cannot read input: bad stream or EOF.
If you run zypper without a terminal, use '--non-interactive' global
option to make zypper use default answers to prompts.
=======================================================================[ ERROR: FreeType ]========================================================================

LoadError: failed process: Process(`sudo zypper install freetype2`, ProcessExited(4)) [4]
while loading /root/.julia/v0.5/FreeType/deps/build.jl, in expression starting on line 24

==================================================================================================================================================================

=========================================================================[ BUILD ERRORS ]=========================================================================

WARNING: FreeType had build errors.

 - packages with build errors remain installed in /root/.julia/v0.5
 - build the package(s) and all dependencies with `Pkg.build("FreeType")`
 - build a single package by running its `deps/build.jl` script

==================================================================================================================================================================

manually install:

shell> sudo zypper install freetype2
Loading repository data...
Reading installed packages...
'freetype2' not found in package names. Trying capabilities.
Resolving package dependencies...

The following 2 NEW packages are going to be installed:
  libfreetype6 libpng16-16

2 new packages to install.
Overall download size: 507.0 KiB. Already cached: 0 B. After the operation, additional 1.2 MiB will be used.
Continue? [y/n/? shows all options] (y): y
Retrieving package libpng16-16-1.6.8-8.1.x86_64                                                                              (1/2), 120.8 KiB (242.0 KiB unpacked)
Retrieving: libpng16-16-1.6.8-8.1.x86_64.rpm .................................................................................................[done (101.8 KiB/s)]
Retrieving package libfreetype6-2.6.3-1.2.x86_64                                                                             (2/2), 386.3 KiB (976.6 KiB unpacked)
Retrieving: libfreetype6-2.6.3-1.2.x86_64.rpm ................................................................................................[done (117.3 KiB/s)]
Checking for file conflicts: ...............................................................................................................................[done]
(1/2) Installing: libpng16-16-1.6.8-8.1.x86_64 .............................................................................................................[done]
(2/2) Installing: libfreetype6-2.6.3-1.2.x86_64 ............................................................................................................[done]

julia> Pkg.build("FreeType")
INFO: Building FreeType

julia> Pkg.test("FreeType")
INFO: Testing FreeType
INFO: FreeType tests passed

Pacman

julia> versioninfo()
Julia Version 0.5.0
Commit 3c9d753 (2016-09-19 18:14 UTC)
Platform Info:
  System: Linux (x86_64-pc-linux-gnu)
  CPU: Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, ivybridge)
  
julia> Pkg.clone("https://github.com/Gnimuc/FreeType.jl.git")
# nothing special

julia> Pkg.checkout("FreeType", "gnimuc/patch-1")
# nothing special

julia> Pkg.build("FreeType")
INFO: Building FreeType
Installing dependency freetype2 via `sudo pacman -S --needed freetype2`:
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency

Packages (4) graphite-1:1.3.9-1  harfbuzz-1.4.2-1  libpng-1.6.28-1  freetype2-2.7.1-1

Total Download Size:   3.36 MiB
Total Installed Size:  9.52 MiB

:: Proceed with installation? [Y/n] =======================================================================[ ERROR: FreeType ]========================================================================

LoadError: failed process: Process(`sudo pacman -S --needed freetype2`, ProcessExited(1)) [1]
while loading /root/.julia/v0.5/FreeType/deps/build.jl, in expression starting on line 24

==================================================================================================================================================================

=========================================================================[ BUILD ERRORS ]=========================================================================

WARNING: FreeType had build errors.

 - packages with build errors remain installed in /root/.julia/v0.5
 - build the package(s) and all dependencies with `Pkg.build("FreeType")`
 - build a single package by running its `deps/build.jl` script

==================================================================================================================================================================

manually install:

shell> sudo pacman -S --needed freetype2
resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: harfbuzz will be installed before its freetype2 dependency

Packages (4) graphite-1:1.3.9-1  harfbuzz-1.4.2-1  libpng-1.6.28-1  freetype2-2.7.1-1

Total Download Size:   3.36 MiB
Total Installed Size:  9.52 MiB

:: Proceed with installation? [Y/n] y
:: Retrieving packages...
 libpng-1.6.28-1-x86_64                                                  237.4 KiB  16.5K/s 00:14 [#########################################################] 100%
 graphite-1:1.3.9-1-x86_64                                               228.1 KiB  35.6K/s 00:06 [#########################################################] 100%
 harfbuzz-1.4.2-1-x86_64                                                 354.0 KiB  60.7K/s 00:06 [#########################################################] 100%
 freetype2-2.7.1-1-x86_64                                                  2.6 MiB  91.3K/s 00:29 [#########################################################] 100%
(4/4) checking keys in keyring                                                                    [#########################################################] 100%
(4/4) checking package integrity                                                                  [#########################################################] 100%
(4/4) loading package files                                                                       [#########################################################] 100%
(4/4) checking for file conflicts                                                                 [#########################################################] 100%
:: Processing package changes...
(1/4) installing libpng                                                                           [#########################################################] 100%
(2/4) installing graphite                                                                         [#########################################################] 100%
(3/4) installing harfbuzz                                                                         [#########################################################] 100%
Optional dependencies for harfbuzz
    cairo: hb-view program
(4/4) installing freetype2                                                                        [#########################################################] 100%

julia> Pkg.build("FreeType")
INFO: Building FreeType

julia> Pkg.test("FreeType")
INFO: Testing FreeType
INFO: FreeType tests passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment