Build log4cxx [DEBIAN]
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
Where to start when building log4cxx package, do I need some other packages for bulding this?
I tried with this tutorial but unsuccessful.
If it's possible I would like someone to explain to me whole process of building, installing this log4cxx package. .
debian c++ api
add a comment |
up vote
0
down vote
favorite
Where to start when building log4cxx package, do I need some other packages for bulding this?
I tried with this tutorial but unsuccessful.
If it's possible I would like someone to explain to me whole process of building, installing this log4cxx package. .
debian c++ api
Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed indebian/control
of the corresponding source package.
– jofel
Jul 1 '15 at 14:35
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Where to start when building log4cxx package, do I need some other packages for bulding this?
I tried with this tutorial but unsuccessful.
If it's possible I would like someone to explain to me whole process of building, installing this log4cxx package. .
debian c++ api
Where to start when building log4cxx package, do I need some other packages for bulding this?
I tried with this tutorial but unsuccessful.
If it's possible I would like someone to explain to me whole process of building, installing this log4cxx package. .
debian c++ api
debian c++ api
edited Nov 18 at 10:07
Rui F Ribeiro
38.2k1475123
38.2k1475123
asked Jul 1 '15 at 12:07
user120425
Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed indebian/control
of the corresponding source package.
– jofel
Jul 1 '15 at 14:35
add a comment |
Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed indebian/control
of the corresponding source package.
– jofel
Jul 1 '15 at 14:35
Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed in
debian/control
of the corresponding source package.– jofel
Jul 1 '15 at 14:35
Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed in
debian/control
of the corresponding source package.– jofel
Jul 1 '15 at 14:35
add a comment |
1 Answer
1
active
oldest
votes
up vote
2
down vote
accepted
I'm assuming that the default version of the package does not fulfil your needs and that you need to either tweak the source or configuration.
Try following these steps:
Get all of the dependencies required to build log4cxx
sudo apt-get build-deps log4cxx
Download the source for the log4cxx package
apt-get source log4cxx
Change directory to source directory
cd log4cxx-0.10.0
Note you may need to tweak this for the version number that came with your system
You should make any changes you require at this point. Note that if you take a copy of the source directory at this point it will be easy to create a patch with your changes later.
If you want to change configure options look in debian/rules for "./configure", this is where configure is called when the debian package is built, add anything you require here. For example, try changing the line to:
./configure --prefix=/usr --with-SMTP
This will build the package with SMTP support.
The final step is to rebuild the package:
dpkg-buildpackage -b
The result will be a newly created debian configured for your purposes.
You can install the debian with
sudo dpkg -i ../liblog4cxx10_0.10.0-1.2ubuntu2_amd64.deb
Note that your file name may be slightly different here depending on your system architecture and the version of log4cxx you retrieved from the repositories.
I would recommend you also change the packages version number and maintainer in debian/control so that you can differentiate between your package and the default one. Beware that if another package depends on a specific version of log4cxx then your package will no longer satisfy the dependency.
I recommend this question for further information.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
I'm assuming that the default version of the package does not fulfil your needs and that you need to either tweak the source or configuration.
Try following these steps:
Get all of the dependencies required to build log4cxx
sudo apt-get build-deps log4cxx
Download the source for the log4cxx package
apt-get source log4cxx
Change directory to source directory
cd log4cxx-0.10.0
Note you may need to tweak this for the version number that came with your system
You should make any changes you require at this point. Note that if you take a copy of the source directory at this point it will be easy to create a patch with your changes later.
If you want to change configure options look in debian/rules for "./configure", this is where configure is called when the debian package is built, add anything you require here. For example, try changing the line to:
./configure --prefix=/usr --with-SMTP
This will build the package with SMTP support.
The final step is to rebuild the package:
dpkg-buildpackage -b
The result will be a newly created debian configured for your purposes.
You can install the debian with
sudo dpkg -i ../liblog4cxx10_0.10.0-1.2ubuntu2_amd64.deb
Note that your file name may be slightly different here depending on your system architecture and the version of log4cxx you retrieved from the repositories.
I would recommend you also change the packages version number and maintainer in debian/control so that you can differentiate between your package and the default one. Beware that if another package depends on a specific version of log4cxx then your package will no longer satisfy the dependency.
I recommend this question for further information.
add a comment |
up vote
2
down vote
accepted
I'm assuming that the default version of the package does not fulfil your needs and that you need to either tweak the source or configuration.
Try following these steps:
Get all of the dependencies required to build log4cxx
sudo apt-get build-deps log4cxx
Download the source for the log4cxx package
apt-get source log4cxx
Change directory to source directory
cd log4cxx-0.10.0
Note you may need to tweak this for the version number that came with your system
You should make any changes you require at this point. Note that if you take a copy of the source directory at this point it will be easy to create a patch with your changes later.
If you want to change configure options look in debian/rules for "./configure", this is where configure is called when the debian package is built, add anything you require here. For example, try changing the line to:
./configure --prefix=/usr --with-SMTP
This will build the package with SMTP support.
The final step is to rebuild the package:
dpkg-buildpackage -b
The result will be a newly created debian configured for your purposes.
You can install the debian with
sudo dpkg -i ../liblog4cxx10_0.10.0-1.2ubuntu2_amd64.deb
Note that your file name may be slightly different here depending on your system architecture and the version of log4cxx you retrieved from the repositories.
I would recommend you also change the packages version number and maintainer in debian/control so that you can differentiate between your package and the default one. Beware that if another package depends on a specific version of log4cxx then your package will no longer satisfy the dependency.
I recommend this question for further information.
add a comment |
up vote
2
down vote
accepted
up vote
2
down vote
accepted
I'm assuming that the default version of the package does not fulfil your needs and that you need to either tweak the source or configuration.
Try following these steps:
Get all of the dependencies required to build log4cxx
sudo apt-get build-deps log4cxx
Download the source for the log4cxx package
apt-get source log4cxx
Change directory to source directory
cd log4cxx-0.10.0
Note you may need to tweak this for the version number that came with your system
You should make any changes you require at this point. Note that if you take a copy of the source directory at this point it will be easy to create a patch with your changes later.
If you want to change configure options look in debian/rules for "./configure", this is where configure is called when the debian package is built, add anything you require here. For example, try changing the line to:
./configure --prefix=/usr --with-SMTP
This will build the package with SMTP support.
The final step is to rebuild the package:
dpkg-buildpackage -b
The result will be a newly created debian configured for your purposes.
You can install the debian with
sudo dpkg -i ../liblog4cxx10_0.10.0-1.2ubuntu2_amd64.deb
Note that your file name may be slightly different here depending on your system architecture and the version of log4cxx you retrieved from the repositories.
I would recommend you also change the packages version number and maintainer in debian/control so that you can differentiate between your package and the default one. Beware that if another package depends on a specific version of log4cxx then your package will no longer satisfy the dependency.
I recommend this question for further information.
I'm assuming that the default version of the package does not fulfil your needs and that you need to either tweak the source or configuration.
Try following these steps:
Get all of the dependencies required to build log4cxx
sudo apt-get build-deps log4cxx
Download the source for the log4cxx package
apt-get source log4cxx
Change directory to source directory
cd log4cxx-0.10.0
Note you may need to tweak this for the version number that came with your system
You should make any changes you require at this point. Note that if you take a copy of the source directory at this point it will be easy to create a patch with your changes later.
If you want to change configure options look in debian/rules for "./configure", this is where configure is called when the debian package is built, add anything you require here. For example, try changing the line to:
./configure --prefix=/usr --with-SMTP
This will build the package with SMTP support.
The final step is to rebuild the package:
dpkg-buildpackage -b
The result will be a newly created debian configured for your purposes.
You can install the debian with
sudo dpkg -i ../liblog4cxx10_0.10.0-1.2ubuntu2_amd64.deb
Note that your file name may be slightly different here depending on your system architecture and the version of log4cxx you retrieved from the repositories.
I would recommend you also change the packages version number and maintainer in debian/control so that you can differentiate between your package and the default one. Beware that if another package depends on a specific version of log4cxx then your package will no longer satisfy the dependency.
I recommend this question for further information.
edited Apr 13 '17 at 12:22
Community♦
1
1
answered Jul 1 '15 at 15:13
Michael Shaw
61137
61137
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f213299%2fbuild-log4cxx-debian%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Why do you want to built the package by hand? There is already a pre-built Log4cxx package for Debian. The build-dependencies are listed in
debian/control
of the corresponding source package.– jofel
Jul 1 '15 at 14:35