libreoffice-compilar/README.md

57 lines
1.5 KiB
Markdown
Raw Normal View History

2022-03-07 20:45:10 -06:00
# libreoffice-compilar
2022-03-07 22:54:54 -06:00
## Configuración de repositorio de libreoffice
2022-03-07 22:56:06 -06:00
2022-03-07 22:54:54 -06:00
```
# echo "207.249.123.209 repos.libreoffice.gob.mx" >> /etc/hosts
# cat <<EOF>>/etc/yum.repos.d/libreoffice_gob.repo
[libreoffice_gob]
baseurl = http://repos.libreoffice.gob.mx/repos/builddeps
gpgcheck = 0
name = LibreOffice Mexico goverment repo
priority = 1
EOF
```
2022-03-07 23:57:27 -06:00
```
$ git clone git@github.com:CollaboraOnline/online.git
$git clone git@git.softwarelibre.mx:strepsirrhini/libreoffice.git --depth 1
$ sudo dnf install -y libcap-devel libpng-devel pam-devel gcc-c++ cppunit-devel pam-devel fontconfig make libpcap kernel-headers python3-polib python3-lxml poco
$ cd online
$ ./autogen.sh
$ ./configure --with-lo-path=../libreoffice --with-lokit-path=../libreoffice/include
$ make
```
## Compilación de LibreOffice en CentOS
2022-03-07 22:56:06 -06:00
Este módulo es necesario para poder instalar el paquete `junit-1`
2022-03-07 22:54:54 -06:00
```
# dnf module enable javapackages-tools:201801
```
2022-03-07 23:06:54 -06:00
## Instalación de paquetes
```
# dnf builddep -y libreoffice
2022-03-07 23:49:07 -06:00
# dnf install -y java-11-openjdk-devel nasm libe-book-devel
2022-03-07 23:06:54 -06:00
# alternatives --set javac /usr/lib/jvm/java-11-openjdk-11.0.14.0.9-2.el8_5.x86_64/bin/javac
# alternatives --set java /usr/lib/jvm/java-11-openjdk-11.0.14.0.9-2.el8_5.x86_64/bin/java
```
## Compilación
```
$ git clone https://git.softwarelibre.mx/strepsirrhini/libreoffice.git
$ cd libreoffice
2022-03-07 23:35:25 -06:00
$ ./autogen.sh --with-system-libs
2022-03-07 23:06:54 -06:00
$ make
$ Be happy
```
# Referencias
* https://wiki.documentfoundation.org/Development/BuildingOnLinux/es