我找了个u盘用chroot看了一下这个image看了看,简单汇报一下折腾的结果吧:
1. 依然需要link /lib64,也就是在根目录下执行:
2. 【可选】报错的原因是现在版本的hqos把ldconfig放在了/sbin下,而且排除在了root的PATH里,可以不看这个错,也可以把ldconfig link到/bin下:
- root@zhjie-server:/opt/RoonServer# ./check.sh
- Checking to see if RoonServer can run on this machine
- Checking for Binary Compatibility [ OK ]
- Checking for ALSA Libraries [ OK ]
- Checking for ffmpeg or avconv [ FAILED ]
- Checking for the mount.cifs command [ FAILED ]
- Checking for libicu ./check.sh: line 91: ldconfig: command not found
- [ FAILED ]
- Testing ulimit -n 8192 [ OK ]
- STATUS: FAILED
- These issues must be addressed before RoonServer will run on this machine.
- For more information on how to address this, see:
- http://kb.roonlabs.com/LinuxInstall
- root@zhjie-server:/opt/RoonServer# cd /sbin/
- root@zhjie-server:/sbin# ./ldconfig
- root@zhjie-server:/sbin# cd /bin/
- root@zhjie-server:/bin# ln -s ../sbin/ldconfig
- root@zhjie-server:/bin# source /etc/profile
复制代码
现在再试试就好了:
- /opt/RoonServer# ./check.sh
- Checking to see if RoonServer can run on this machine
- Checking for Binary Compatibility [ OK ]
- Checking for ALSA Libraries [ OK ]
- Checking for ffmpeg or avconv [ FAILED ]
- Checking for the mount.cifs command [ FAILED ]
- Checking for libicu [ OK ]
- Testing ulimit -n 8192 [ OK ]
- STATUS: FAILED
- These issues must be addressed before RoonServer will run on this machine.
- For more information on how to address this, see:
- http://kb.roonlabs.com/LinuxInstall
复制代码
3. 至于icu那个错误的workaround
- root@zhjie-server:/opt/RoonServer# ./start.sh
- Process terminated. Couldn't find a valid ICU package installed on the system. Please install libicu using your package manager and try again. Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. Please see https://aka.ms/dotnet-missing-libicu for more information.
- at System.Environment.FailFast(System.String)
- at System.Globalization.GlobalizationMode+Settings..cctor()
- at System.Globalization.CultureData.CreateCultureWithInvariantData()
- at System.Globalization.CultureData.get_Invariant()
- at System.Globalization.CultureInfo..cctor()
- at System.Globalization.CultureInfo.get_CurrentUICulture()
- at System.TimeZoneInfo.GetUtcStandardDisplayName()
- at System.TimeZoneInfo.CreateUtcTimeZone()
- at System.TimeZoneInfo..cctor()
- at System.DateTime.get_Now()
- at Base.Utils..cctor()
- at Base.Utils.SetApplicationName(System.String, System.String)
- at Sooloos.App.Main(System.String[])
- ./start.sh: line 52: 3615 Aborted "$P" "$@"
- ./start.sh: line 34: kill: (3615) - No such process
复制代码
这里写了Alternatively you can set the configuration flag System.Globalization.Invariant to true if you want to run with no globalization support. 根据【1】,可以搜索到如下四个配置文件需要修改:
- root@zhjie-server:/opt/RoonServer# find .|grep runtimeconfig.json
- ./Appliance/RoonAppliance.runtimeconfig.json
- ./Appliance/RAATServer.runtimeconfig.json
- ./Appliance/remoting_codegen.runtimeconfig.json
- ./Server/RoonServer.runtimeconfig.json
复制代码
谨慎点就先备份一下:
- root@zhjie-server:/opt/RoonServer# cp ./Server/RoonServer.runtimeconfig.json ./Server/RoonServer.runtimeconfig.json.bkp
- root@zhjie-server:/opt/RoonServer# cp ./Appliance/remoting_codegen.runtimeconfig.json ./Appliance/remoting_codegen.runtimeconfig.json.bkp
- root@zhjie-server:/opt/RoonServer# cp ./Appliance/RAATServer.runtimeconfig.json ./Appliance/RAATServer.runtimeconfig.json.bkp
- root@zhjie-server:/opt/RoonServer# cp ./Appliance/RoonAppliance.runtimeconfig.json ./Appliance/RoonAppliance.runtimeconfig.json.bkp
复制代码
之后修改一下:
- root@zhjie-server:/opt/RoonServer# sed -i "s/\"configProperties\": {/\"configProperties\": { \"System.Globalization.Invariant\": true, /g" */*.json
复制代码
启动啦:
- root@zhjie-server:/opt/RoonServer# ./start.sh
- 00:00:00.000 Warn: get lock file path: /tmp/.rnsgem0-
- Initializing
- 00:00:00.028 Debug: RoonServer, before attempting to start RoonAppliance binary at path: /opt/RoonServer/Server/../Appliance/RoonAppliance
- 00:00:00.036 Debug: RoonServer, after starting RoonAppliance
- Started
- Running
- ^C
复制代码
【1】https://learn.microsoft.com/en-us/dotnet/core/runtime-config/globalization
|