Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 4465  / 2 Years ago, tue, july 26, 2022, 4:31:24

I'm using Ubuntu 13.04. I'm trying to install ptxdist-2011.11.0 and when I run ./configure, it says it doesn't find a sed version:



    checking sed version... configure: error: we need at least GNU sed 4.x


But when I run



sudo apt-get install sed


...it's already installed (sed is already the newest version).



I've checked the version and it's 4.2.2.



Could anyone tell me what to do? I can't change the ptxdist version.


More From » 13.04

 Answers
2

From ptxdist mailing list



The check for the sed fails for newer sed versions have a different version
string. This was fixed in ptxdist-2013.01.0. If you need to use older
versions, then you need to backport the relveant fix (git commit
"2a89985 configure.ac: change regex for sed version")


So I recommend using the latest version or modifying the file configure.ac according to the git commit 2a89985.



git log -p 2a89985 will show you the changes in that commit



You can clone ptxdist using



git clone git://git.pengutronix.de/git/ptxdist.git


change current working directory into the ptxdist repository



cd ptxdist



checkout your bsp ptxdist version



git checkout ptxdist-2012.03.0



grab the fix commit



git cherry-pick 2a89985



generate autotools files for the buildsystem, you will need that because the git directory doesn't contains these files.



./autogen.sh



install ptxdist in the usual way (./.configure ... && make && make install)



There should be now a new ptxdist binary in your $PATH on correct install path. Migrate the bsp for that (That's okay because we know there was only one change and this is the bugfix for the buildsystem and doesn't change anything in ptxdist).



source


[#26387] Tuesday, July 26, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ipentainer

Total Points: 112
Total Questions: 113
Total Answers: 113

Location: Guernsey
Member since Tue, Jul 6, 2021
3 Years ago
;