You are not logged in.
Hi,
I'm trying to create custom `libsphinxclient` package of one particular version. And I've run across this issue. As far as I can tell, it's because `/lib/cpp` is missing in Arch Linux. At least `pkgfile /lib/cpp` says so. And in `config.log` I see:
./configure: line 4491: /lib/cpp: No such file or directory
I saw people suggesting:
sed -i 's/\/lib\/cpp/\/usr\/bin\/cpp/g' configure
But aren't there any better alternative? Like maybe creating symlink for one particular process.
P.S. Supposedly related discussion.
Last edited by x-yuri (2015-06-20 06:08:50)
Offline
It would be even cleaner if you could do it using a variable, but editing the configuration script is definitely a lot cleaner than creating a symlink on your system just for this build process.
Have you tried building it like this? Does it work? If it doesn't, please post the PKGBUILD and relevant error messages.
Offline
I saw people suggesting:
sed -i 's/\/lib\/cpp/\/usr\/bin\/cpp/g' configure
But aren't there any better alternative?
Use colons.
sed -i 's:/lib/cpp:/usr/bin/cpp:g' configure
This seems to come up from time to time. The solution you're suggesting was recommended by Allan (maintainer of Arch's toolchain).
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Steef435, I meant symlink visible to only one process (or rather process tree), which is probably not possible.
The solution you're suggesting was recommended by Allan (maintainer of Arch's toolchain).
First, I didn't suggest using `sed`. Then, you made me look into `./configure` (though, looking through `./configure --help` output should have been enough) and come up with a better solution:
CXXCPP=/usr/bin/cpp ./configure
Offline